e4af99fd17
Revert "Add support for more qualities, merging video+audio using MSE"
...
This reverts commit d56df02e7b1eba86baf511289208295b1f6c5a50.
2021-08-29 18:48:01 -05:00
James Taylor
d56df02e7b
Add support for more qualities, merging video+audio using MSE
...
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 18:44:26 -05:00
James Taylor
7720f3bde5
watch: determine video source based on quality, not actual height
...
For some phone videos, the dimensions of the video might be
e.g. 360x640 instead of 640x360, which would be compared as
though it was "640p", and thus no source would be chosen
if default quality is 360p. Use the 'quality' entry which will
always be 360 for that quality.
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-04 13:31:16 -05:00
c62293c5cb
pep 8
2021-08-03 17:18:39 -05:00
7dd3c4304d
Remove static check resolution in TOR mode
2021-08-03 17:17:59 -05:00
382035d32f
Fix max_resolution in TOR mode
...
some videos have 480p resolution, and if setting only 360p the player would have no video to play
2021-08-02 18:46:50 -05:00
e37c7eed58
Revert "fix check max_resolution in TOR mode"
...
This reverts commit cb9b6dadbd1c3e268e87cd8eac9097760b3526ab.
2021-08-02 18:35:20 -05:00
cb9b6dadbd
fix check max_resolution in TOR mode
2021-08-02 18:27:27 -05:00
James Taylor
f27105fa7f
New age restriction bypass method since get_video_info was disabled
...
From
https://github.com/yt-dlp/yt-dlp/issues/574#issuecomment-887171136
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-07-28 23:48:54 -05:00
de5510d3e3
Improved plyr configuration
2021-07-03 23:38:50 -05:00
James Taylor
20db70b9b9
get_video_info: Specify language so error messages are in english
...
Otherwise error message language will be region of Tor exit node
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-07-01 21:07:53 -05:00
James Taylor
0df406697f
Workaround for age restriction bypass
...
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-06-23 14:45:52 -05:00
Umimaso
5b4c99c702
feat: add direct link
...
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-06-23 12:42:17 -05:00
7fd2c3474f
Capitalize name app
2021-06-10 16:41:45 -05:00
James Taylor
9077596979
Fix 404 errors on scheduled live events and age-gate bypass
...
get_video_info now returns 404 error. Adding html5=1 fixes it
(for now). See
https://github.com/ytdl-org/youtube-dl/issues/29086#issuecomment-844892791
Also handles 404 error if it arises so it will be non-fatal
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-06-01 11:55:05 -05:00
James Taylor
b01a16d45b
Fix vids added to playlist from watch page not having author url
...
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-05-17 22:07:10 -05:00
James Taylor
4013b81cb6
Fix regression: playlists not showing up besides videos
...
Forgot to change & to ? in previous commit changing to embed page
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-03-15 22:05:17 -05:00
James Taylor
07f14343c4
Use mobile embed page to bypass captcha blockage
...
The aggressive IP-blocking doesn't apply to embed pages
Fixes #47
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-02-26 11:40:38 -05:00
1f4d7cc958
General theme: fix syntax W3C markup and add improve 'Published' date
...
Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-30 16:52:26 -05:00
58c0ffc38d
pep8
2020-12-21 21:46:39 -05:00
James Taylor
6f4963cbfb
Include watch_headers in get_video_info so error lang is english
...
e.g. if the error in get_video_info is "Video unavailable" must
include the Accept-Language header (which we have in watch_headers)
in order to get an English error message. Otherwise we get the
language of the Tor exit node region
Example: https://youtu.be/aaaaaaaaaaa
Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-21 21:28:43 -05:00
James Taylor
e41180058f
Fix exception when video comments disabled and blank comments info
...
e.g. happens on vid where comments are disabled if comments
disabled in settings since the comments info object is just {}
Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-21 21:16:28 -05:00
1de9ae4245
Patch-import-migrate: Add embed page for embeds on the web
...
Issue #36
From e51f0a78c778a2283887db7ffc22421a7c849296 Mon Sep 17 00:00:00 2001
From: James Taylor <user234683@users.noreply.github.com>
2020-12-19 22:13:37 -05:00
f4b36a220d
pep8
2020-12-15 21:14:27 -05:00
James Taylor
9d0be82e74
Always extract from html watch page to get base.js url
...
Youtube removed the url from the pbj responses. They are now
only in the html page. Replaces previous fix for the missing
base.js issue.
2020-12-12 23:11:54 -08:00
James Taylor
6443cedf62
Retrieve base.js url from html watch page when it's missing
...
Fixes failure mode 3 in #22
2020-12-09 17:08:12 -08:00
James Taylor
b91edee61c
watch: Fix exception in to_valid_filename when video title is None
2020-10-28 18:37:40 -07:00
James Taylor
5f4884dce8
Put vid title at end of download urls so downloads w/ that filename
2020-10-22 14:30:33 -07:00
James Taylor
f8b6db1480
Redo fix for failure mode 1 in issue #22
...
Previous fix didn't work. Should work now. The non-embedded player
response can still be present but the urls will be missing.
2020-10-21 22:42:07 -07:00
James Taylor
aa52c7a42e
Merge branch 'master' into add_sponsorblock
2020-10-21 18:53:12 -07:00
James Taylor
c9d0f685a4
Use get_video_info to get video urls if player response missing
...
Fixes failure mode 1 in #22
2020-10-19 13:53:57 -07:00
zrose584
a8916b9308
proxy 'sponsor.ajay.app'
2020-10-18 18:48:52 +02:00
zrose584
debc11931f
add comments.js
2020-10-07 20:32:57 +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
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
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
c2ca47c5d3
Add setting to enable/disable video hotkeys
2020-09-09 18:53:11 -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
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
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
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
James Taylor
d5e661dfd3
Indicate that video is live
2020-05-27 11:14:19 -07:00
James Taylor
481b4ecf58
Do not hide comments if false determination of disabled comments
...
If the extraction from watch page determines that they are
disabled, but the separate request for the comments found comments,
then change that determination, with a warning (since that would
be a bug). And set the comment count to None as a dirty way to
make such a bug noticeable.
2020-04-10 13:25:40 -07:00
James Taylor
5554d5afff
Add playlist sidebar for videos in playlist, including autoplay
2020-04-04 22:52:09 -07:00
James Taylor
f253247949
Fix MaxRetryError when checking for video URL access
...
The default urllib3 max redirect amount was set to 3. Change it to 10 and
do not fail if there is a problem with checking for URL access. Just print
the error to the console and proceed.
Also add an unrelated remark about the bcptr=9999999999 parameter in watch.py
2020-02-18 11:47:23 -08:00
James Taylor
14b9c30daf
Invidious fallback: Use original format info and just substitute invidious urls
...
Because the invidious formats don't have all the information
2020-02-04 19:08:56 -08:00