Skip to content

Commit

Permalink
[TMDB] Fix Problem mit Jahr
Browse files Browse the repository at this point in the history
  • Loading branch information
anis3 authored Dec 18, 2020
1 parent 39533e4 commit 4b12924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/tmdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def _format(self, meta, name):
_meta['premiered'] = meta['release_date']
elif 'first_air_date' in meta and meta['first_air_date']:
_meta['premiered'] = meta['first_air_date']
if 'premiered' in _meta and _meta['premiered']:
if 'premiered' in _meta and _meta['premiered'] and len(_meta['premiered']) == 10:
_meta['year'] = int(_meta['premiered'][:4])
if 'budget' in meta and meta['budget']:
_meta['budget'] = "{:,} $".format(meta['budget'])
Expand Down

0 comments on commit 4b12924

Please sign in to comment.