aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix (dis)like, music list extraction due to YouTube changes (again)James Taylor2021-08-092-9/+56
| | | | | | | | | | | | | | | YouTube reverted the changes they made that prompted f9f5d5ba. In case they change their minds again, this adds support for both formats. The liberal_update and conservative_update functions needed to be modified to handle the cases of empty lists, so that a successfully extracted 'music_list': [{'Author':...},...] will not be overwritten by 'music_list': [] in the calls to liberal_dict_update. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Switch to new comments api now that old one is being disabledJames Taylor2021-08-094-31/+66
| | | | | | | | | | | watch_comment api periodically gives the error "Top level comments mweb servlet is turned down." The continuation items for the new api are in a different arrangement in the json, so changes were necessary to the extract_items function. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Comments: Fix exceptions when ctoken metadata are missing (None)James Taylor2021-08-092-3/+14
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* watch: determine video source based on quality, not actual heightJames Taylor2021-08-041-1/+2
| | | | | | | | | | 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>
* pep 8Jesús2021-08-031-3/+1
|
* Remove static check resolution in TOR modeJesús2021-08-031-8/+3
|
* Fix max_resolution in TOR modeJesús2021-08-022-1/+2
| | | | 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-282-31/+34
| | | | | | | From https://github.com/yt-dlp/yt-dlp/issues/574#issuecomment-887171136 Signed-off-by: Jesús <heckyel@hyperbola.info>
* Fix missing likes, dislikes, & music list due to Youtube changesJames Taylor2021-07-282-60/+121
| | | | | | | | | Also moves some microformat extraction from _extract_watch_info_mobile to extract_watch_info where it belongs. _extract_watch_info_mobile is really only for stuff visible on the page, and thus specialized for either mobile or desktop. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Cleaner channel-checking console error messages when Tor is closedJesús2021-07-282-9/+17
| | | | by James Taylor <user234683@users.noreply.github.com>
* Restart tor connection pool when the tor port setting is changedJames Taylor2021-07-281-0/+4
| | | | | | | Otherwise the old port continued to be used until the program was restarted. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Call setting hooks after change, rather than beforeJames Taylor2021-07-281-3/+9
| | | | | | | More convenient for functions that already read the current value from settings.[...]. See next commit Signed-off-by: Jesús <heckyel@hyperbola.info>
* Add .editorconfig fileJesús2021-07-081-0/+16
|
* fix property css nameJesús2021-07-051-1/+1
|
* fix missing plyr on embedJesús2021-07-051-1/+64
|
* fix right click for videoJesús2021-07-051-0/+7
|
* Friendlier error message when Tor is closed or network is downJames Taylor2021-07-042-3/+28
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Remove `var` and fix transcript button jumping above autoplay on page loadJesús2021-07-041-19/+17
| | | | | | | | Obsolete code from #15 that was forgotten to be removed From ea34965be31dcf7e7e30c1edb9a9fa9d18fe6b30 Mon Sep 17 00:00:00 2001 From: James Taylor <user234683@users.noreply.github.com> Date: Sat, 3 Jul 2021 20:06:11 -0700
* Fix request search when is emptyJesús2021-07-042-2/+2
|
* Improved plyr configurationJesús2021-07-032-7/+17
|
* 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>
* Change search url path to match the YouTube pathJames Taylor2021-07-014-15/+13
| | | | | | Fixes #67 Signed-off-by: Jesús <heckyel@hyperbola.info>
* w3c syntax, unnecessary role=buttonJesús2021-06-291-1/+1
|
* autoplay-toggle: use label tagJesús2021-06-292-8/+24
| | | | | | from upstream: <label> is semantic and makes clicking the text activate in checkbox
* feat: autoplay related video - minor fix styleJesús2021-06-231-0/+1
|
* fix settings.subtitles_mode in plyrJesús2021-06-231-0/+4
|
* fix name id of videoJesús2021-06-231-1/+1
|
* Fix set language subtitlesJesús2021-06-232-24/+25
|
* generate_release: Update visual c runtime URLJames Taylor2021-06-231-1/+1
| | | | | | The original repository was deleted. Replace with a fork 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>
* usage `let` not `var`Jesús2021-06-231-17/+17
|
* feat: autoplay for related videosUmimaso2021-06-232-118/+152
| | | | | | | | | | | Add autoplay support for related videos. Move the playlist autoplay code into this shared script. Add the SameSite=Strict attribute to the autoplay cookie due to Firefox soon rejecting cookies which use SameSite=None without the secure attribute. Closes: #50 Signed-off-by: Jesús <heckyel@hyperbola.info>
* Open direct link in new tabJesús2021-06-231-1/+1
|
* feat: add direct linkUmimaso2021-06-233-0/+9
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Fix styles dropdown option button in desktopJesús2021-06-141-0/+2
|
* Fix shared.css file style missingJesús2021-06-1415-70/+10
|
* [error.html]: fix set styleJesús2021-06-141-3/+5
|
* Fix name appJesús2021-06-104-6/+6
|
* Capitalize name appJesús2021-06-1013-35/+35
|
* update URL issuesJesús2021-06-101-1/+1
|
* Fix design error messageJesús2021-06-101-1/+9
|
* Use extract_approx_int for comment likesJames Taylor2021-06-103-5/+6
| | | | | | | | Full digits no longer available Closes #64 Signed-off-by: Jesús <heckyel@hyperbola.info>
* 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>
* Not force plyr as playerJesús2021-05-242-14/+23
|
* [licenses]: fix URL license ExpatJesús2021-05-221-1/+1
|
* Add plyr as main playerJesús2021-05-2219-1/+50218
| | | | Also plyr supports switch quality
* Fix comment like extraction due to Youtube changesJames Taylor2021-05-171-0/+2
| | | | | | Variable name changed from likeCount to voteCount 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>