Fix encrypted signature error

- Closes #29
This commit is contained in:
Mauricio Colli 2017-09-08 10:45:18 -03:00
parent 44c80e68db
commit 13fab09810

View File

@ -682,10 +682,10 @@ public class YoutubeStreamExtractor extends StreamExtractor {
Map<String, ItagItem> 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(",")) {