From 13fab09810e5277df0e979439939e2d1eea549fb Mon Sep 17 00:00:00 2001 From: Mauricio Colli Date: Fri, 8 Sep 2017 10:45:18 -0300 Subject: [PATCH] Fix encrypted signature error - Closes #29 --- .../extractor/services/youtube/YoutubeStreamExtractor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java b/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java index c256f8570..189597e3a 100644 --- a/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java +++ b/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java @@ -682,10 +682,10 @@ public class YoutubeStreamExtractor extends StreamExtractor { Map urlAndItags = new LinkedHashMap<>(); String encodedUrlMap = ""; - if (videoInfoPage != null && videoInfoPage.containsKey(encodedUrlMapKey)) { - encodedUrlMap = videoInfoPage.get(encodedUrlMapKey); - } else if (playerArgs != null && playerArgs.isString(encodedUrlMapKey)) { + if (playerArgs != null && playerArgs.isString(encodedUrlMapKey)) { encodedUrlMap = playerArgs.getString(encodedUrlMapKey, ""); + } else if (videoInfoPage != null && videoInfoPage.containsKey(encodedUrlMapKey)) { + encodedUrlMap = videoInfoPage.get(encodedUrlMapKey); } for (String url_data_str : encodedUrlMap.split(",")) {