mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-12-05 20:55:19 +00:00
Fix banner extaction
This commit is contained in:
1 parent
dbb1f371b3
commit
05189dadbf
1 file changed
+1
-1
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user