Fix banner extaction

This commit is contained in:
Coffeemakr 2016-12-19 13:32:03 +01:00
parent dbb1f371b3
commit 05189dadbf
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ public class YoutubeChannelExtractor extends ChannelExtractor {
if(!isAjaxPage) { if(!isAjaxPage) {
Element el = doc.select("div[id=\"gh-banner\"]").first().select("style").first(); Element el = doc.select("div[id=\"gh-banner\"]").first().select("style").first();
String cssContent = el.html(); String cssContent = el.html();
String url = "https:" + Parser.matchGroup1("url\\((.*)\\)", cssContent); String url = "https:" + Parser.matchGroup1("url\\(([^)]+)\\)", cssContent);
if (url.contains("s.ytimg.com")) { if (url.contains("s.ytimg.com")) {
bannerUrl = null; bannerUrl = null;
} else { } else {