SortTV: Sort TV episodes, movies, and music into directories for xbmc (Linux/Win/Mac)

  Thread Rating:
  • 6 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
cliffe Offline
Senior Member
Posts: 178
Joined: Jun 2010
Reputation: 7
Smile    Post: #451
Version 1.32 is now available

New in this version:
  • Format strings:
    [EP4] format string for episode naming: episode number only
    [QUALITY] for tv or movies " HD" or " SD" - based on the original file name (currently not extracted from the video itself)
  • Always uses a year for movie naming if that format string is used, even if not present in the original filename
  • Applies filesystem rules to sorted movie files
  • Keeps 'part 1', 'cd1' etc in new file names
  • Use-dots-instead-of-spaces is also applied to tv show directories
  • Does not extract archives if .part files exist that match (a hint that not all the pieces are in place)
  • --file-to-sort=file
    A file to be sorted
    This argument can be repeated to add multiple individual files to sort
  • --dry-run
    Dry run mode. No file operations will occur on the to-sort directory.
    Some directories may be created at the destination.
  • --duplicate-images=[SYMLINK|COPY]
    Duplicate images can be symlinked or copied. For example TV season images get placed in the main directory, and in season subdirectories.
    The SYMLINK option is recommended. If symlinks are not available (for example, on Windows), then they will be copied.
    If not specified, SYMLINK.
  • --tvdb-episode-name-required=[TRUE|FALSE]
    Only sort tv episodes if the episode name was available from thetvdb
    Note: directories may still be created in the destination, even if the file is skipped due to this rule
    If not specified, FALSE
  • --display-license=[TRUE|FALSE]
    Shows the license and some information about donations when the program starts
    If not specified, TRUE
  • Displays information about the movie directory on start-up
  • Windows archive extraction fix, and added known error code for Windows
  • Various other fixes, such as spacing and "-" naming fix, file size fix, fix to update check when there is no Internet access

Get the new version from:
http://sourceforge.net/projects/sorttv/

Thanks to those of you that contributed code: Fox and TechLife, and
thanks also to JoachimL: I ended up doing the image copy differently, but the feature wouldn't exist if you hadn't submitted that code. Thanks!

Enjoy Smile
find quote
newphreak Offline
Donor
Posts: 176
Joined: Oct 2010
Reputation: 0
Location: sofa @ Norway
Post: #452
Awesome, this fixes a few things that has annoyed me a little while. Great job, will test later this week and report back how it works.

Samsung ES7005 55" led tv - Denon AVR-3313 - NAD C275BEE - B&W DM683 - B&W HTM61 - B&W 686
Asus EB1501P ION2 - OCZ Vertex 2 64gb ssd - Built in IR Receiver
And a Logitech Harmony Touch to control it all. http://www.OpenELEC.tv
find quote
Nexxo Offline
Junior Member
Posts: 32
Joined: Sep 2011
Reputation: 0
Post: #453
Thankyou for the update Smile
find quote
newphreak Offline
Donor
Posts: 176
Joined: Oct 2010
Reputation: 0
Location: sofa @ Norway
Post: #454
Hmm, i misread, I was hoping it fixed the script so it would pick up episodes from series with only one season tagged with EP1 EP2 EP3 and so on. They are rare, but it would be nice if this could be picked up and renamed to approperiate naming like S01E01 or whatever the config is set to. As this would in almost all cases be S01 it would be a good feature.

Samsung ES7005 55" led tv - Denon AVR-3313 - NAD C275BEE - B&W DM683 - B&W HTM61 - B&W 686
Asus EB1501P ION2 - OCZ Vertex 2 64gb ssd - Built in IR Receiver
And a Logitech Harmony Touch to control it all. http://www.OpenELEC.tv
find quote
cliffe Offline
Senior Member
Posts: 178
Joined: Jun 2010
Reputation: 7
Post: #455
newphreak Wrote:Hmm, i misread, I was hoping it fixed the script so it would pick up episodes from series with only one season tagged with EP1 EP2 EP3 and so on. They are rare, but it would be nice if this could be picked up and renamed to approperiate naming like S01E01 or whatever the config is set to. As this would in almost all cases be S01 it would be a good feature.

Send me some example filenames (here or PM) and I will try to get that into the next release. Or if you are so inclined, send a patch Smile
find quote
mjn1210 Offline
Junior Member
Posts: 2
Joined: Jan 2012
Reputation: 0
Post: #456
It seems something was broken in version 1.32. If the file does not contain the episode name in the file name, the script automatically reports that it cannot find the episode name from TVDB and moves it without adding the episode name. Just went back to 1.31, and it correctly pulls the episode name from TVDB and adds to file name when moving.
find quote
cliffe Offline
Senior Member
Posts: 178
Joined: Jun 2010
Reputation: 7
Post: #457
mjn1210 Wrote:It seems something was broken in version 1.32. If the file does not contain the episode name in the file name, the script automatically reports that it cannot find the episode name from TVDB and moves it without adding the episode name. Just went back to 1.31, and it correctly pulls the episode name from TVDB and adds to file name when moving.

Damn, thanks for reporting. Could you please provide some sample filenames so that I can better understand what you mean and fix that. Thanks.
find quote
mjn1210 Offline
Junior Member
Posts: 2
Joined: Jan 2012
Reputation: 0
Post: #458
cliffe Wrote:Damn, thanks for reporting. Could you please provide some sample filenames so that I can better understand what you mean and fix that. Thanks.

Message sent with details
find quote
cliffe Offline
Senior Member
Posts: 178
Joined: Jun 2010
Reputation: 7
Post: #459
(2012-02-29 16:36)mjn1210 Wrote:  
cliffe Wrote:Damn, thanks for reporting. Could you please provide some sample filenames so that I can better understand what you mean and fix that. Thanks.

Message sent with details

As it turns out this was a non-issue. I recommend everyone update to version 1.32.

Cheers.
find quote
crimsonfury Offline
Fan
Posts: 462
Joined: Mar 2012
Reputation: 1
Location: Arizona, U.S.
Post: #460
Call me newb... But what makes this easier or better than using something like Sickbeard? I wish there was something better but every other options seems like a lot of tweaking of code...

[Image: all-clearlogo.jpg]
find quote
Post Reply