Commit Graph

726 Commits

Author SHA1 Message Date
Jesús
16f81de968 [comments]: pep8 2021-08-10 18:14:05 -05:00
Jesús
0e896cbf34 [comments_info]: relax traceback message 2021-08-10 17:28:45 -05:00
Jesús
f532386976 [plyr]: minor fix syntax 2021-08-09 22:11:50 -05:00
Jesús
af1df31161 [plyr]: update 2021-08-09 22:09:04 -05:00
Jesús
0e9c12b3a6 [plyr]: Remove unimportant files 2021-08-09 21:59:43 -05:00
James Taylor
40fcee52c0 Fix description extraction in search results
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-09 12:29:01 -05:00
James Taylor
6c6c469fbd Prefix youtube URLs in video descriptions and channel about page
Closes #75

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-09 12:27:49 -05:00
James Taylor
2039972ab3 Fix (dis)like, music list extraction due to YouTube changes (again)
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>
2021-08-09 12:13:52 -05:00
James Taylor
3dee7ea0d1 Switch to new comments api now that old one is being disabled
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>
2021-08-09 12:10:42 -05:00
James Taylor
bee14ea9ea Comments: Fix exceptions when ctoken metadata are missing (None)
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-09 12:00:18 -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
Jesús
c62293c5cb pep 8 2021-08-03 17:18:39 -05:00
Jesús
7dd3c4304d Remove static check resolution in TOR mode 2021-08-03 17:17:59 -05:00
Jesús
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
Jesús
e37c7eed58 Revert "fix check max_resolution in TOR mode"
This reverts commit cb9b6dadbd.
2021-08-02 18:35:20 -05:00
Jesús
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
James Taylor
54b39f1303 Fix missing likes, dislikes, & music list due to Youtube changes
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>
2021-07-28 23:47:41 -05:00
Jesús
f5f9b1c181 Cleaner channel-checking console error messages when Tor is closed
by James Taylor <user234683@users.noreply.github.com>
2021-07-28 23:45:19 -05:00
James Taylor
d0e3adab01 Restart tor connection pool when the tor port setting is changed
Otherwise the old port continued to be used until the program
was restarted.

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-07-28 23:18:22 -05:00
Jesús
250e34df7c fix property css name 2021-07-05 16:15:29 -05:00
Jesús
48f9d06ba3 fix missing plyr on embed 2021-07-05 15:50:41 -05:00
Jesús
33d732f781 fix right click for video 2021-07-05 15:44:07 -05:00
James Taylor
aadc20fa19 Friendlier error message when Tor is closed or network is down
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-07-04 13:20:48 -05:00
Jesús
7f67af1031 Remove var and fix transcript button jumping above autoplay on page load
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
2021-07-04 13:12:15 -05:00
Jesús
49d823e135 Fix request search when is empty 2021-07-04 12:08:21 -05:00
Jesús
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
acfa31ff59 Change search url path to match the YouTube path
Fixes #67

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-07-01 21:04:33 -05:00
Jesús
4a9c1422e7 w3c syntax, unnecessary role=button 2021-06-29 19:11:10 -05:00
Jesús
c6fe980a7a autoplay-toggle: use label tag
from upstream:

<label> is semantic and makes clicking the text activate in checkbox
2021-06-29 19:07:40 -05:00
Jesús
8d45ca855a feat: autoplay related video - minor fix style 2021-06-23 21:08:04 -05:00
Jesús
5906633641 fix settings.subtitles_mode in plyr 2021-06-23 15:48:19 -05:00
Jesús
2c56a24711 fix name id of video 2021-06-23 15:35:01 -05:00
Jesús
61b4518335 Fix set language subtitles 2021-06-23 15:19:31 -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
Jesús
7f79269cf3 usage let not var 2021-06-23 14:43:10 -05:00
Umimaso
2d1794889a feat: autoplay for related videos
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>
2021-06-23 14:34:55 -05:00
Jesús
ff7aae05c4 Open direct link in new tab 2021-06-23 12:43:55 -05:00
Umimaso
5b4c99c702 feat: add direct link
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-06-23 12:42:17 -05:00
Jesús
95ae35260c Fix styles dropdown option button in desktop 2021-06-14 18:48:09 -05:00
Jesús
fc8a23099d Fix shared.css file style missing 2021-06-14 18:39:03 -05:00
Jesús
999173b1ba [error.html]: fix set style 2021-06-14 12:08:28 -05:00
Jesús
31901905e3 Fix name app 2021-06-10 16:48:22 -05:00
Jesús
7fd2c3474f Capitalize name app 2021-06-10 16:41:45 -05:00
Jesús
d35188178b update URL issues 2021-06-10 16:33:25 -05:00
Jesús
46f4ed1dc6 Fix design error message 2021-06-10 16:32:42 -05:00
James Taylor
a9edc54aac Use extract_approx_int for comment likes
Full digits no longer available

Closes #64

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-06-10 12:47:09 -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
Jesús
1b860c6917 Not force plyr as player 2021-05-24 21:17:59 -05:00