[PeerTube] Fix playlist extraction

This commit is contained in:
TobiGr 2021-03-25 19:10:11 +01:00
parent d4f83a1782
commit bbee15474d
1 changed files with 7 additions and 1 deletions

View File

@ -86,7 +86,13 @@ public class PeertubeParsingHelper {
for (final Object c : contents) {
if (c instanceof JsonObject) {
final JsonObject item = (JsonObject) c;
JsonObject item = (JsonObject) c;
// PeerTube playlists have the stream info encapsulated in an "video" object
if (item.has("video")) {
item = item.getObject("video");
}
PeertubeStreamInfoItemExtractor extractor;
if (sepia) {
extractor = new PeertubeSepiaStreamInfoItemExtractor(item, baseUrl);