Re: [PP-Script] VideoSort - better video sorting
Posted: 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.
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.