[PP-Script] VideoSort - better video sorting

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
DoGGY2DoPE
Posts: 1
Joined: 26 Nov 2018, 22:47

Re: [PP-Script] VideoSort - better video sorting

Post by DoGGY2DoPE » 26 Nov 2018, 23:05

I am having an issues with "US" being picked up from the showname (not file / folder name) and being appended as "Us":

VideoSort: MatchesDict([('title', u'tell me a story'), ('country', <Country [US]>), ('season', 1), ('episode', 4), ('format', u'WEBRip'), ('video_codec', u'h264'), ('release_group', u'tbs'), ('container', u'mkv'), ('mimetype', u'video/x-matroska'), ('type', u'episode')])
Mon Nov 26 2018 23:43:45 INFO VideoSort: Using DNZB-ProperName
Mon Nov 26 2018 23:43:45 INFO VideoSort: Using DNZB-EpisodeName
Mon Nov 26 2018 23:43:45 INFO VideoSort: MatchesDict([('title', 'Tell Me a Story US'), ('country', <Country [US]>), ('season', 1), ('episode', 4), ('format', u'WEBRip'), ('video_codec', u'h264'), ('release_group', u'tbs'), ('container', u'mkv'), ('mimetype', u'video/x-matroska'), ('type', u'episode'), ('vtype', 'series'), ('episode_title', 'Chapter 4: Rage')])
Mon Nov 26 2018 23:43:45 INFO VideoSort: Type: series
Mon Nov 26 2018 23:43:45 INFO VideoSort: MatchesDict([('title', 'Tell Me a Story US'), ('country', <Country [US]>), ('season', 1), ('episode', 4), ('format', u'WEBRip'), ('video_codec', u'h264'), ('release_group', u'tbs'), ('container', u'mkv'), ('mimetype', u'video/x-matroska'), ('type', u'episode'), ('vtype', 'series'), ('episode_title', 'Chapter 4: Rage')])
Mon Nov 26 2018 23:43:45 INFO VideoSort: format: %sn/Season %0s [%qf %qss]/%sn - [S%0sE%0e] - %en.%ext
Mon Nov 26 2018 23:43:45 INFO VideoSort: path after subst: Tell Me a Story Us/Season 01 [WEBRip ]/Tell Me a Story Us - [S01E04] - Chapter 4 Rage..mkv



ALSO as of today I am having an issue where the first letter of a Series name is cut off and the second letter is capitalized and missing title:

VideoSort: filename: \\hidden\Incoming\Mr.Robot.S03E10.BDRip.x264-DEMAND\e7fedc0e34e945f982f2c387f12665db.mkv
Tue Nov 27 2018 09:45:48 INFO VideoSort: stripped filename: r.Robot.S03E10.BDRip.x264-DEMAND\e7fedc0e34e945f982f2c387f12665db.mkv
Tue Nov 27 2018 09:45:48 INFO VideoSort: ['r.Robot.S03E10.BDRip.x264-DEMAND', 'e7fedc0e34e945f982f2c387f12665db.mkv']
Tue Nov 27 2018 09:45:48 INFO VideoSort: Detected obfuscated filename e7fedc0e34e945f982f2c387f12665db.mkv, removing from guess path
Tue Nov 27 2018 09:45:48 INFO VideoSort: Guessing: r.Robot.S03E10.BDRip.x264-DEMAND\-.mkv
Tue Nov 27 2018 09:45:48 INFO VideoSort: MatchesDict([('title', u'r Robot'), ('season', 3), ('episode', 10), ('format', u'BluRay'), ('video_codec', u'h264'), ('release_group', u'DEMAND'), ('container', u'mkv'), ('mimetype', u'video/x-matroska'), ('type', u'episode')])
Tue Nov 27 2018 09:45:48 INFO VideoSort: Type: series
Tue Nov 27 2018 09:45:48 INFO VideoSort: MatchesDict([('title', u'r Robot'), ('season', 3), ('episode', 10), ('format', u'BluRay'), ('video_codec', u'h264'), ('release_group', u'DEMAND'), ('container', u'mkv'), ('mimetype', u'video/x-matroska'), ('type', u'episode'), ('vtype', 'series')])
Tue Nov 27 2018 09:45:48 INFO VideoSort: format: %sn/Season %0s [%qf]/%sn - [S%0sE%0e] - %en.%ext
Tue Nov 27 2018 09:45:48 INFO VideoSort: path after subst: R Robot/Season 03 [BluRay]/R Robot - [S03E10] - ..mkv


I changed line 932 from "new_name = filename[len(start)+1:]" to "new_name = filename[len(start):" for now which appear to have fixed my 1 character missing on rename issue BUT who knows if that will cause me issues with other files.

douche
Posts: 49
Joined: 08 Feb 2014, 23:50

Re: [PP-Script] VideoSort - better video sorting

Post by douche » 11 Dec 2018, 19:54

Per the last post, I'm also having the first letter of a show being dropped.

It's fairly inconsistent, usually seems to happen with shows that start with "The" or another short first word.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest