You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: comet/api/stream.py
+26-12
Original file line number
Diff line number
Diff line change
@@ -322,11 +322,21 @@ async def playback(
322
322
323
323
asyncwithaiohttp.ClientSession() assession:
324
324
cached_link=awaitdatabase.fetch_one(
325
-
f"SELECT download_url FROM download_links_cache WHERE debrid_key = '{config['debridApiKey']}' AND info_hash = '{hash}' AND ((cast(:season as INTEGER) IS NULL AND season IS NULL) OR season = cast(:season as INTEGER)) AND ((cast(:episode as INTEGER) IS NULL AND episode IS NULL) OR episode = cast(:episode as INTEGER)) AND timestamp + 3600 >= :current_time",
325
+
"""
326
+
SELECT download_url
327
+
FROM download_links_cache
328
+
WHERE debrid_key = :debrid_key
329
+
AND info_hash = :info_hash
330
+
AND ((CAST(:season as INTEGER) IS NULL AND season IS NULL) OR season = CAST(:season as INTEGER))
331
+
AND ((CAST(:episode as INTEGER) IS NULL AND episode IS NULL) OR episode = CAST(:episode as INTEGER))
0 commit comments