Skip to content

Commit 95d60f5

Browse files
G-flatlitetex
authored andcommitted
Fix fetching YouTube item duration
1 parent 3a252d0 commit 95d60f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ public long getDuration() throws ParsingException {
155155
"contentImage.thumbnailViewModel.overlays")
156156
.streamAsJsonObjects()
157157
.flatMap(jsonObject -> jsonObject
158-
.getObject("thumbnailOverlayBadgeViewModel")
159-
.getArray("thumbnailBadges")
158+
.getObject("thumbnailBottomOverlayViewModel")
159+
.getArray("badges")
160160
.streamAsJsonObjects())
161161
.map(jsonObject -> jsonObject
162162
.getObject("thumbnailBadgeViewModel")

0 commit comments

Comments
 (0)