aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
Commit message (Collapse)AuthorAgeFilesLines
* util: Remove obsolete parse_info_prepare_for_html functionJames Taylor2020-12-281-9/+0
| | | | | | | | 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>
* Remove obsolete uppercase_escape functionJames Taylor2020-12-282-8/+2
| | | | | | | This function was only necessary with the old ajax format, which was removed in 4d7bba92eb62518e2273d030235214f4a7605444 Signed-off-by: Jesús <heckyel@hyperbola.info>
* TorManager: Add delay before subsequent new identity retriesJames Taylor2020-12-251-1/+18
| | | | | | | | | | | | | | | 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>
* Fix permalink styleJesús2020-12-221-1/+1
| | | | Fixed the link box overflow
* Fix permalink styleJesús2020-12-221-1/+1
| | | | Fixed the link box overflow
* pep8Jesús2020-12-211-1/+1
|
* pep8Jesús2020-12-211-21/+43
|
* 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>
* request_comments: remove obsolete retrying codeJames Taylor2020-12-211-11/+6
| | | | | | | | 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>
* Add coding guidelines, architecture overview, and proto_debugJames Taylor2020-12-211-0/+488
| | | | | | proto_debug is the toolchain for reverse engineering protobuf Signed-off-by: Jesús <heckyel@hyperbola.info>
* video_comments: print error string in consoleJames Taylor2020-12-211-2/+4
| | | | 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>
* Merge branch 'master' of libregit.org:heckyel/yt-localJesús2020-12-211-1/+5
|\
| * Prevent text overflow in commentsJesús2020-12-211-1/+5
| |
* | Exit node retrying: Retry 3 times. Also add tests for it.James Taylor2020-12-211-4/+17
|/ | | | | | Closes #20 Signed-off-by: Jesús <heckyel@hyperbola.info>
* Patch-import-migrate: Add embed page for embeds on the webJesús2020-12-192-7/+58
| | | | | | | Issue #36 From e51f0a78c778a2283887db7ffc22421a7c849296 Mon Sep 17 00:00:00 2001 From: James Taylor <user234683@users.noreply.github.com>
* Fix youtube mixesJames Taylor2020-12-182-2/+13
| | | | | | | 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>
* channel: replace page #s w/ next page button using provided ctokenJames Taylor2020-12-184-18/+32
| | | | | | Since yt doesn't accept page #'s when sorting by oldest Signed-off-by: Jesús <heckyel@hyperbola.info>
* channel: include first and last pages when sorting by newJames Taylor2020-12-182-3/+12
| | | | | | | 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>
* Change URL supportJesús2020-12-181-1/+1
|
* Add get_app_version and versionJesús2020-12-175-1/+68
|
* Improve ytInitialPlayerResponse extractionJames Taylor2020-12-171-2/+10
| | | | | | | Makes it work if there are additional javascripts statements after the playerResponse variable Signed-off-by: Jesús <heckyel@hyperbola.info>
* Hotkeys.js: improve fullscreenJesús2020-12-161-2/+2
|
* Replace document.fullscreen for fullscreenElementJesús2020-12-161-1/+1
| | | | | | | | | | | 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
* Fix channel search by using new protobuf formatJames Taylor2020-12-161-1/+2
| | | | | | | | Fixes 'Unknown Error' Closes #42 Signed-off-by: Jesús <heckyel@hyperbola.info>
* Migration general theme: fix video player method in javascriptJesús2020-12-161-1/+1
|
* Hotkeys.js: Add muted 'm' keyJesús2020-12-151-0/+4
|
* Migration general theme: fix video player method in javascriptJesús2020-12-151-1/+1
|
* pep8Jesús2020-12-159-166/+248
|
* pep8Jesús2020-12-151-15/+27
|
* Fix missing langJesús2020-12-151-1/+1
|
* Migration general theme: fix query video tagJesús2020-12-155-15/+16
|
* Migration general theme: add gap in subscriptionJesús2020-12-151-0/+1
|
* Migration general theme: fix missing message-box styleJesús2020-12-1514-375/+29
|
* Change general design themeJesús2020-12-1429-1510/+5432
|
* Always extract from html watch page to get base.js urlJames Taylor2020-12-123-39/+77
| | | | | | 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-093-14/+40
| | | | Fixes failure mode 3 in #22
* Add box to enter custom video speedJames Taylor2020-11-301-4/+33
|
* Video comments: replace with error message if there is errorJames Taylor2020-11-293-22/+56
| | | | Such as 429 error, or an exception
* video comments: add link to open the comments page separatelyJames Taylor2020-11-291-1/+7
| | | | for situations where the comments failed to load
* fetch_url: Use time.monotonic for comptability w/ tor_mgrJames Taylor2020-11-291-5/+8
| | | | | Buggy exit node retry behavior due to fetch_url still using time.time() instead of the time.monotonic() used by new_identity
* use Tor to resolve domain namesuser2346842020-11-121-2/+2
|
* yt_data_ext: watch playlist: Fix missing author_url if no author_idJames Taylor2020-11-081-3/+2
| | | | | | | Embedded playlist info was missing author_url key if author_id was None. This caused KeyError in watch.py when it expected that key Closes #37
* error page: dont use newline wrapping on error-boxJames Taylor2020-10-281-1/+3
| | | | | | | only should be used on error-message so newlines in error message properly display. Should not be used on error-box because that doesn't have bare text with newlines. Otherwise it was dispalying extraneous newlines.
* watch: Fix exception in to_valid_filename when video title is NoneJames Taylor2020-10-281-1/+1
|
* new_identity: authenticate with blank passwordJames Taylor2020-10-251-1/+1
| | | | See https://github.com/user234683/youtube-local/issues/20#issuecomment-716198162
* Automatically change tor circuit once if ip is blockedJames Taylor2020-10-253-46/+121
| | | | | | | Use stem library to send a new identity signal via the tor control port. See #20
* fetch_url: move content decoding to before 429 checkJames Taylor2020-10-251-1/+3
| | | | | Content should be decoded before we try reading page to check for 429. Lucky that it worked at all before.
* Organize settings into categoriesJames Taylor2020-10-221-3/+6
|
* Put vid title at end of download urls so downloads w/ that filenameJames Taylor2020-10-222-0/+65
|