I have v5.10.1 of perl running on Ubuntu Server x64.
I also tried your bsd_glob suggestion with no luck.
SortTV: Sort TV episodes, movies, and music into directories for xbmc (Linux/Win/Mac)
nitrag
Junior Member Posts: 7 Joined: Aug 2010 Reputation: 0 |
2010-08-20 22:47
Post: #11
|
| find quote |
cliffe
Senior Member Posts: 178 Joined: Jun 2010 Reputation: 7 |
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
(This post was last modified: 2010-09-02 11:10 by cliffe.)
|
| find quote |
davemex
Member Posts: 69 Joined: Jul 2010 Reputation: 0 Location: Cincinnati, OH |
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!
Check out my new NAS/media server build here, my old media server here or my Atom/Ion 2 based XBMC HTPC here http://www.somethingtangential.com |
| find quote |
megacrypto
Senior Member Posts: 219 Joined: Apr 2008 Reputation: 0 |
2010-09-03 01:22
Post: #14
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) |
| find quote |
cliffe
Senior Member Posts: 178 Joined: Jun 2010 Reputation: 7 |
2010-09-03 17:59
Post: #15
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
|
| find quote |
cliffe
Senior Member Posts: 178 Joined: Jun 2010 Reputation: 7 |
2010-09-03 18:07
Post: #16
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
|
| find quote |
salithus
Junior Member Posts: 7 Joined: Sep 2010 Reputation: 0 |
2010-09-04 03:40
Post: #17
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
|
| find quote |
cliffe
Senior Member Posts: 178 Joined: Jun 2010 Reputation: 7 |
2010-09-04 06:39
Post: #18
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. |
| find quote |
cliffe
Senior Member Posts: 178 Joined: Jun 2010 Reputation: 7 |
2010-09-04 06:47
Post: #19
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
(This post was last modified: 2010-09-04 07:30 by cliffe.)
|
| find quote |
megacrypto
Senior Member Posts: 219 Joined: Apr 2008 Reputation: 0 |
2010-09-15 22:04
Post: #20
is there a way for the script when adding a new folder to add "." instead of spaces?
|
| find quote |


Search
Help