mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Prefer secure HTTPS by default
This commit is contained in:
@@ -43,3 +43,6 @@ class PatchPafy:
|
||||
def patch_process_streams(self):
|
||||
backend_youtube_dl.YtdlPafy._old_process_streams = backend_youtube_dl.YtdlPafy._process_streams
|
||||
backend_youtube_dl.YtdlPafy._process_streams = _process_streams
|
||||
|
||||
def patch_insecure_streams(self):
|
||||
pafy.g.def_ydl_opts["prefer_insecure"] = False
|
||||
|
||||
@@ -21,6 +21,7 @@ if pafy.__version__ <= "0.5.4":
|
||||
pafy_patcher = patcher.PatchPafy()
|
||||
pafy_patcher.patch_getbestthumb()
|
||||
pafy_patcher.patch_process_streams()
|
||||
pafy_patcher.patch_insecure_streams()
|
||||
|
||||
|
||||
def set_api_key():
|
||||
|
||||
Reference in New Issue
Block a user