Skip to content

Commit

Permalink
[change] nfo_lookup: Fallback to movie.nfo if same name .nfo not found (
Browse files Browse the repository at this point in the history
#3994)

* Fallback to movie.nfo if same name .nfo not found

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
diogosena and pre-commit-ci[bot] committed May 21, 2024
1 parent fd51ac4 commit 020e3e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flexget/plugins/metainfo/nfo_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ def get_nfo_filename(self, entry):
if os.path.isfile(nfo_full_filename):
return nfo_full_filename

movie_nfo_filename = os.path.join(
os.path.dirname(location), 'movie' + self.nfo_file_extension
)
if os.path.isfile(movie_nfo_filename):
return movie_nfo_filename


class BadXmlFile(Exception):
"""
Expand Down

0 comments on commit 020e3e9

Please sign in to comment.