441 Commits

Author SHA1 Message Date
zrose584
a0c33c621e fix get_number_of_videos_channel 2020-10-09 19:43:22 +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
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
5f5034e826 Increase max redirects for video routing 2020-09-22 20:59:20 -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
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
zrose584
12e56c7e71 add hotkeys.js 2020-09-09 21:01:16 +02: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
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
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
James Taylor
9fc347e093 Add video transcript to downloads
Generated from the video captions
2020-07-25 19:40:37 -07:00
James Taylor
44d7f9da99 Include livestream fmt urls for former livestream w/o static urls
If none of the format urls for the former livestream are static,
meaning they use a non-livestream format playable by the browser,
then include the dialog for copying hte livestream format urls
into external video player
2020-06-28 18:20:47 -07:00
James Taylor
803c901445 Fix hls_manifest_url not included when there's no other formats
Since there are no formats, it was retrying with the
non-embedded playerResponse, which resulted in the
hls_manifest_urls from the embedded player_response being
overwritten with None. So use conservative_update instead
2020-06-28 18:18:04 -07:00
James Taylor
aa3e5aa441 Add dialog for copying urls to external player for livestreams
Also for livestreams which are over whose other sources
aren't present or aren't ready yet.
2020-06-28 17:52:24 -07:00
James Taylor
6e14a8547d Handle case where embedded player response missing
Change so it extracts other stuff from regular playerResponse
Extract formats from embedded player response, but fallback to
regular one if that doesn't work.
Sometimes there is no 'player' at top_level and the urls are in
the regular playerResponse
2020-06-28 13:18:54 -07:00
James Taylor
0b5d6fe1ed Do not override previous playability error if unknown 2020-06-28 12:46:04 -07:00
James Taylor
b4450ec4bb Fix previously live videos labeled as live 2020-05-29 15:34:33 -07:00
James Taylor
bdac6a2302 Fix broken signature decryption
The base.js url format changed, so the identifier at the end
was no longer unique. So it was using the wrong cached decryption
function

Changes the identifier to just be the whole url so
this won't happen again.
2020-05-27 12:15:41 -07:00
James Taylor
85db7e46ed Fix urls sometimes not extracted due to youtube changes
The 'cipher' parameter which contains the url is sometimes called
'signatureCipher' instead now.
2020-05-27 11:56:30 -07:00
James Taylor
d7a4b03fdf Add option for reloading video without invidious
For faster usage of new identity button as an alternative
2020-05-27 11:55:47 -07:00
James Taylor
3d5293ba4a Fix error when invidious fails to return URLS 2020-05-27 11:19:39 -07:00