feat: add a temporary proxy for no_thumbnail

ideally, this would be served from a local resource instead of proxying
This commit is contained in:
2025-09-25 06:36:23 +02:00
parent caa9e0c2b1
commit 509e81aafa
3 changed files with 15 additions and 3 deletions

View File

@@ -23,11 +23,10 @@ import ythdd_struct_parser
# [✓] /vi/videoIdXXXX/maxresdefault.jpg (todo: add a fallback for 404s)
# [✓] /api/v1/search?q=... (videos and playlists)
# [✓] /api/v1/search/suggestions?q=...&pq=...
# [✓] /api/v1/channels/:ucid
# [✓] /api/v1/channels/:ucid/videos, shorts, playlists
# [✓] /api/v1/channel/:ucid
# [✓] /api/v1/channel/:ucid/videos, shorts, playlists, streams
# [✓] /api/v1/comments/:videoid?continuation=...
# [✓] /api/v1/videos/videoIdXXXX
# [X] /api/v1/channels/:ucid/streams
# [X] /api/v1/playlists/:plid
# [X] /api/v1/storyboards/:videoIdXXXX
# [*] /api/v1/auth/subscriptions (stub? db?)
@@ -35,6 +34,7 @@ import ythdd_struct_parser
# [*] /api/v1/auth/playlists (stub? db?)
DEFAULT_AVATAR = "https://yt3.ggpht.com/a/default-user=s176-c-k-c0x00ffffff-no-rj"
DEFAULT_VIDEO = "https://i.ytimg.com/img/no_thumbnail.jpg" # todo: replace this with a custom, local asset
def incrementBadRequests():
ythdd_globals.apiFailedRequests += 1