aboutsummaryrefslogtreecommitdiffstats
path: root/settings.py
Commit message (Collapse)AuthorAgeFilesLines
* Support more audio and video qualitiesJames Taylor2021-08-311-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Adds support for AV1-encoded videos, which includes any videos above 1080p. These weren't getting included because they did not have a quality entry in the format table at the top of watch_extraction.py. So get the quality from the quality labels of the format if it's not there. Because YouTube often includes BOTH AV1 and H.264 (AVC) for each quality, after these are included, there will be way too many quality options and the code needs to choose which one to use. The choice is somewhat hard: AV1 is encoded in fewer bytes than H.264 and is patent-free, however, it has less hardware support, so might be more difficult to play. For instance, on my system, AV1 does not work on 1080p, but H.264 does. Adds a setting about which to prefer, set to H.264 as the default. Also adds support for the lower quality mp4 audio quality, which now gets used at 144p to save network bandwidth. For similar reasons, this was not getting included because it did not have an audio_bitrate entry in the table. Prefer bitrate instead for the quality. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Add setting to prefer uni or pair sources and fix selection b/w themJames Taylor2021-08-291-0/+9
| | | | | | | | | pair_quality != uni_quality was the wrong condition to check, since there are cases where the target_resolution is 360, and there are no pair sources at 360, but there are some at other resolutions, which would falsely select the pair sources. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Add support for more qualities, merging video+audio using MSEJames Taylor2021-08-291-0/+5
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Revert "Add support for more qualities, merging video+audio using MSE"Jesús2021-08-291-5/+0
| | | | This reverts commit d56df02e7b1eba86baf511289208295b1f6c5a50.
* Add support for more qualities, merging video+audio using MSEJames Taylor2021-08-291-0/+5
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* [opensearch]: improveJesús2021-08-141-0/+14
|
* Fix max_resolution in TOR modeJesús2021-08-021-0/+1
| | | | some videos have 480p resolution, and if setting only 360p the player would have no video to play
* 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>
* Fix shared.css file style missingJesús2021-06-141-2/+2
|
* Fix name appJesús2021-06-101-1/+1
|
* Capitalize name appJesús2021-06-101-2/+2
|
* Not force plyr as playerJesús2021-05-241-4/+8
|
* Add hidden setting to allow foreign post requestsJames Taylor2021-03-151-0/+9
| | | | | | See #55 Signed-off-by: Jesús <heckyel@hyperbola.info>
* fix missing whitespaceJesús2021-01-311-1/+1
|
* Patch-import-migrate: Add embed page for embeds on the webJesús2020-12-191-0/+8
| | | | | | | Issue #36 From e51f0a78c778a2283887db7ffc22421a7c849296 Mon Sep 17 00:00:00 2001 From: James Taylor <user234683@users.noreply.github.com>
* pep8Jesús2020-12-151-7/+17
|
* Automatically change tor circuit once if ip is blockedJames Taylor2020-10-251-0/+7
| | | | | | | Use stem library to send a new identity signal via the tor control port. See #20
* Adjust labels for some recently added settingsJames Taylor2020-10-221-2/+2
|
* Organize settings into categoriesJames Taylor2020-10-221-2/+26
|
* Merge branch 'master' into add_sponsorblockJames Taylor2020-10-211-6/+26
|\
| * remove trailing whitespaceszrose5842020-10-211-1/+1
| |
| * Add setting to change font. Change default to arialJames Taylor2020-10-201-0/+13
| | | | | | | | Closes #33
| * settings.py: fix img_prefix not updated when setting changesJames Taylor2020-10-191-6/+13
| | | | | | | | | | | | caused old prefix to still be used after changing setting see #31
* | add sponsorblock.jszrose5842020-10-171-1/+8
|/
* Merge branch 'master' into optional_proxy_imagesJames Taylor2020-10-121-0/+7
|\
| * add comments.jszrose5842020-10-071-0/+7
| |
* | settings.py: add 'proxy_images'zrose5842020-10-071-3/+15
|/
* Add setting for tor_portuser9381202020-09-191-0/+6
|
* Add tor video routingJames Taylor2020-09-181-9/+35
| | | | | | | | | | 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
* settings.py: make names less confusing and remove dead codeJames Taylor2020-09-141-71/+44
| | | | | | | Try to make the names more consistent and more descriptive. Remove unused functions to reduce confusing clutter Change locals() to globals(). Overwriting locals is invalid, just works because it was at top level.
* Add setting to enable/disable video hotkeysJames Taylor2020-09-091-0/+7
|
* settings.py: Support newer `ast.Constant' for settings.txt file.Jelle Licht2020-09-051-1/+2
| | | | | | In python 3.8, specific constant AST types are removed in favor of ast.Constant. This change should work for both cases. See https://bugs.python.org/issue32892 for the given rationale.
* Correctly start and stop subscriptions autochecker when it isJames Taylor2020-03-081-0/+15
| | | | disabled/enabled in settings.
* Fix FileNotFound error when trying to download search plugin when the ↵James Taylor2020-02-061-0/+1
| | | | working directory is not the directory of the program
* Merge subscriptions into masterJames Taylor2019-09-061-0/+6
|\
| * Subscriptions auto-checking systemJames Taylor2019-08-141-0/+6
| |
* | Adapt theme and layout settings to settings page systemJames Taylor2019-09-061-0/+9
| |
* | Settings: Fix circular dependency for settings_pageJames Taylor2019-09-061-3/+1
| |
* | Merge branch 'settings'James Taylor2019-09-061-23/+95
|\ \
| * | Add settings pageJames Taylor2019-08-171-23/+95
| |/
* | Layout: Add themesJames Taylor2019-08-251-0/+6
| |
* | Layout: Add option to use 720p resolutionJames Taylor2019-08-241-0/+6
| |
* | Layout: Add theater modeJames Taylor2019-08-241-0/+6
|/
* Add upgrade system for settings and automatically add missing settings to fileJames Taylor2019-08-011-32/+159
|
* Remove ad-hoc response saving from code, create a debug setting for fetch_urlJames Taylor2019-07-231-1/+4
|
* Indicate whether tor routing is onJames Taylor2018-12-311-2/+5
|
* Change default port to 8080James Taylor2018-12-311-1/+1
|
* Can now store settings&data in ~/.youtube-local, keeping program files separateJames Taylor2018-11-101-29/+50
|
* Don't use exec to read settingsJames Taylor2018-10-311-2/+39
|
* default disable googlevideo domain debuggingJames Taylor2018-08-311-0/+7
|