Harmonize Title-Parsing of Movies and TV-Series #975
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MythTV parses filenames of movies and series according
the scheme defined in
https://www.mythtv.org/wiki/MythVideo_File_Parsing
For tv-series, it is allowed to add the year in the title,
like
The Forsyte Saga (1967)
orThe Forsyte Saga (2002)
,e.g.:
The Forsyte Saga (1967) 1x01 A Family Festival.mkv
is correctly parsed.
This may help the television grabber of MythTV to find the
correct entry.
In contrast, all kind of braces are removed from the filename
when parsing video titles:
Ocean's Eleven (2001).mp4
becomesOcean's Eleven 2001
according the filename convention on the wiki.
This confuses the movie grabber of MythTV because it
cannot be distinguished whether the year is part of the
title or it is the year of the release. For exact this reason,
grabbing for titles ending with a year is not implemented in
the movie grabber tmdb3.py.
Popular examples for different movies with year in the title:
Wonder Woman
vs.Wonder Woman 1984
Blues Brothers
vs.Blues Brothers 2000
This change respects parentheses "()" in the filename of
a movie, thus parsing of the release year will work.
Furhermore, it enables correct parsing of titles containing
parentheses, like
I (Almost) Got away with It
or(T)Raumschiff Surprise - Periode 1
.Advanced searches on imdb.com for 'parenthesis in title'
and 'movies with year in the title' show a lot of matches,
but I found no movie title that ends with a year (4 digits)
in parentheses.
The wiki page at https://www.mythtv.org/wiki/MythVideo_File_Parsing
needs to be upated that the correct syntax is from now on
"A Movie Title (YYYY).mpg" instead of "A Movie Title YYYY.mpg".
The latter was introduced in 2012 without providing a rationale,
but afaik never implemented by the MyhTV movie grabbers
(ttmdb3.py, tmdb.py or its predecessor jamu.py).
Backward compatibility is provided, i.e.: adding a releaase year
without parentheses works the same way as before this change:
The movie grabber will probably not find the correct entry.
This pull reqest supersedes PR #103 .
Checklist