Skip to content

Commit

Permalink
Remove region check
Browse files Browse the repository at this point in the history
  • Loading branch information
sarendsen committed Dec 16, 2022
1 parent 61c6cf4 commit 64d388d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions flexget/components/tmdb/api_tmdb.py
Expand Up @@ -207,10 +207,6 @@ def release_dates(self):
release_dates = {}
lookup_language = self.lookup_language or self.language
for iso in results:
# TODO: Filter on language not fixed regions. Fallback on movie spoken language if not defined in tmdb?
if iso['iso_3166_1'] not in ['US', 'GB']:
continue

# loop and get the first release per type
for release in iso['release_dates']:
release_type = RELEASE_DATE_TYPE_MAPPING[release['type']]
Expand Down
4 changes: 2 additions & 2 deletions flexget/tests/test_tmdb.py
Expand Up @@ -25,10 +25,10 @@ def test_tmdb_lookup(self, execute_task):
tmdb_name='The Matrix Resurrections',
tmdb_year=2021,
tmdb_release_dates={
'premiere': '2021-12-18T00:00:00.000Z',
'theatrical': '2021-12-22T00:00:00.000Z',
'theatrical': '2021-12-16T00:00:00.000Z',
'digital': '2021-12-22T00:00:00.000Z',
'physical': '2022-03-08T00:00:00.000Z',
'premiere': '2021-12-18T00:00:00.000Z',
},
), 'Didn\'t populate tmdb info for The Matrix Resurrections'

Expand Down

0 comments on commit 64d388d

Please sign in to comment.