Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,10 @@ def guess_info(filename):
if verbose:
print("use filename as title for recovery")

# workaround for titles with 2 numbers with a dash between them (which guessit has problems with)
if "title" in guess and isinstance(guess["title"], list):
guess["title"] = ' '.join(guess["title"])

# fix some strange guessit guessing:
# if guessit doesn't find a year in the file name it thinks it is episode,
# but we prefer it to be handled as movie instead
Expand Down
6 changes: 6 additions & 0 deletions testdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@
"OUTPUTFILE": "/series/Mkv/Motorway Cops Catching Britains Speeders/Season 7/Motorway_Cops_Catching_Britains_Speeders - S07E05 - 1080p.Web.mkv",
"NZBPO_SERIESFORMAT": "%Ext/%sn %y/Season %s/- %s_n - S%0sE%0e - %en - %qss.%qf.%ext"
},
{
"id": "series-9",
"INPUTFILE": "Airport.24-7.S01E08.1080p.Webrip.x264.AAC2.0-MasterCylinder/Airport.24-7.S01E08.1080p.Webrip.x264.AAC2.0-MasterCylinder.mkv",
"OUTPUTFILE": "/series/Mkv/Airport 24 7/Season 1/Airport 24 7 - S01E08 - 1080p.Web.mkv",
"NZBPO_SERIESFORMAT": "%Ext/%sn %y/Season %s/- %sn - S%0sE%0e - %en - %qss.%qf.%ext"
},
{
"id": "dated-deprecated-t-1",
"INPUTFILE": "The.Daily.Show.2013.06.27.Tom.Goldstein.HDTV.x264-FQM.mkv",
Expand Down