Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
fix(ui): ensure issue urls use tmdb id
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Jan 16, 2024
1 parent ae60989 commit 5e46859
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Contents/Code/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,17 @@ def cache_data():
year = None

# convert imdb id to tmdb id, so we can build the issue url properly
if item.type == 'movie' and item_agent == 'com.plexapp.agents.imdb':
if item.type == 'movie' and (
item_agent == 'com.plexapp.agents.imdb'
or database_id.startswith('tt')
):
# try to get tmdb id from imdb id
tmdb_id = tmdb_helper.get_tmdb_id_from_imdb_id(imdb_id=database_id)
if tmdb_id:
database_id = tmdb_id
else:
Log.Debug('Unable to get TMDB ID from IMDB ID: {}'.format(database_id))
database_id = None

Check warning on line 278 in Contents/Code/webapp.py

View check run for this annotation

Codecov / codecov/patch

Contents/Code/webapp.py#L277-L278

Added lines #L277 - L278 were not covered by tests

item_issue_url = None

Expand Down

0 comments on commit 5e46859

Please sign in to comment.