553 Commits

Author SHA1 Message Date
James Taylor
ef711dad05 settings.py: fix img_prefix not updated when setting changes
caused old prefix to still be used after changing setting

see #31
2020-10-19 13:26:57 -07:00
James Taylor
75e8930958 yt_data_extract: normalize thumbnail and author urls
for instance, urls that start with // become https://

adjustment required in comments.py because the url was left as a
relative url in yt_data_extract by mistake and was using URL_ORIGIN
prefix as fix.

see #31
2020-10-19 12:55:03 -07:00
James Taylor
e3c311e10a
Merge pull request #29 from zrose584/copy_ts
add 't' hotkey to copy video link at current time
2020-10-13 20:06:52 -07:00
James Taylor
641af53e2e
Merge pull request #24 from zrose584/optional_proxy_images
settings.py: add 'proxy_images'
2020-10-12 09:37:54 -07:00
James Taylor
fd253d9e07
Merge branch 'master' into optional_proxy_images 2020-10-12 09:37:13 -07:00
zrose584
d2ee49ec45 add 't' hotkey 2020-10-12 17:52:01 +02:00
zrose584
37d286fc7c put the slash back 2020-10-12 13:46:50 +02:00
James Taylor
2cfc6dec39
Merge pull request #23 from zrose584/comments_js
add comments.js for comment replies
2020-10-11 18:52:34 -07:00
zrose584
643a0e8659 remove trimming of comment likes 2020-10-11 16:28:30 +02:00
zrose584
4844fa6d65 add comments.js to /comments 2020-10-10 19:01:44 +02:00
zrose584
7d7b072a5b always proxy cached thumbnails 2020-10-10 18:42:54 +02:00
James Taylor
e182cf8283 playlist: Fix add-to-local-playlist form missing 2020-10-09 21:11:27 -07:00
James Taylor
cdb3440d1d
Merge pull request #21 from zrose584/search_focus
autofocus search input on homepage
2020-10-09 13:55:25 -07:00
James Taylor
a10a97a459
Merge pull request #26 from zrose584/num_videos_fix
fix get_number_of_videos_channel
2020-10-09 12:56:07 -07:00
zrose584
a0c33c621e fix get_number_of_videos_channel 2020-10-09 19:43:22 +02:00
zrose584
6a7d0557e2 jinja: only include 'comments.js' if needed 2020-10-09 18:55:04 +02:00
zrose584
fd9bb643f8 replies: remove css border 2020-10-09 18:53:43 +02:00
zrose584
205665f138 doXhr: check xhr.status 2020-10-09 18:49:50 +02:00
zrose584
ed0b20e6c8 Don't remove the CSP completely 2020-10-09 18:35:13 +02:00
zrose584
4f46e14ad0 fix style 2020-10-09 18:25:17 +02:00
zrose584
debc11931f add comments.js 2020-10-07 20:32:57 +02:00
zrose584
f8d9be2d5a settings.py: add 'proxy_images' 2020-10-07 19:28:52 +02:00
zrose584
05cec14881 autofocus search input 2020-10-07 18:44:48 +02:00
zrose584
19da112a09 yt_app.config: use 'TEMPLATES_AUTO_RELOAD' 2020-10-07 15:27:56 +02:00
James Taylor
9123d9a6cf Fix video height not scaling down when browser window is narrow
This solution still makes sure the video doesn't jump in height
when it loads, and makes it so the video scales down properly in
aspect ratio as the browser window is made narrower.
2020-10-01 13:38:57 -07:00
James Taylor
42e72395c0 Update README 2020-09-25 16:26:29 -07:00
James Taylor
aa199cdf57 Use tor video routing instead of invidious for 403s
Using invidious isn't always successful, whereas Tor video routing
appears to be near 100% successful.
2020-09-25 13:47:13 -07:00
James Taylor
cf08f96de9 Add some space between transcript button and related videos 2020-09-25 09:48:29 -07:00
James Taylor
20152a6316 Specify video height in html so page doesn't shift down after load
Use true video height extracted from youtube to handle videos
shorter than their quality size. (e.g. widescreen videos)
2020-09-24 18:50:54 -07:00
James Taylor
9f0d84ddb9 Transcript: Add label for table view checkbox 2020-09-24 15:16:41 -07:00
James Taylor
0a5088f1e5 Transcript table: Fix timestamps for videos longer than an hour
See #15
2020-09-24 14:44:21 -07:00
James Taylor
c7c74624ed Transcript: For clarity, use more verbose names and add comments 2020-09-24 14:28:01 -07:00
James Taylor
97b092bf7a
Merge pull request #15 from zrose584/transcript_table
Transcript table
2020-09-24 12:14:20 -07:00
James Taylor
e829cc0e89 server.py: support alternative server software
Add if __name__ == '__main__' check and add the name
"application" pointing to the callable.
Fixes #19
2020-09-24 12:10:11 -07:00
James Taylor
5f5034e826 Increase max redirects for video routing 2020-09-22 20:59:20 -07:00
James Taylor
09e9888182
Merge pull request #18 from user938120/tor_port_setting
Add setting to change tor's port
2020-09-19 11:39:29 -07:00
user938120
3ffe5d0120 Add setting for tor_port 2020-09-19 12:23:30 +00:00
James Taylor
753f6c5389 Jump video to timestamp in description or comments 2020-09-18 17:32:28 -07:00
James Taylor
e9989af03a Add tor video routing
Includes non-tor video routing by default, so no more chances
of the browser leaking headers or user agent to googlevideo
Adjust settings upgrade system to facilitate change to route_tor
setting.
Add some more space on settings page for dropdown settings so does
not overflow due to options with long names.
Closes #7
2020-09-18 14:40:21 -07:00
James Taylor
1ff97bfde1 New ctoken format. Fix channel pages > 1.
page > 1 still broken when sorting by oldest
2020-09-17 20:56:41 -07:00
zrose584
0830468bd1 style transcript div 2020-09-15 20:57:11 +02:00
zrose584
b3de26606d handle firefox' VTT parsing bug
from #15:
"[..] Firefox's VTT parsing [ignores] newlines. So if the cue starts
with a newline, that cue will have blank text (a corollary is that
the first sentence uttered will fail to display in the automatic
captions [..])."
2020-09-15 20:32:12 +02:00
James Taylor
e2e1e4cdec settings.py: make names less confusing and remove dead code
Try to make the names more consistent and more descriptive.
Remove unused functions to reduce confusing clutter
Change locals() to globals(). Overwriting locals is invalid, just
works because it was at top level.
2020-09-14 08:20:15 -07:00
zrose584
0be0a59a2a transcript-table: show transcript as contiguous text by default 2020-09-12 13:22:46 +02:00
zrose584
57978485ee let jinja create the transcript <details> element 2020-09-12 10:51:01 +02:00
zrose584
537a8e8ab5 transcript-table.js: sync active transcript with select_tt 2020-09-12 10:23:31 +02:00
zrose584
081058c07e default to last textTrack 2020-09-12 10:21:12 +02:00
zrose584
8222b6205b hotkeys.js: ignore if e.ctrlKey 2020-09-12 10:17:56 +02:00
zrose584
05a7907be4 add transcript-table.js 2020-09-11 21:28:29 +02:00
zrose584
94ece08a1e hotkeys.js: add 'c' for transcript 2020-09-11 21:27:49 +02:00