527 Commits

Author SHA1 Message Date
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
James Taylor
786d3eb445 hotkeys.js: use DOMContentLoaded so images don't delay script
Instead of the load event, which waits until all assets are
finished loading in order for script to start.
2020-09-09 19:00:19 -07:00
James Taylor
c2ca47c5d3 Add setting to enable/disable video hotkeys 2020-09-09 18:53:11 -07:00
James Taylor
75171b7bd5
Merge pull request #13 from zrose584/master
add hotkeys.js
2020-09-09 18:37:29 -07:00
zrose584
12e56c7e71 add hotkeys.js 2020-09-09 21:01:16 +02:00
James Taylor
3a8f18a1fd Merge branch 'master' of https://github.com/user234683/youtube-local 2020-09-05 23:49:28 -07:00
James Taylor
06974ef41b Don't log noisy caption requests to console 2020-09-05 23:44:01 -07:00
James Taylor
ca8fa3f55e
Merge pull request #9 from jellelicht/master
Support python >= 3.8 and allow for simpler packaging
2020-09-05 21:13:52 -07:00
Jelle Licht
799177d651
settings.py: Support newer `ast.Constant' for settings.txt file.
In python 3.8, specific constant AST types are removed in favor of
ast.Constant. This change should work for both cases. See
https://bugs.python.org/issue32892 for the given rationale.
2020-09-05 20:41:21 +02:00
Jelle Licht
c084caf492
server.py: Add python3 shebang 2020-09-05 20:41:16 +02:00
James Taylor
ec98348018 generate_release.py: Use wine to build windows releases on Linux 2020-08-12 19:18:34 -07:00
James Taylor
27300d0e7d channel: Rename headers_1&headers_pbj & include user agents in them
headers_1 -> headers_desktop
headers_pbj -> headers_mobile
2020-08-12 15:05:31 -07:00
James Taylor
5637d4f430 channel_ctoken_desktop: fix parenthesis formatting 2020-08-12 14:55:51 -07:00
James Taylor
ac9b7f0162 Switch to desktop endpnt w/ new ctoken format except sort by old>1
Sorting by old for pages > 1 currently broken on some channels;
it's still using the mobile endpoint.
2020-08-12 14:46:29 -07:00
James Taylor
4bedf55461 yt_data_extract: Fix time_published picking up 'Streaming' string
This was causing an exception in subscriptions when it tried
to estimate the unix timestamp for the upload time
2020-08-12 14:40:47 -07:00
James Taylor
3a07a87c88 Don't log noisy thumbnail and avatar requests in the console 2020-08-12 14:37:32 -07:00
James Taylor
3fccc39e32 generate_release.py: Don't uninstall setuptools
gevent was changed and now depends on it for some reason
2020-08-11 22:54:13 -07:00
James Taylor
bd255a9ab0 Don't use brotli if import fails 2020-08-11 21:57:40 -07:00
James Taylor
cc123d6761 Fix author_url not prefixed in subscriptions page 2020-08-11 21:14:13 -07:00
James Taylor
8e12551471 Switch to mobile api endpoint to fix 'Unknown error' blockage
See https://github.com/iv-org/invidious/issues/1319#issuecomment-671732646
2020-08-11 21:09:59 -07:00
James Taylor
fa61874f97 extract_items: Handle case where continuation has multiple
[something]Continuation renderers, all of which are junk
except one. Check the items in each one until the one which
contains the items being sought is found.
The usage in extract_comments_info needed to be changed to
specify the items being sought. It was unspecified before which
is strictly incorrect since extract_items by default looks for
video/playlist/channel thumbnail items. It was relying on this
special case for continuations. But now that wouldn't work
anymore.
2020-08-11 19:59:25 -07:00
James Taylor
81ff5ab99c extract_channel_info: Improve error extraction
Use extract_str function since it's not always 'simpleText'
Make sure we don't output an empty error message if we don't
know what it is.
channel.py: Don't check if error message is empty, check if it's
None
2020-08-11 19:47:37 -07:00
James Taylor
804ed093ee Update README 2020-08-10 19:53:22 -07:00
James Taylor
4d3e35c981 Fix old videos appearing in subscriptions when channel deletes vids
Example: 30 vids in DB, 1 vid that we previously saw has since been
deleted. Then on checking, the vid in the 30th slot appeared
to be new.
2020-08-03 14:52:55 -07:00
James Taylor
b3b48967c5 Bugfix: Support integer-only ?t param
When there's only an integer, and no unit, it's all in seconds
2020-07-30 13:07:16 -07:00
James Taylor
e78d239323 Add support for &t parameter 2020-07-25 21:25:23 -07:00
James Taylor
a7ff3a5217 Playlist page: Fix error on failure to extract playlist title
Such as when the playlist was deleted or doesn't exist
2020-07-25 21:03:42 -07:00