Merge pull request #1239 from AudricV/yt_fix-shorts-thumbnails-extraction
[YouTube] Fix Shorts' thumbnails extraction in their channel tab
This commit is contained in:
commit
169098432b
|
@ -14,7 +14,7 @@ import javax.annotation.Nullable;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.getThumbnailsFromInfoItem;
|
import static org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.getImagesFromThumbnailsArray;
|
||||||
import static org.schabi.newpipe.extractor.utils.Utils.isNullOrEmpty;
|
import static org.schabi.newpipe.extractor.utils.Utils.isNullOrEmpty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -78,8 +78,8 @@ public class YoutubeShortsLockupInfoItemExtractor implements StreamInfoItemExtra
|
||||||
@Nonnull
|
@Nonnull
|
||||||
@Override
|
@Override
|
||||||
public List<Image> getThumbnails() throws ParsingException {
|
public List<Image> getThumbnails() throws ParsingException {
|
||||||
return getThumbnailsFromInfoItem(shortsLockupViewModel.getObject("thumbnail")
|
return getImagesFromThumbnailsArray(shortsLockupViewModel.getObject("thumbnail")
|
||||||
.getObject("sources"));
|
.getArray("sources"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue