mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-12 21:30:33 +05:30
[YouTube] Fix Shorts' thumbnails extraction in their channel tab
Wrong methods were used to access and extract the thumbnails' data. This has been fixed with this commit.
This commit is contained in:
parent
c343e31ed2
commit
06b2c8e2aa
@ -14,7 +14,7 @@ import javax.annotation.Nullable;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
@ -78,8 +78,8 @@ public class YoutubeShortsLockupInfoItemExtractor implements StreamInfoItemExtra
|
||||
@Nonnull
|
||||
@Override
|
||||
public List<Image> getThumbnails() throws ParsingException {
|
||||
return getThumbnailsFromInfoItem(shortsLockupViewModel.getObject("thumbnail")
|
||||
.getObject("sources"));
|
||||
return getImagesFromThumbnailsArray(shortsLockupViewModel.getObject("thumbnail")
|
||||
.getArray("sources"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user