Fix channel url for channel items

pull/41/head
Coffeemakr 2017-11-25 02:38:46 +01:00
rodzic 9cd11a7b6b
commit 95120641a9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 3F35676D8FF6E743
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -222,6 +222,7 @@ public class YoutubeChannelExtractor extends ChannelExtractor {
collector.reset();
final String uploaderName = getName();
final String uploaderUrl = getCleanUrl();
for (final Element li : element.children()) {
if (li.select("div[class=\"feed-item-dismissable\"]").first() != null) {
collector.commit(new YoutubeStreamInfoItemExtractor(li) {
@ -252,6 +253,11 @@ public class YoutubeChannelExtractor extends ChannelExtractor {
return uploaderName;
}
@Override
public String getUploaderUrl() throws ParsingException {
return uploaderUrl;
}
@Override
public String getThumbnailUrl() throws ParsingException {
try {