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