From 05189dadbf128d040059540a68607fd61a7b489e Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Mon, 19 Dec 2016 13:32:03 +0100 Subject: [PATCH] Fix banner extaction --- .../extractor/services/youtube/YoutubeChannelExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractor.java b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractor.java index 7f2a9ecdd..62e63ab1b 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractor.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractor.java @@ -136,7 +136,7 @@ public class YoutubeChannelExtractor extends ChannelExtractor { if(!isAjaxPage) { Element el = doc.select("div[id=\"gh-banner\"]").first().select("style").first(); String cssContent = el.html(); - String url = "https:" + Parser.matchGroup1("url\\((.*)\\)", cssContent); + String url = "https:" + Parser.matchGroup1("url\\(([^)]+)\\)", cssContent); if (url.contains("s.ytimg.com")) { bannerUrl = null; } else {