Skip to content

Commit a94a6e0

Browse files
authored
Merge pull request TeamNewPipe#1320 from litetex/add-support-for-LOCKUP_CONTENT_TYPE_VIDEO
2 parents 64938b0 + 4d1ea24 commit a94a6e0

15 files changed

Lines changed: 2307 additions & 2706 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ allprojects {
2727
}
2828

2929
ext {
30-
nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
30+
nanojsonVersion = "e9d656ddb49a412a5a0a5d5ef20ca7ef09549996"
3131
jsr305Version = "3.0.2"
3232
junitVersion = "5.13.3"
3333
checkstyleVersion = "10.4"

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,10 +759,13 @@ public MultiInfoItemsCollector getRelatedItems() throws ExtractionException {
759759
result.getObject("compactPlaylistRenderer"));
760760
} else if (result.has("lockupViewModel")) {
761761
final JsonObject lockupViewModel = result.getObject("lockupViewModel");
762-
if ("LOCKUP_CONTENT_TYPE_PLAYLIST".equals(
763-
lockupViewModel.getString("contentType"))) {
762+
final String contentType = lockupViewModel.getString("contentType");
763+
if ("LOCKUP_CONTENT_TYPE_PLAYLIST".equals(contentType)) {
764764
return new YoutubeMixOrPlaylistLockupInfoItemExtractor(
765765
lockupViewModel);
766+
} else if ("LOCKUP_CONTENT_TYPE_VIDEO".equals(contentType)) {
767+
return new YoutubeStreamInfoItemLockupExtractor(
768+
lockupViewModel, timeAgoParser);
766769
}
767770
}
768771
return null;

0 commit comments

Comments
 (0)