From a2c83a00a9556a41a0e655e864972d9e9e3bfa11 Mon Sep 17 00:00:00 2001 From: Felix Franz Date: Thu, 22 Aug 2019 06:17:33 +0200 Subject: [PATCH] fix: Remove invalid %desc specifier from DatedFormat Since the %desc is not supported by guessit, it would always be empty. Furthermore no documentation was provided and all dated test cases used it. The specifier was removed and the test cases adjusted accordingly. See: #52 --- VideoSort.py | 5 ----- testdata.json | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/VideoSort.py b/VideoSort.py index 948eb6a..245bedf 100755 --- a/VideoSort.py +++ b/VideoSort.py @@ -901,11 +901,6 @@ def add_dated_mapping(guess, mapping): mapping.append(('%s.N', show_name_two)) mapping.append(('%s_N', show_name_three)) - # Guessit doesn't provide episode names for dated tv shows - mapping.append(('%desc', '')) - mapping.append(('%.desc', '')) - mapping.append(('%_desc', '')) - # date date = guess.get('date') diff --git a/testdata.json b/testdata.json index 4c93e72..c7d8189 100644 --- a/testdata.json +++ b/testdata.json @@ -122,13 +122,13 @@ "id": "dated-1", "INPUTFILE": "The.Daily.Show.2013.06.27.Tom.Goldstein.HDTV.x264-FQM.mkv", "OUTPUTFILE": "/dated/2013-06/The Daily Show - 2013-6-27.mkv", - "NZBPO_DATEDFORMAT": "%y-%0m/%t - %y-%m-%0d - %desc.%ext" + "NZBPO_DATEDFORMAT": "%y-%0m/%t - %y-%m-%0d.%ext" }, { "id": "dated-2", "INPUTFILE": "Real.Time.with.Bill.Maher.2014.10.31.720p.HDTV.x264-BATV.mkv", "OUTPUTFILE": "/dated/2014-10/Real Time With Bill Maher - 2014-10-31.mkv", - "NZBPO_DATEDFORMAT": "%y-%0m/%t - %y-%m-%0d - %desc.%ext" + "NZBPO_DATEDFORMAT": "%y-%0m/%t - %y-%m-%0d.%ext" }, { "id": "dated-case-correct",