Kodi Community Forum
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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49


Sort TV Movie Sorting - hiesl - 2013-05-24

Hi there,

I've been trying to set up SortTV on my ubuntu server. Working great instead of movie sorting.
All movies in my directories to sort are handled as a TV-Show and SortTV doesn't even try to get any information from tmdb.

For example:
Code:
Sorting:
    From /mnt/data/Allgemein/input/
    TV episodes into /mnt/data/Serien/
    Movies into /mnt/data/Filme/
0:13:1, 24-4-2013
WARN: Failed to get dfd gran torino series information on the tvdb.com.
WARN: Failed to get dfd gran torino series information on the tvdb.com.
WARN: Failed to get dfd gran torino series information on the tvdb.com.
WARN: Failed to get dfd inglourious basterds 720p series information on the tvdb.com.
I am wondering if i missed to enable movie sorting in the config


RE: Sort TV Movie Sorting - cliffe - 2013-05-24

(2013-05-24, 00:29)hiesl Wrote: Hi there,

I've been trying to set up SortTV on my ubuntu server. Working great instead of movie sorting.
All movies in my directories to sort are handled as a TV-Show and SortTV doesn't even try to get any information from tmdb.

For example:
Code:
Sorting:
    From /mnt/data/Allgemein/input/
    TV episodes into /mnt/data/Serien/
    Movies into /mnt/data/Filme/
0:13:1, 24-4-2013
WARN: Failed to get dfd gran torino series information on the tvdb.com.
WARN: Failed to get dfd gran torino series information on the tvdb.com.
WARN: Failed to get dfd gran torino series information on the tvdb.com.
WARN: Failed to get dfd inglourious basterds 720p series information on the tvdb.com.
I am wondering if i missed to enable movie sorting in the config

If the file name looks like a TV show, it will assume it is. Probably the file name has something like "1x1" or "1-1" in it. Just remove that from the name and all should be well. For example, change it to "gran torino.avi", "gran torino (2008).avi", "gran torino Bluray blah blah etc.avi", or similar and it should work.

I guess a possible future improvement would be to add an option to try movie matches if it is not found in thetvdb.

If you are interested, check out is_movie and is_tv_episode in the code, to see the regular expressions that are used.


SortTV - mimbleful - 2013-05-25

Hi! Love the program, just been getting this strange error the last few times I've tried to use it:

Warning: TBDB::API: No season 2 found for 12
Can't use an undefined value as an array reference at sorttv.pl line 1653


I have not done anything to the perl program file.


RE: SortTV - cliffe - 2013-05-31

(2013-05-25, 18:00)mimbleful Wrote: Hi! Love the program, just been getting this strange error the last few times I've tried to use it:

Warning: TBDB::API: No season 2 found for 12
Can't use an undefined value as an array reference at sorttv.pl line 1653


I have not done anything to the perl program file.

Looks like you found a bug. It is likely choking on a specific file name. Try removing some files from the directory you are sorting from. Once you have figured out which file name was causing the problem, please let me know what the problem file name was.


RE: SortTV: Sort TV episodes, movies, and music into directories for xbmc - froissart - 2013-06-16

Hello,

Maybe this is blazingly obvious but i'm not seeing it in the .conf file, is there a way to have sorttv skip or ignore specific folders? I see a blacklist of files but not folders.

I don't want my misc movie folder sorted, i want it just skipped over. How do I do this.

Thanks!

-A


SortTV on synology - lompelurt - 2013-06-26

Hi

Is it possible to get this script to work on a synology NAS?
I know it is possible to get perl on the NAS, but i have no idea how to get it to read this script.
So does anybody have this setup or know have to do it?


RE: This is the best thing since XBMCBuntu! - TwiztedIndian - 2013-06-30

You sir, are AWESOME!

Thanks to your efforts I now have a fully automated solution to grabbing and now sorting my content for my media center.

Have a beer / coffee / beverage-of-choice on me!

--VG

(2013-06-26, 14:58)lompelurt Wrote: Hi

Is it possible to get this script to work on a synology NAS?
I know it is possible to get perl on the NAS, but i have no idea how to get it to read this script.
So does anybody have this setup or know have to do it?

If the synology NAS can run Perl and the CPAN modules there is no reason it can't run this script that I can think of...

Just follow the directions and setup your directories in the config file appropriately.


RE: Issue with movie titles containing "Part X" - TwiztedIndian - 2013-06-30

