From 809014736ca55564a590bb15f6e301ac0b1bf398 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 2 Dec 2025 17:46:42 -0500 Subject: [PATCH] [videos] Cleaning up tt on imdb videos --- vrobbler/apps/books/metadata.py | 4 +--- vrobbler/apps/videos/metadata.py | 2 +- vrobbler/apps/videos/views.py | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/vrobbler/apps/books/metadata.py b/vrobbler/apps/books/metadata.py index bb14401..9811525 100644 --- a/vrobbler/apps/books/metadata.py +++ b/vrobbler/apps/books/metadata.py @@ -1,10 +1,8 @@ -from enum import Enum from typing import Optional -import pendulum YOUTUBE_VIDEO_URL = "https://www.youtube.com/watch?v=" -IMDB_VIDEO_URL = "https://www.imdb.com/title/tt" +IMDB_VIDEO_URL = "https://www.imdb.com/title/" class BookType: diff --git a/vrobbler/apps/videos/metadata.py b/vrobbler/apps/videos/metadata.py index 91992af..709b95f 100644 --- a/vrobbler/apps/videos/metadata.py +++ b/vrobbler/apps/videos/metadata.py @@ -3,7 +3,7 @@ from typing import Optional YOUTUBE_VIDEO_URL = "https://www.youtube.com/watch?v=" -IMDB_VIDEO_URL = "https://www.imdb.com/title/tt" +IMDB_VIDEO_URL = "https://www.imdb.com/title" class VideoType(Enum): diff --git a/vrobbler/apps/videos/views.py b/vrobbler/apps/videos/views.py index 003804c..a7f8747 100644 --- a/vrobbler/apps/videos/views.py +++ b/vrobbler/apps/videos/views.py @@ -31,7 +31,7 @@ class SeriesDetailView(LoginRequiredMixin, generic.DetailView): if self.object.is_episode_playing(user_id): next_episode_id = "" if next_episode_id: - context_data["next_episode_id"] = "tt" + next_episode_id + context_data["next_episode_id"] = next_episode_id return context_data