![]() |
|
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) |
- nitrag - 2010-08-20 22:47 I have v5.10.1 of perl running on Ubuntu Server x64. I also tried your bsd_glob suggestion with no luck. New version of SortTV! - cliffe - 2010-09-02 11:07 A new and improved version of SortTV is now available! New feature: Sorts complete season directories. Eg "[sort]/Myshow Season 1" or "[sort]/Myshow - Series 1 Complete" would be moved to "[tv]/Myshow/Season 1" (if it does not already exist). Fixes: Supports even more naming schemes. Various fixes such as handling underscores. Hopefully fixes the directory move problem reported by some users. Please let me know. -- You may need to install the modules the script uses. To do so, run this command on Linux: sudo cpan File::Copy::Recursive File::Glob LWP::Simple On Windows run the same command, without "sudo" -- Get SortTV here: https://sourceforge.net/projects/sorttv/files/ -- If you feel like this script saves you hours of manual sorting then please consider making a $5 paypal donation ![]() http://schreuders.org - davemex - 2010-09-02 17:15 Thanks for the update! I updated the file on my server and so far it appears to be working correctly. I really appreciate all the work you've put into this project as it really puts a nice shinny coat on my whole media acquisition/management setup! - megacrypto - 2010-09-03 01:22 just tested this script and it works nicely but for some reason it takes some movies with it. i had 3 episodes and 2 movies in one folder and ran the script on it, the script moved the 3 episodes just fine, each in its proper folder and season folder, but also moved one of the 2 movies and created a folder for it and a season folder too. i will look more into this, but i thought i'd post it. btw, i have a script that looks up tv episodes off thetvdb and creates its nfo and grabs its screen-shot. i will see if i can merge the two together, so after the move, it will lookup the episode info (i know xbmc does that for you, but i had this since some time ago, and im still debating whether to use the xbmc db or use mine and insert it into xbmc db) - cliffe - 2010-09-03 17:59 megacrypto Wrote:just tested this script and it works nicely but for some reason it takes some movies with it. i had 3 episodes and 2 movies in one folder and ran the script on it, the script moved the 3 episodes just fine, each in its proper folder and season folder, but also moved one of the 2 movies and created a folder for it and a season folder too. The new pattern matching is quite liberal. I pretty much only use it to sort episodes so I haven't had that problem. The movie title that was moved was probably followed by two numbers, which the script interpreted as season and episode numbers. There are two simple solutions: download tv episodes to a separate directory or edit the SortTV script to remove the third (catchall) condition in the tv pattern matching I might do something about this in the future. If anyone else sees this behaviour let me know. megacrypto Wrote:btw, i have a script that looks up tv episodes off thetvdb and creates its nfo and grabs its screen-shot. i will see if i can merge the two together, so after the move, it will lookup the episode info (i know xbmc does that for you, but i had this since some time ago, and im still debating whether to use the xbmc db or use mine and insert it into xbmc db) I am pretty happy with the xbmc lookup and database, but it would be pretty easy to edit SortTV to call the other script once it has moved a new episode. Thanks for the feedback
- cliffe - 2010-09-03 18:07 davemex Wrote:Thanks for the update! I updated the file on my server and so far it appears to be working correctly. I really appreciate all the work you've put into this project as it really puts a nice shinny coat on my whole media acquisition/management setup! Thanks again for the feedback. I am glad people are finding this helpful! I would much rather spend the time making it automated than spend the time organising files
- salithus - 2010-09-04 03:40 I ran into some issues with seasons higher than 9, so I made some modifications to zero-pad the season. Also, added some trimming to handle apostrophes and parentheses in show names. http://pastebin.com/diff.php?i=FqshYC1w Thanks for the excellent tool! It managed to parse 2500 of my files in a matter of seconds
- cliffe - 2010-09-04 06:39 salithus Wrote:I ran into some issues with seasons higher than 9, so I made some modifications to zero-pad the season. Also, added some trimming to handle apostrophes and parentheses in show names. Thanks for the patch! I have applied it to the git repo, and uploaded a new version of SortTV which includes your changes. I added a comment with your username, if you want your real name used let me know. salithus Wrote:Thanks for the excellent tool! It managed to parse 2500 of my files in a matter of seconds Cool! I hadn't tried it on a very large number of files at once, so that is great to know. - cliffe - 2010-09-04 06:47 cliffe Wrote:The new pattern matching is quite liberal. I pretty much only use it to sort episodes so I haven't had that problem. The movie title that was moved was probably followed by two numbers, which the script interpreted as season and episode numbers. I added an optional "--conservative" flag that will make SortTV be less liberal with the episode pattern matching. Until I change the way arguments are processed, you can currently only use it as the 5th argument. eg: perl $HOME/sorttv/sorttv.pl $HOME/Downloads/ $HOME/TV $HOME/Non-episodes localhost:8080 --conservative - megacrypto - 2010-09-15 22:04 is there a way for the script when adding a new folder to add "." instead of spaces? |