Cliffe, when sorting movies I found a small issue in regards to the way the file was named compared to what is shown on tmdb.org.

In my case it was an issue with the movie title containing "Part 2" while the listing on tmdb.org is "Part II". I tested to see if this was the case by changing the "2" to "II" and it sorted as expected.

Would there be a way to address small issue?


RE: SortTV: New feature request - TwiztedIndian - 2013-07-03

Hoping the above issue can possibly be addressed. I've ran into it again with another movie.

On another note, I've been trying for the past few days, without success, to get the script to send me an email/text when a new episode or movie has been sorted but I've failed enough that I've given up. Could that be a possible feature to add to the script?


SortTV Problem with Shows containing an s - sokahr - 2013-07-07

Hello,
I installed and configured the SortTV perl, but got curiouse results from the parsing. For a file named like: Necessary.Roughnes.s03.e10.mp4 the Series parsing results in Nece.
Is there some special entries in the sorttv.conf, which I oversaw?

I fixed it temporarily by setting
show-name-substitute=Nece-->Necessarry Roughness

But this can't be a solid solution. Specially if you think of 2 Files for the Series The Simpsons and The Specialist. This would result in The S.

Please help me to fix this. Propably a bug in the regEx inside the sorttv.pl, but I've not figured out a solid RegEx myself for this.

For the other Files this works pretty fine. Great work so far.


RE: SortTV: Sort TV episodes, movies, and music into directories for - verysoftpaper - 2013-07-21

Anyone has compared Filebot's media detection with SortTV? Which one is more precise?
This doesn't download subtitles does it?
Thanks


RE: SortTV.... - pjobson - 2013-07-30

I created a new module, unfortunately the old one couldn't be easily modified to work with the new API.

http://search.cpan.org/~pjobson/WWW-TheMovieDB-0.03/

The new module allows full use of all TMDB API components, though I don't think SortTV will need anywhere near that level of effort.

I think SortTV will only need a slight modification.

This:
Code:
if($moviedir) {
    $tmdb = new WWW::TheMovieDB::Search('e3df0ef251745a7833d9e9114fc9b0c1');
    $tmdb->lang($movielanguage);
}
Changes to this:
Code:
if($moviedir) {
    $tmdb = new WWW::TheMovieDB({
        'key'=>'e3df0ef251745a7833d9e9114fc9b0c1',
        'language'=>$movielanguage
    });
}

Then searching changes to something like this:
Code:
print $tmdb->Search::movie({
    'query' => 'The%20Big'
});

I did not leave in XML and YAML responses, you can try XML::XML2JSON to convert to and from JSON/XML. Should be pretty straight forward. The results returned may be different also, I'm not 100% sure.

If you need to contact me, feel free to email me: [email protected]

--Paul

EDIT: fixed a typo in my example


RE: SortTV: Sort TV episodes, movies, and music into directories for xbmc - Misterberu - 2013-08-24

Is anyone else having issues with the TVDB in regards to getting episode names? None of my shows seem to get processed anymore because of the following error:

Code:
INFO: Currently checking file: Strike.Back.S04E02.mkv
INFO: trying to move Strike Back season 04 episode 2
INFO: found a matching show:
    /storage/sorted/tv/Strike Back
INFO: found a matching season directory:
    /storage/sorted/tv/Strike Back/Season 04
INFO: Fetching episode title for Strike Back Season 04 Episode 2.
SKIP: Failed to retrieve episode name from thetvdb

Has anything changed with the TVDB that would cause this? I'm on Debian Squeeze, by the way.


RE: SortTV: Sort TV episodes, movies, and music into directories for xbmc (Linux/Win/Mac) - bartek235 - 2013-09-03

Hey there great work on the script... however I had it working a few days back and then all of a sudden it started failing... looking depper into things now seems that somehow the perm modules on osx got messed up I've reinstalled them but now getting the following error...

after a whole source code of sourceforge page gets spit out I see

mismatched tag at line 51, column 2, byte 3635 at /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level/XML/Parser.pm line 187

and the script exits... any thoughts?


RE: SortTV: Sort TV episodes, movies, and music into directories for xbmc (Linux/Win/Mac) - staticxsoil71 - 2013-09-03

I have been working on incorporating TechLife's json modifications, handling of part.rar files, and updating to using WWW::TheMovieDB. The only thing im not %100 shure is working is image download from the imdb. Where can i send a patch file to?