Skip to content

Commit 5e9ab00

Browse files
committed
[YouTube] Extract shorts thumbnails from thumbnailViewModel
Fixes an issue, where shorts thumbnails where not extracted, as they're now contained within a `thumbnailViewModel`, instead of a simple `thumbnail` object. Closes: TeamNewPipe/NewPipe#12907
1 parent f01c4b8 commit 5e9ab00

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeShortsLockupInfoItemExtractor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ public String getUrl() throws ParsingException {
7878
@Nonnull
7979
@Override
8080
public List<Image> getThumbnails() throws ParsingException {
81-
return getImagesFromThumbnailsArray(shortsLockupViewModel.getObject("thumbnail")
81+
return getImagesFromThumbnailsArray(shortsLockupViewModel
82+
.getObject("thumbnailViewModel")
83+
.getObject("thumbnailViewModel")
84+
.getObject("image")
8285
.getArray("sources"));
8386
}
8487

0 commit comments

Comments
 (0)