SortTV: Sort TV episodes, movies, and music into directories for xbmc (Linux/Win/Mac) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116) +--- Thread: SortTV: Sort TV episodes, movies, and music into directories for xbmc (Linux/Win/Mac) (/showthread.php?tid=75949) |
- spazlon - 2011-11-15 cliffe Wrote:Ahh, ok, looks like a problem with the way I coded the error checking, not having been tested much on Windows. This is the output after I added those lines. Code: C:\scripts>sorttv2.bat Now there was some confusion. You said to add the code on line 1105, but before "if(num_found_in_list(system("rar e -o$over '$arfile' '$dest'"), @errors) eq "FALSE") {". "if(num_found_in_list(system("rar e -o$over '$arfile' '$dest'"), @errors) eq "FALSE") {" is on line 1093. Line 1105 is the "}" of line 1104 which is "out("std", "WARN: the rar / 7zip program could not be found, not decompressing $arfile\n");". Should I have added the code after or inside of the "} esle {"? - spazlon - 2011-11-16 Now I have a new error that just started today. I haven't touched any of the configs since this started so I know it isn't anything I changed. Code: C:\scripts>perl c:\scripts\sorttv\sorttv.pl I'm not sure what is causing the error. - cliffe - 2011-11-17 spazlon Wrote:This is the output after I added those lines. Thanks. The line numbers didn't match because I was referring to the latest from the git repository, not the last release. Sorry for the confusion. I can add that return value as an error, for the next release. In the mean time you can try it out by changing the line: Code: my @errors = (-1, 32512); Code: my @errors = (-1, 32512, 256); Hopefully that would fix the issue and it would realise that the extract command failed and would try the next one. If you do try that, then please let me know whether it resolves the problem. - cliffe - 2011-11-17 spazlon Wrote:Now I have a new error that just started today. I haven't touched any of the configs since this started so I know it isn't anything I changed. Hmm, that's a new one. (Thanks for reporting it.) Maybe one of the files in your sort directory has a file name with non-standard encoding. You could try moving some of the files out until you figure out which one it was. I think this kind of problem is quite rare, but it would be nice to know what caused it. - cliffe - 2011-11-17 Novanod Wrote:Greetings... i may be coming off stupid or some where in that area. but this has gone right over my head... Try re-running the command: Code: cpan File::Copy::Recursive File::Glob LWP::Simple TVDB::API Getopt::Long Switch WWW::TheMovieDB::Search XML::Simple Also try installing the specific module that looks to be missing: Code: cpan WWW::TheMovieDB::Search Otherwise as spazlon suggests, maybe it is to do with the version of Perl you are using. I have only ever tried Strawberry Perl on Windows, so you could try that. - slashr - 2011-11-26 Hello , getting this error (running ubuntu) Quote:Can't locate TVDB/API.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at sorttv.pl line 48. Any idea what it might be ? Thanks Trying the cpan method atm will paste errors if any Seems like running : Quote:cpan File::Copy::Recursive File::Glob LWP::Simple TVDB::API Getopt::Long Switch WWW::TheMovieDB::Search XML::Simple Quote:cpan WWW::TheMovieDB::Search Did the trick but for future users in case they're having problems : First time my cpan got messed up kept asking me to configure every time i ran , and didn't install anything , so i deleted the config file and then everything worked fine , yey , testing the script now Need to test more but hanks alot for such a great work , will donate soon ! Just one question how come some folders are named lowercase ? had some like "top chef" and others like "High Fidelity" Thanks a bunch , this is a kick ass script indeed Donated - slashr - 2011-11-26 1 more doubt , how can i inform a xbmc server on another machine to update ? running the sorter etc in a different machine than the xbmc client , don't even have xbmc installed on the server . is it possible to enter an ip or ? thanks in advance - cliffe - 2011-11-26 slashr Wrote:Hello , getting this error (running ubuntu) Thanks The naming capitalisation is based on fetches from thetvdb. If a match is not found in the online database, the capitalisation is as per the file name. If you are not happy with the result you can always rename the directory that was created, with your capitalisation of choice. Future files will be sorted into the existing directory regardless of capitalisation. slashr Wrote:1 more doubt , how can i inform a xbmc server on another machine to update ? running the sorter etc in a different machine than the xbmc client , don't even have xbmc installed on the server . Although I haven't tested that, it should work. Just replace "localhost" with the IP address, and make sure the ports are open on any firewalls. Your success with the xbmc integration may vary, depending on the version of xbmc etc. I think the new remote control interface code could use some work (but seems to work on my development machine). If possible, it might be worth testing SortTV on the same machine first. Alternatively, maybe you could somehow just script xbmc to check its library every so often. If anyone reading this has any other advice please chime in. - slashr - 2011-11-26 Thanks a bunch , well i could add a cronjob to update library every so often will try the ip thingie , at least will know if it works . Thanks for this really saved me many headaches with sorting my stuff And yeah will do the rename thingie , cheers - jacksback - 2011-12-05 Recently converted to Linux and was looking for an automated TV-Show renamer. Just found your script and couldn't be happier. Thanks so much for putting this together - Nexxo - 2011-12-10 I'm having some issues with the movie renamer. I'm running the script on my Ubuntu Server that acts as a media server to windows machines. The problem is the script is adding ':' in some file / folder names, which causes the names appear as rubbish on windows shares. I have set the following flag in the config file, but it does not seem to be doing anything. force-windows-compatible-filenames=TRUE Any ideas what is causing this? - cliffe - 2011-12-10 Nexxo Wrote:I'm having some issues with the movie renamer. I'm running the script on my Ubuntu Server that acts as a media server to windows machines. The problem is the script is adding ':' in some file / folder names, which causes the names appear as rubbish on windows shares. This is because the movie naming feature is currently not honouring that option. This will be fixed in the next release (when I get some time). Thanks for reporting. - Solo0815 - 2011-12-11 I get this error on Debian Squeeze: Code: Can't locate TVDB/API.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./sorttv.pl line 48. Code: perl -MCPAN -e 'install TVDB::API' Thx - gref - 2011-12-13 Hi cliffe, Firstly thanks for the tool - it provides a far simpler way to automate sorting tv and movies and for the most part works very well. I have a couple of suggestions/queries - 1) How does the tv-id-substitute work? I have a couple of series that I know have pages on tvdb but aren't being renamed correctly because of ambiguities between shows of similar names. I've tried having the folder name link to the substitute as shown below but it doesn't seem to use that when searching on the tvdb... tvdb-id-substitute:#ShowName#-->123456 2) Secondly, as far as I can see there's no option to sort films into their own folders. This would be great as its the standard for XBMC and makes it far more organised. Hope you can get back to me with a response but either way, keep up the good work. - newphreak - 2011-12-17 Hi, could we get a episode/season substitute to clean up series like Mythbusters and Dirty Jobs? All these things are wrongly named and i would like to clean it up using SortTV with some substitution of episode/season. It would be a long and messy conf, but I would really appreciate fixing issues like this in this matter, not through renaming/messing up my files. Would that be possible? |