641 Commits

Author SHA1 Message Date
48e7cdd9a4
Improve regex to pep8 2020-12-31 12:59:20 -05:00
ce56cbad2a
Update README.md 2020-12-30 16:54:09 -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
056c3be3f2
strip_non_ascii in comments-author-name 2020-12-30 00:04:41 -05:00
0a9d24b261
General theme: Add license to missing script in watch.html 2020-12-29 21:33:56 -05:00
ec6cb3923e
Update requirements.txt 2020-12-29 18:21:54 -05:00
7c046d82ee
General theme: Fix script generate for timestamp
Also add support librejs
2020-12-29 17:32:40 -05:00
0f78e73e80
General theme: add license and add URL source code in footer 2020-12-29 15:36:23 -05:00
James Taylor
701786a9cc
util: Remove obsolete parse_info_prepare_for_html function
Info parsing is handled by yt_data_extract, and html
post-processing is done with util.prefix_urls and
util.add_extra_html_info

Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-28 11:48:20 -05:00
James Taylor
e1fe6b1d8e
Remove obsolete uppercase_escape function
This function was only necessary with the old ajax format, which
was removed in 4d7bba92eb62518e2273d030235214f4a7605444

Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-28 11:43:57 -05:00
James Taylor
b567a34ecd
TorManager: Add delay before subsequent new identity retries
The request can be retried immediately after the first
new identity, but if we do more new identities, we have to wait
for at least 6 seconds before doing the request, otherwise
it won't be done on a new ip based on my experiments.

Potential issue: If after getting third new identity, request
takes > 12 seconds (since timeout is 15) and returns 429, then the
Tor Manager will let it do a 4th try instead of giving up (meaning
request is taking forever from user's perspective).
Should be a very rare occurence however.

Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-25 22:56:19 -05:00
6145b66d74
Fix permalink style
Fixed the link box overflow
2020-12-22 19:08:59 -05:00
c81cd1941a
Fix permalink style
Fixed the link box overflow
2020-12-22 19:01:36 -05:00
58c0ffc38d
pep8 2020-12-21 21:46:39 -05:00
90f8317b36
pep8 2020-12-21 21:44:14 -05:00
dd2d856514
HACKING.md: Fix URL and name O.S. 2020-12-21 21:33:26 -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
dcfa2700ef
request_comments: remove obsolete retrying code
The issue that code was working around happened with an older
request format (the ajax format) that was removed. The issue
does not happen with the newer polymer format.

Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-21 21:28:17 -05:00
James Taylor
35b2b3e973
Add coding guidelines, architecture overview, and proto_debug
proto_debug is the toolchain for reverse engineering protobuf

Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-21 21:24:03 -05:00
James Taylor
84c6192e08
video_comments: print error string in console
Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-21 21:17:47 -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
ce146b32b1
Merge branch 'master' of libregit.org:heckyel/yt-local 2020-12-21 18:24:32 -05:00
James Taylor
b11120d000
Exit node retrying: Retry 3 times. Also add tests for it.
Closes #20

Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-21 18:23:09 -05:00
4bcb275545
Prevent text overflow in comments 2020-12-21 00:27:06 -05:00
574cb2dae8
Fix env["PATH_INFO"] for UWSGI, prevents bad url formatting
e.g:
ValueError: Invalid or unsupported url: https:/www.youtube.com/watch
2020-12-19 22:24:32 -05:00
8823b54bc1
Check test URL embed 2020-12-19 22:19:01 -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
James Taylor
afb2aca460
video routing: Range request missing content when connection closed
googlevideo sometimes doesn't send all video content and closes
the connection. Retry with a range request for the bytes needed
a maximum of three times.

Fixes first type of #40

Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-19 10:49:08 -05:00
James Taylor
6b6a6653a0
Fix youtube mixes
They cannot be viewed on their own, so change url in items to
go to the video+playlist instead

Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-18 23:39:25 -05:00
a16b05af80
README.md: update 2020-12-18 23:30:40 -05:00
James Taylor
43679efff5
channel: replace page #s w/ next page button using provided ctoken
Since yt doesn't accept page #'s when sorting by oldest

Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-18 23:25:45 -05:00
James Taylor
cf7aa41893
channel: include first and last pages when sorting by new
Last page as a substitute for sorting by oldest since sorting by
oldest doesn't allow arbitrary page numbers

Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-18 23:00:33 -05:00
e27650b457
Change URL support 2020-12-18 11:56:52 -05:00
381d36d626
README.md: Add donate 2020-12-18 11:49:22 -05:00
0692780137
pep8 2020-12-18 11:39:39 -05:00
a7c1f2a34e
Add get_app_version and version 2020-12-17 15:31:11 -05:00
James Taylor
5edcaa4f9d
Improve ytInitialPlayerResponse extraction
Makes it work if there are additional javascripts statements
after the playerResponse variable

Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-17 11:00:04 -05:00
8443063fc4
Hotkeys.js: improve fullscreen 2020-12-16 21:58:30 -05:00
1a0a303320
Replace document.fullscreen for fullscreenElement
This feature is no longer recommended. Though some browsers might still support it,
it may have already been removed from the relevant web standards, may be in the
process of being dropped, or may only be kept for compatibility purposes.
Avoid using it, and update existing code if possible; see the compatibility table
at the bottom of this page to guide your decision.
Be aware that this feature may cease to work at any time.

More info in https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreen#Deprecated
2020-12-16 21:52:34 -05:00
James Taylor
3fa5a55f57
Fix channel search by using new protobuf format
Fixes 'Unknown Error'

Closes #42

Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-16 20:46:53 -05:00
b53fd2c004
Migration general theme: fix video player method in javascript 2020-12-16 10:31:36 -05:00
cfd9e977a7
README.md: Fix name O.S. 2020-12-16 10:13:53 -05:00
ff408e84cf
Hotkeys.js: Add muted 'm' key 2020-12-15 22:40:02 -05:00
97f00efa8a
Migration general theme: fix video player method in javascript 2020-12-15 22:34:45 -05:00
b9a3082e7c
pep8 2020-12-15 21:52:04 -05:00
f4b36a220d
pep8 2020-12-15 21:14:27 -05:00
cf8e8ea5b1
Improve message Starting httpserver 2020-12-15 20:59:34 -05:00
d66c8661cb
Fix missing lang 2020-12-15 20:58:01 -05:00
c31c9ca972
Fix name OS and improved install steps 2020-12-15 12:57:14 -05:00
f9461a2e79
Migration general theme: fix query video tag 2020-12-15 12:30:46 -05:00