Skip to content
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ allprojects {
}

ext {
nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
nanojsonVersion = "e9d656ddb49a412a5a0a5d5ef20ca7ef09549996"
jsr305Version = "3.0.2"
junitVersion = "5.13.3"
checkstyleVersion = "10.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,10 +759,13 @@ public MultiInfoItemsCollector getRelatedItems() throws ExtractionException {
result.getObject("compactPlaylistRenderer"));
} else if (result.has("lockupViewModel")) {
final JsonObject lockupViewModel = result.getObject("lockupViewModel");
if ("LOCKUP_CONTENT_TYPE_PLAYLIST".equals(
lockupViewModel.getString("contentType"))) {
final String contentType = lockupViewModel.getString("contentType");
if ("LOCKUP_CONTENT_TYPE_PLAYLIST".equals(contentType)) {
return new YoutubeMixOrPlaylistLockupInfoItemExtractor(
lockupViewModel);
} else if ("LOCKUP_CONTENT_TYPE_VIDEO".equals(contentType)) {
return new YoutubeStreamInfoItemLockupExtractor(
lockupViewModel, timeAgoParser);
}
}
return null;
Expand Down
Loading
Loading