From b3156f186131a0315a0363540d69193f335ae41f Mon Sep 17 00:00:00 2001 From: James Bunton Date: Wed, 3 Jun 2020 22:38:51 +1000 Subject: [PATCH] Fix for Google changes --- youtube.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube.cgi b/youtube.cgi index c9937b7..c88ad8e 100755 --- a/youtube.cgi +++ b/youtube.cgi @@ -244,8 +244,8 @@ def get_best_video(player_config): if best_quality is not None and quality < best_quality: continue - if "cipher" in format_data: - cipher = urllib.parse.parse_qs(format_data["cipher"]) + if "signatureCipher" in format_data: + cipher = urllib.parse.parse_qs(format_data["signatureCipher"]) video_url = cipher["url"][0] if "sig" in cipher: signature = cipher["sig"][0] -- 2.39.2