XBMC Community Forum
SortTV: Sort TV episodes, movies, and music into directories for xbmc (Linux/Win/Mac) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for XBMC (/forumdisplay.php?fid=116)
+--- Thread: SortTV: Sort TV episodes, movies, and music into directories for xbmc (Linux/Win/Mac) (/showthread.php?tid=75949)



- CoinTos - 2010-10-31 22:05

cliffe Wrote:Please make sure you do a diff against the version I am releasing to see all the changes I have made. I look forward to receiving more code.
Will do and thanks again for your help through this as I learn the ins and outs of perl. I, also, now have the version I need for this wednesdays launch of my dedicated media server so I can't wait to put this into production, thanks.


- nicx76 - 2010-11-01 11:17

wow great news, i will test it and if its working i am sure your paypal account increases Wink

thanks!
nicx...


- nicx76 - 2010-11-01 13:01

one more feature wish:

i just want to rename all files in one directory (including all subdirectories) without sorting them into new directories. is it possible to inclue a "sorting=no" option?

btw: the script is working great Smile

thanks!
nicx...


- George - 2010-11-02 11:02

Really like your script, works amazingly well. Thanks!


- newphreak - 2010-11-02 18:36

hmm, would it be possible to change the notification sent to xbmc to only send successfull moves/symlink/copy's? Smile as i symlink from a messy incomingdir i use place-symlink. And xbmc stutters like crazy while getting those notifications, so i would like to just get the successfull ones.

Edit:
Also, i noticed the notifications have a limited length, so would be cool if they were shorted down to "showname S00E00"
Wink


- cliffe - 2010-11-02 20:15

Capt.Insano Wrote:OK, tried networktest.pl and this is what I got:
(...)
Any further advice?

Thanks,
The Capt.

P.S. Sorry for the really long post I was just trying to fully explain all my findings!!

Yeah that is strange...

nicx76 Wrote:one more feature wish:

i just want to rename all files in one directory (including all subdirectories) without sorting them into new directories. is it possible to inclue a "sorting=no" option?

btw: the script is working great Smile

thanks!
nicx...

That sounds like a handy straightforward feature. When I get a chance I will add that. If anyone wants to have a go at implementing it let me know.

newphreak Wrote:hmm, would it be possible to change the notification sent to xbmc to only send successfull moves/symlink/copy's? Smile as i symlink from a messy incomingdir i use place-symlink. And xbmc stutters like crazy while getting those notifications, so i would like to just get the successfull ones.

Edit:
Also, i noticed the notifications have a limited length, so would be cool if they were shorted down to "showname S00E00"
Wink

Ok. I'll look into it when I get a chance. Again, let me know if anyone wants to volunteer to implement this.

George Wrote:Really like your script, works amazingly well. Thanks!

Great. Thanks Smile


- nitrag - 2010-11-04 05:16

Is there any reason why this wouldn't be able to be sorted?

LOG:
Code:
23:10:2, 3-10-2010
Sorting /home/torrents/complete/ into /home/Storage/TV/

Series
Code:
[HorribleSubs] Naruto Shippuuden

File:
Code:
[HorribleSubs] Naruto Shippuuden - 183v2 [480p]

I've added this to conf because I was getting an error (below) before
Added:
Code:
show-name-substitute:[HorribleSubs] Naruto Shippuuden-->Naruto Shippuuden
tvdb-id-substitute:[HorribleSubs] Naruto Shippuuden-->79824

was getting this error before:
Code:
22:30:2, 3-10-2010
Sorting /home/torrents/complete/ into /home/Storage/TV/
WARN: Failed to get [HorribleSubs] Naruto Shippuuden series information on the tvdb.com.



- cliffe - 2010-11-04 11:12

nitrag Wrote:Is there any reason why this wouldn't be able to be sorted?

LOG:
Code:
23:10:2, 3-10-2010
Sorting /home/torrents/complete/ into /home/Storage/TV/

Series
Code:
[HorribleSubs] Naruto Shippuuden

File:
Code:
[HorribleSubs] Naruto Shippuuden - 183v2 [480p]

I've added this to conf because I was getting an error (below) before
Added:
Code:
show-name-substitute:[HorribleSubs] Naruto Shippuuden-->Naruto Shippuuden
tvdb-id-substitute:[HorribleSubs] Naruto Shippuuden-->79824

was getting this error before:
Code:
22:30:2, 3-10-2010
Sorting /home/torrents/complete/ into /home/Storage/TV/
WARN: Failed to get [HorribleSubs] Naruto Shippuuden series information on the tvdb.com.

There are a few reasons for this.

If your configuration has
[INDENT]--match-files-named-showname-episodetitle:TRUE[/INDENT]
Then SortTV will try to look it up to see if it can find an episode with the show "[HorribleSubs] Naruto Shippuuden", and an episode titled "183v2 [480p]". This is not what you want. (Currently that does not ignore things in square brackets, but perhaps it should.) Is this S01E83? I am a human and even I am finding it hard to parse this text to figure out which episode it is...

You are correct to include those substitutions. However, you will also need to rename the file to a format SortTV understands. For example, "[HorribleSubs] Naruto Shippuuden s1e1.avi", or "Naruto Shippuuden - Homecoming.avi".


- CoinTos - 2010-11-05 23:42

Hey cliffe,

Notice a small problem with the latest version. During episode title look up it doesn't check for a tvdb ID sub so it fails on shows that require an ID number (ie, $#*! My Dad Says only works if you pass the ID to $tvdb-->GetEpisodeName()). I wrote this quick little patch to correct it on my media server, figure you can either use it or come up with a better solution. Smile

Patch Here


- nitrag - 2010-11-08 08:04

cliffe Wrote:There are a few reasons for this.

If your configuration has
[INDENT]--match-files-named-showname-episodetitle:TRUE[/INDENT]
Then SortTV will try to look it up to see if it can find an episode with the show "[HorribleSubs] Naruto Shippuuden", and an episode titled "183v2 [480p]". This is not what you want. (Currently that does not ignore things in square brackets, but perhaps it should.) Is this S01E83? I am a human and even I am finding it hard to parse this text to figure out which episode it is...

You are correct to include those substitutions. However, you will also need to rename the file to a format SortTV understands. For example, "[HorribleSubs] Naruto Shippuuden s1e1.avi", or "Naruto Shippuuden - Homecoming.avi".



Thanks, seems to be working now. Have to wait until next week and make sure my shows sort.

Great work!