aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove static check resolution in TOR modeJesús2021-08-031-8/+3
|
* Fix max_resolution in TOR modeJesús2021-08-021-1/+1
| | | | some videos have 480p resolution, and if setting only 360p the player would have no video to play
* Revert "fix check max_resolution in TOR mode"Jesús2021-08-021-1/+1
| | | | This reverts commit cb9b6dadbd1c3e268e87cd8eac9097760b3526ab.
* fix check max_resolution in TOR modeJesús2021-08-021-1/+1
|
* New age restriction bypass method since get_video_info was disabledJames Taylor2021-07-281-24/+32
| | | | | | | From https://github.com/yt-dlp/yt-dlp/issues/574#issuecomment-887171136 Signed-off-by: Jesús <heckyel@hyperbola.info>
* Improved plyr configurationJesús2021-07-031-0/+2
|
* get_video_info: Specify language so error messages are in englishJames Taylor2021-07-011-0/+1
| | | | | | Otherwise error message language will be region of Tor exit node Signed-off-by: Jesús <heckyel@hyperbola.info>
* Workaround for age restriction bypassJames Taylor2021-06-231-2/+6
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* feat: add direct linkUmimaso2021-06-231-0/+1
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Capitalize name appJesús2021-06-101-1/+1
|
* Fix 404 errors on scheduled live events and age-gate bypassJames Taylor2021-06-011-5/+22
| | | | | | | | | | 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>
* Fix vids added to playlist from watch page not having author urlJames Taylor2021-05-171-4/+5
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Fix regression: playlists not showing up besides videosJames Taylor2021-03-151-1/+1
| | | | | | Forgot to change & to ? in previous commit changing to embed page Signed-off-by: Jesús <heckyel@hyperbola.info>
* Use mobile embed page to bypass captcha blockageJames Taylor2021-02-261-1/+1
| | | | | | | | The aggressive IP-blocking doesn't apply to embed pages Fixes #47 Signed-off-by: Jesús <heckyel@hyperbola.info>
* General theme: fix syntax W3C markup and add improve 'Published' dateJesús2020-12-301-0/+2
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* pep8Jesús2020-12-211-1/+1
|
* Include watch_headers in get_video_info so error lang is englishJames Taylor2020-12-211-1/+3
| | | | | | | | | | | 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>
* Fix exception when video comments disabled and blank comments infoJames Taylor2020-12-211-1/+1
| | | | | | | 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>
* Patch-import-migrate: Add embed page for embeds on the webJesús2020-12-191-7/+23
| | | | | | | Issue #36 From e51f0a78c778a2283887db7ffc22421a7c849296 Mon Sep 17 00:00:00 2001 From: James Taylor <user234683@users.noreply.github.com>
* pep8Jesús2020-12-151-15/+27
|
* Always extract from html watch page to get base.js urlJames Taylor2020-12-121-25/+6
| | | | | | 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.
* Retrieve base.js url from html watch page when it's missingJames Taylor2020-12-091-13/+25
| | | | Fixes failure mode 3 in #22
* watch: Fix exception in to_valid_filename when video title is NoneJames Taylor2020-10-281-1/+1
|
* Put vid title at end of download urls so downloads w/ that filenameJames Taylor2020-10-221-0/+11
|
* Redo fix for failure mode 1 in issue #22James Taylor2020-10-211-2/+2
| | | | | Previous fix didn't work. Should work now. The non-embedded player response can still be present but the urls will be missing.
* Merge branch 'master' into add_sponsorblockJames Taylor2020-10-211-4/+8
|\
| * Use get_video_info to get video urls if player response missingJames Taylor2020-10-191-4/+8
| | | | | | | | Fixes failure mode 1 in #22
* | proxy 'sponsor.ajay.app'zrose5842020-10-181-0/+4
|/
* add comments.jszrose5842020-10-071-2/+0
|
* Fix video height not scaling down when browser window is narrowJames Taylor2020-10-011-0/+1
| | | | | | 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.
* Use tor video routing instead of invidious for 403sJames Taylor2020-09-251-44/+8
| | | | | Using invidious isn't always successful, whereas Tor video routing appears to be near 100% successful.
* Specify video height in html so page doesn't shift down after loadJames Taylor2020-09-241-8/+9
| | | | | Use true video height extracted from youtube to handle videos shorter than their quality size. (e.g. widescreen videos)
* Add tor video routingJames Taylor2020-09-181-4/+10
| | | | | | | | | | 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
* Add setting to enable/disable video hotkeysJames Taylor2020-09-091-3/+1
|
* Bugfix: Support integer-only ?t paramJames Taylor2020-07-301-0/+2
| | | | When there's only an integer, and no unit, it's all in seconds
* Add support for &t parameterJames Taylor2020-07-251-0/+8
|
* Add video transcript to downloadsJames Taylor2020-07-251-1/+80
| | | | Generated from the video captions
* Include livestream fmt urls for former livestream w/o static urlsJames Taylor2020-06-281-1/+13
| | | | | | | 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
* Add dialog for copying urls to external player for livestreamsJames Taylor2020-06-281-1/+18
| | | | | Also for livestreams which are over whose other sources aren't present or aren't ready yet.
* Add option for reloading video without invidiousJames Taylor2020-05-271-39/+48
| | | | For faster usage of new identity button as an alternative
* Fix error when invidious fails to return URLSJames Taylor2020-05-271-1/+1
|
* Indicate that video is liveJames Taylor2020-05-271-0/+1
|
* Do not hide comments if false determination of disabled commentsJames Taylor2020-04-101-0/+9
| | | | | | | | 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.
* Add playlist sidebar for videos in playlist, including autoplayJames Taylor2020-04-041-3/+25
|
* Fix MaxRetryError when checking for video URL accessJames Taylor2020-02-181-2/+12
| | | | | | | | 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
* Invidious fallback: Use original format info and just substitute invidious urlsJames Taylor2020-02-041-23/+13
| | | | Because the invidious formats don't have all the information
* Watch page: add info box with allowed countries and tor exit nodeJames Taylor2020-02-011-0/+6
| | | | Should help with debugging various content blocks
* Check for 403 errors and fallback on InvidiousJames Taylor2020-02-011-0/+53
| | | | 403 errors on the video urls happen typically when a video has copyrighted content or was livestreamed originally. They appear to not happen (or at least happen less frequently) if the Tor exit node used ipv6, however.
* Give a proper error message for 429 errorsJames Taylor2020-01-311-0/+1
| | | | | | These occur when too many requests are coming from a Tor exit node. Before, there would be an error page with an exception instructing users to report the issue. But this is an expected and persistent issue.
* Watch: display comment count and whether comments are disabledJames Taylor2019-12-201-0/+2
|