Skip to content

Commit 5f485f5

Browse files
author
Ryan Winkler
authored
Merge pull request #684 from daften/fix/tvdb-backfill-sources
Add TVDB to metadata backfill source allow-lists
2 parents 9a75959 + 1274064 commit 5f485f5

5 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/app/management/commands/populate_runtime_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def handle(self, *args, **options):
5555
],
5656
source__in=[
5757
"tmdb",
58+
"tvdb",
5859
"mal",
5960
"simkl",
6061
], # Only process items from providers that have runtime data

src/app/signals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252

5353
RUNTIME_UNKNOWN_FAILED = 999999 # runtime completely unknown / failed lookup
5454

55-
RUNTIME_BACKFILL_SOURCES = ("tmdb", "mal", "simkl")
56-
GENRE_BACKFILL_SOURCES = ("tmdb", "mal", "simkl", "igdb", "bgg")
55+
RUNTIME_BACKFILL_SOURCES = ("tmdb", "tvdb", "mal", "simkl")
56+
GENRE_BACKFILL_SOURCES = ("tmdb", "tvdb", "mal", "simkl", "igdb", "bgg")
5757
DISCOVER_PRIORITY_HISTORY_DEBOUNCE_SECONDS = 15
5858
DISCOVER_PRIORITY_HISTORY_COUNTDOWN = 15
5959
DISCOVER_PRIORITY_STATISTICS_DEBOUNCE_SECONDS = 20

src/app/tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@
168168

169169
RELEASE_BACKFILL_SOURCES = (
170170
Sources.TMDB.value,
171+
Sources.TVDB.value,
171172
Sources.MAL.value,
172173
Sources.MANGAUPDATES.value,
173174
Sources.IGDB.value,

src/app/tasks_genre.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
GENRE_BACKFILL_SOURCES = (
3434
Sources.TMDB.value,
35+
Sources.TVDB.value,
3536
Sources.MAL.value,
3637
"simkl",
3738
Sources.IGDB.value,

src/app/tasks_runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
BACKGROUND_TASK_PRIORITY = getattr(settings, "CELERY_TASK_PRIORITY_BACKGROUND", 9)
3232

33-
RUNTIME_BACKFILL_SOURCES = ("tmdb", "mal", "simkl")
33+
RUNTIME_BACKFILL_SOURCES = ("tmdb", "tvdb", "mal", "simkl")
3434
RUNTIME_BACKFILL_QUEUE_TTL = 60 * 60 # 1 hour
3535

3636
SEASON_KEY_TUPLE_LENGTH = 3 # (media_id, source, season_number)

0 commit comments

Comments
 (0)