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)



New version available - cliffe - 2010-11-18 16:16

SortTV v1.17

Removes the TVDB update that was introduced in 1.16. If you want to re-lookup the episode titles you can always delete the .cache directory.

You can get the new version from:
https://sourceforge.net/projects/sorttv/files/

newphreak Wrote:It doesnt show any messages on repack/proper anymore, thanks.

But it does however take 3-4minutes to finish now compared to a few seconds on 1.15


Code:
./sorttv.pl
SortTV
~~~~~~
could not find ParserDetails.ini in /usr/local/share/perl/5.10.0/XML/SAX
DBM::Deep: Cannot write to a readonly filehandle at /usr/local/share/perl/5.10.0/TVDB/API.pm line 519
could be tvdb api hanging, cause that's what it spits out right before it completes, seems that api needs some work done. I did contact him on email as you said, but he didnt really reply anything helpfull.

This should fix the slowness issue. Thanks for reporting this so quickly.

Cheers.


- CoinTos - 2010-11-18 23:02

cliffe Wrote:I don't have any objections if someone is willing to code this Smile
If there was/is a perl module for querying themoviedb.org then that would be perfect
Already looked into this, here is the Perl API if some body is interested. At the moment, this doesn't interest me as I have other things I want for the tv sort ie. multi ep naming support.

Edit:
Just a note about this notification code:
Code:
get "http://$xbmcwebserver/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(,NEW EPISODES NOW AVAILABLE TO WATCH\n$newshows, 7000))";
When $newshows list is real long, like adding a season with recursive sort on, it doesn't fit the popup notification box in xbmc at all and can be intrusive with the 7 sec delay. I have some ideas to fix it, just no time at the moment.


- newphreak - 2010-11-23 20:24

Would it be possible to get season replacement aswell? No
thetvdb.com all of the sudden decided to go with the least userfriendly seasoncleanup they could on dirty jobs, so that serie wont work with xbmc anymore. Stare
Rippers has come to S08, but thetvdb decided we only were on s06 now.
Cleaning up as this just seems stupid and not userfriendly at all to me, so i actually feel stupid for asking you to make a fix.

Something like this:
season-substitute:Dirty Jobs Season 8-->Dirty Jobs Season 6
not really sure how to note it down, as you would need showname, season, and season to replace with.


- cliffe - 2010-11-23 21:21

newphreak Wrote:Would it be possible to get season replacement aswell? No
thetvdb.com all of the sudden decided to go with the least userfriendly seasoncleanup they could on dirty jobs, so that serie wont work with xbmc anymore. Stare
Rippers has come to S08, but thetvdb decided we only were on s06 now.
Cleaning up as this just seems stupid and not userfriendly at all to me, so i actually feel stupid for asking you to make a fix.

Something like this:
season-substitute:Dirty Jobs Season 8-->Dirty Jobs Season 6
not really sure how to note it down, as you would need showname, season, and season to replace with.

If the season wasn't locked you could "fix it" on thetvdb. Maybe try discussing the reason it is locked that way on http://forums.thetvdb.com/

Let me know how that goes.

Update: Also check out the forum rules regarding locked content. http://forums.thetvdb.com/viewtopic.php?f=7&t=4076


- newphreak - 2010-11-24 19:11

I did check that and they have locked it all, so im quite furious and it does not seem likely that it'll go back the way it was, which was working perfectly for me.


- CoinTos - 2010-11-25 00:04

newphreak Wrote:I did check that and they have locked it all, so im quite furious and it does not seem likely that it'll go back the way it was, which was working perfectly for me.

It looks like your show took the Mythbusters path which basically means after much arguement and user changes, they finally decided to lock it the way they figure it should be. It sucks I know but there isn't much you can do about it. In my case, if Mythbusters had normal season and not so many wasted clipshows and filler episodes (aka. specials) I would be a lot happier because the scene episode numbers would match up for the whole season. My solution for Mythbusters is when it does stray, I set my rss downloader config to tell deluge to download it to a different folder and I will manually rename and put it in my sort folder at a time convinent to me. Not ideal but it works for me.


- newphreak - 2010-11-25 16:48

oh dear lord, seems i'll have to find dirt jobs manually and watch it indeed, they didnt just change season, they changed the whole episode order Sad i really hate thetvdb now. open database for fans my ass.
edit: can we atleast get an option to ignore shows then? Smile


- slybas - 2011-01-06 10:37

I like the tool very much although I am only using it for the initial sorting of my torrent downloads into movie or tv dirs. After that Sickbeard or Couchpotato will finish the job. Sorttv checks the download folder and everything that is recognized as tv series is moved to the tv dir the rest by default to movies. And here comes my question is it possible to add a positive movie recognision? There is no need for a very fancy renaming but it would be nice if you could actively sort movies. (And to make it complete jpg and mp3 sorting).

I have got a slight problem with this option:
PHP Code:
# OPTIONAL - where to put things that are not episodes
# If this is supplied then files and directories that SortTV does not believe are episodes will be moved here
# If not specified, non-episodes are not moved
non-episode-dir:/home/cliffe/Files/Downloads/Non-episodes 

The Dirs and files which are none episodes get moved to (in my case movie) but it strips them of the directory structure. This is a problem for movies with subtitles etc.


- cliffe - 2011-01-09 14:05

slybas Wrote:I like the tool very much although I am only using it for the initial sorting of my torrent downloads into movie or tv dirs. After that Sickbeard or Couchpotato will finish the job. Sorttv checks the download folder and everything that is recognized as tv series is moved to the tv dir the rest by default to movies. And here comes my question is it possible to add a positive movie recognision? There is no need for a very fancy renaming but it would be nice if you could actively sort movies. (And to make it complete jpg and mp3 sorting).

I have got a slight problem with this option:
PHP Code:
# OPTIONAL - where to put things that are not episodes
# If this is supplied then files and directories that SortTV does not believe are episodes will be moved here
# If not specified, non-episodes are not moved
non-episode-dir:/home/cliffe/Files/Downloads/Non-episodes 

The Dirs and files which are none episodes get moved to (in my case movie) but it strips them of the directory structure. This is a problem for movies with subtitles etc.

The next version (in a few days) will maintain the directory structure of non-episode files. Movie detection and sorting is a future possibility, let me know if you want to code it Smile


Square braces causes issues - TravellingGuy - 2011-01-12 03:35

Hi Cliffe.

I'm using sorttv, which does much of what I like. However, sometimes the torrents I download have square braces in the directory (i.e. [ and ]). sorttv doesn't like that very much, and just completely skips those directories when doing the sort.

For example,torrents distributed by Torrent Day always come in this type of format:
Quote:The.Vampire.Diaries.S02E07.720p.HDTV.x264-CTU [NO-RAR] - [ http://www.torrentday.com ]/the.​vampire.​diaries.​s02e07.​720p.​hdtv.​x264-ctu.​mkv

Running sorttv on that, sorttv will just skip right over it.