diff options
| author | Bobby <[email protected]> | 2024-09-17 11:18:19 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-09-17 11:18:19 -0400 |
| commit | 73b2fe9b15d82ca765ece90b5418620d49bb0eb3 (patch) | |
| tree | 1d7e37bce438b4a9fbaf8af85eb828d8e47bd119 | |
| parent | 6f020479fd11e394d87c4026f83323bc708e4f52 (diff) | |
| download | yugen-73b2fe9b15d82ca765ece90b5418620d49bb0eb3.tar.xz yugen-73b2fe9b15d82ca765ece90b5418620d49bb0eb3.zip | |
Fixed Avatar
| -rw-r--r-- | authentication/utils.py | 2 | ||||
| -rw-r--r-- | templates/watch/watch.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/authentication/utils.py b/authentication/utils.py index ac0364e..ba4fa95 100644 --- a/authentication/utils.py +++ b/authentication/utils.py @@ -185,7 +185,7 @@ def authenticate_user(exchange_response): "discord_refresh_token": refresh_token, "discord_token_type": token_type, "discord_username": discord_user["username"], - "discord_avatar": discord_user["avatar"], + "discord_avatar": discord_user["avatar"] if discord_user["avatar"] is not None else "", "discord_banner": discord_user["banner"] if discord_user["banner"] is not None else "", "discord_global_name": discord_user["global_name"], "discord_guild_name": discord_user["guild_name"], diff --git a/templates/watch/watch.html b/templates/watch/watch.html index d48196c..0d086c3 100644 --- a/templates/watch/watch.html +++ b/templates/watch/watch.html @@ -898,7 +898,7 @@ const layout = new VidstackPlayerLayout({ {% for track in streaming_data.tracks %} {% if track.kind == 'thumbnails' %} - thumbnails: "{{ track.file }}", + thumbnails: "https://proxy-worker.bobbyskhs.workers.dev?url={{ track.file }}", {% endif %} {% endfor %} }); |
