![]() |
|
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 - 2011-01-22 18:14 First of all, awesome work. SortTV is a great! great! script. Currently I have two scripts 1) Moves finished torrent files to "complete" directory 2) SortTV sorts the "complete" directory Voila! Is there a way of incorporating the two? (I use torrentflux-b4rt) Code: #!/usr/bin/perl The code checks that the torrent status is "Done" then moves the file and removes the torrent from download. Small bug, it only looks for a file. If it sees a folder instead, it hiccups and still deletes the torrent. Maybe someone could improve/fix that for me? - Holdengts - 2011-01-24 09:08 nitrag Wrote:First of all, awesome work. SortTV is a great! great! script. Currently I have two scripts Does this only do its thing if the torrent has finished seeding or when the torrent is 100% downloaded. I have the sorttv script running (awesome script) and it does not move the files until i remove the torrent from utorrent. Which is a pain as i am trying to get everything automated and not have to do anything (unless i have to). Cheers holdengts - e2zippo - 2011-01-24 19:14 Holdengts Wrote:Does this only do its thing if the torrent has finished seeding or when the torrent is 100% downloaded. Couldn't agree more, the script can't move the file when it's in use by utorrent (not the scripts fault). But is there anything that can be done about it? - nitrag - 2011-01-26 01:44 Correct me if I'm wrong (I tested this on like ver 1.0 of sorttv) but in Linux it doesn't tell that the file is being written to, it just moves it. I'm using SortTV in a torrentflux-b4rt setup. The above is for when the torrent is completely finished ("Done"). Leeching -> Seeding (X%) - > Done. - Helioy - 2011-01-28 23:44 Hi Cliffe, Thanks for your script. Took me hell of a time getting to work on Windows ![]() For people reading you have to download dmake here: http://johnbokma.com/perl/make-for-windows.html and copy it into ~ C:\Perl64\bin before trying to install and compile stuff. Now to my question: In order to use the proper/repack stuff do I need to let the script to rename my tv shows? I just want the script to look in a folder and check if proper is present and if proper IS present then remove non-proper. No rename no nothing. Scenario: Quote:Show.S01E13.720p.HDTV.X264-.mkv <-- below removes this Is that possible? I think it only works if I use rename and it checks if file is present etc. and then overwrite. Would it be possible to add support to non-renamed files? I also got this error: Quote:Unrecognized escape \F passed through in regex; marked by <-- HERE in m/C:\F <-- HERE oer// at sorttv.pl line 121. Config: Quote:directory-to-sort:C:\Foer\ - rflores2323 - 2011-01-29 00:48 anyway you can add unrar support to be able to go into folders and unrar and then move to another folder, and then rename ? - SumOne - 2011-01-31 00:29 Cliffe, First thank you, and the other contributors as well, for the great work done on this script. That said, I am having an issue with files names in particular format that has me stumped at the moment... it seems like it is parsing the year in the filename as the Season number instead of picking it up as a date. I have tried running sorttv with match-files-named-showname-episodetitle set to both TRUE and FALSE... but that seems to make no difference. I think the output below provides pretty good detail around what is happening, if you or anyone else can help i would appreciate it. Also, if there is additional information I should supply please let me know. Thanks! *** Update: zeroing in on line 188 from the first error message led me to change season-double-digits from TRUE to FALSE, and everything worked fine. That provides me a decent workaround for now, and hopefully it will be useful to anyone else hitting the same issue. If I can figure out a way to patch the code to eliminate the issue I'll gen a patch and link to it from here. Quote:/usr/bin/perl /home/xbmc/.sorttv/sorttv.pl --directory-to-sort:~/BT/completed --directory-to-sort-into:/freenas/TV --xbmc-webserver:localhost:8080 --match-files-named-showname-episodetitle:FALSE Quote:INFO: trying to move The.Daily.Show season 2011 episode 7 New version available - cliffe - 2011-02-07 19:20 Thanks for the patience. I have been pretty busy, what with submitting my PhD thesis (yay!) ![]() Anyway, more good news: here is v1.20 of SortTV! This new version has these new features:
This addresses things brought up recently, and adds some features you guys wanted. As always, your testing, bug reports, and feedback are appreciated. Thanks to everyone who have donated, your encouragement is really appreciated! If you find this software helpful, and haven’t already shown your support, please consider a $5 donation, which will give us both warm fuzzy feelings. Click for more information: http://sourceforge.net/donate/index.php?group_id=330009 You can get the new version from: https://sourceforge.net/projects/sorttv/ TravellingGuy Wrote:I'm a sysadmin, not a programmer, when I dabble, it's usually PHP, not Perl. And regex confounds me. Thanks. Since you demonstrated that this is a feature that is really wanted, I have added this to SortTV. I didn't end up using your code, but thanks for your contribution. Please feel free to compare your solution to mine and discuss. Holdengts Wrote:This script is awesome. Check out this post. TravellingGuy Wrote:Hey guys. Thanks for sharing, I am sure that other Transmission users will find this helpful. I added some rar support to SortTV, so that should help simplify your script. nitrag Wrote:First of all, awesome work. SortTV is a great! great! script. Currently I have two scripts Thanks. Not sure that it fits in the scope of sorttv.pl, but I am sure that other torrentflux-b4rt users will find that helpful. Helioy Wrote:Hi Cliffe, Currently the repack overwrite only applies if renaming. Feel free to have a go at adding the feature and sending me a patch. Not sure why you needed to compile anything manually. rflores2323 Wrote:anyway you can add unrar support to be able to go into folders and unrar and then move to another folder, and then rename ? Sure SortTV now can extract within the directory being sorted before the sort occurs.SumOne Wrote:Cliffe, I think this should be fixed now, but let me know if there are still problems. Enjoy
- vikjon0 - 2011-02-08 19:07 I just tested this and it is working very well. It just took me a few minutes to setup. Thank you very much! I need a few tweaks which I could probably hard code into the end of your script but I list it here in case you want to add it. 1) Some series or "mini series"(?) is named part I,III etc. I have e.g. Spartacus.Gods.of.the.Arena.Pt.III.HDTV.XviD.avi. I also remember that "the pacific" was the same. This should be possible to handle I guess? 2) Some stuff is TV but not "episodes" according to this script. Assuming you have one folder for TV and one for Movies you still want to move it to TV. E.g. The.Daily.Show.2011.02.02.Matthew.Perry.HDTV.XviD-FQM.avi. EDIT: While the the spillover have to be assumed to be movies. Perhaps it can be soft coded based on that a file with a full date is normally a daily tv show? Alternatively I need two "non episodes" folders where the first is for files matching a list of names in the conf file. - vikjon0 - 2011-02-08 21:07 After re-sorting all my TV files I am even more impressed by the matching logic. Howver, I seem to have found a small hole, I would'y say it is bugg but it should be possible to cover it. I see that you can get the name & season from a folder structure /house/season/ and then it is enough if the files have a numer e.g. 2.avi. However, if they have a stupid name e.g. House MD - 5 - Mirror Mirror It goes to "non epi", but if I rename it just "5" it works! Perhaps he is only going for the folder name if he is sure the filename does not indicate something else than the folder? That may make some sense...but if the folder is "season 5" it is pretty safe to assume next level really is the name? |