From 385d6bace887b491e0f366a719ce5d530b90edce Mon Sep 17 00:00:00 2001 From: Nathan DeTar Date: Sat, 12 Feb 2022 04:08:19 -0800 Subject: [PATCH] Fix cast support to handle new video tag format. (#169) * Added subtitle support to JS player. * Move `video-item` id to source tag. * Move `video-item` id to source tag. * Fix cast support to handle new video tag format * Add subtitle support to cast integration, WIP * Replace `&` with `&` in video titles. * Check if the video is already marked as watched * Switch to HTML watched check. --- docker_assets/nginx.conf | 4 +++ tubearchivist/home/templates/home/video.html | 4 +-- tubearchivist/static/cast-videos.js | 27 ++++++++++++++++++-- tubearchivist/static/script.js | 6 ++--- 4 files changed, 34 insertions(+), 7 deletions(-) diff --git a/docker_assets/nginx.conf b/docker_assets/nginx.conf index 7d8421f..2bf3241 100644 --- a/docker_assets/nginx.conf +++ b/docker_assets/nginx.conf @@ -16,6 +16,10 @@ server { location /media/ { alias /youtube/; + + types { + text/vtt vtt; + } } location / { diff --git a/tubearchivist/home/templates/home/video.html b/tubearchivist/home/templates/home/video.html index bec823f..cb583cf 100644 --- a/tubearchivist/home/templates/home/video.html +++ b/tubearchivist/home/templates/home/video.html @@ -4,8 +4,8 @@ {% load humanize %}