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

fix(ui): ensure issue urls use tmdb id #329

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Contents/Code/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,13 @@ 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
database_id = tmdb_id if tmdb_id else None

item_issue_url = None

Expand Down
Loading