Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harmonize Title-Parsing of Movies and TV-Series #974

Open
rcrdnalor opened this issue Nov 20, 2024 · 0 comments
Open

Harmonize Title-Parsing of Movies and TV-Series #974

rcrdnalor opened this issue Nov 20, 2024 · 0 comments
Assignees
Labels
component:mythtv:metadata Metadata grabber issues enhancement request version:master Master Development Branch

Comments

@rcrdnalor
Copy link
Contributor

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) or The 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 becomes Ocean's Eleven 2001
according the filename convention on the wiki.
This confuses the movie grabber of MythTV because it
cannot distinguish 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.

Proposed solution:
Allow parenthesis when parsing filenames of video titles
containing a year in curved braces at the end of the title.
It enables MythTV's movie grabber to extract the release year
from the parsed filename and do a search for title with year.

rcrdnalor added a commit to rcrdnalor/mythtv that referenced this issue Nov 20, 2024
This change respects parentheses, i.e.: curved marks "()"
in the parsed filenames of a movie, thus parsing of the
release year in parentheses will work.
It enables MythTV's movie grabber to extract the release year
from the parsed filename and do a search for title with year.
The correct syntax for a filename is from now on
"A Movie Title (YYYY).mpg" instead of "A Movie Title YYYY.mpg"
as stated in the wiki.
It resolves ambiguous parsing of different movie titles like
`Wonder Woman 1984` and `Wonder Woman`.

Note: For tv-series, it is already allowed to add the year
in the title, like `The Forsyte Saga (1967)`
e.g.: `The Forsyte Saga (1967) 01x01 A Family Festival.mkv`
is correctly parsed.

Fixes MythTV#974
@rcrdnalor rcrdnalor self-assigned this Nov 21, 2024
@rcrdnalor rcrdnalor added version:master Master Development Branch component:mythtv:metadata Metadata grabber issues enhancement request labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:mythtv:metadata Metadata grabber issues enhancement request version:master Master Development Branch
Projects
None yet
Development

No branches or pull requests

1 participant