From d9886032ebf64511db277bdbfd0cec6f90559f49 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Mon, 15 Jan 2024 19:02:51 -0500 Subject: [PATCH] fix(ui): ensure issue urls use tmdb id --- Contents/Code/webapp.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Contents/Code/webapp.py b/Contents/Code/webapp.py index 2d6a8ba0..c5eb0473 100644 --- a/Contents/Code/webapp.py +++ b/Contents/Code/webapp.py @@ -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