Skip to content

Commit

Permalink
[PeerTube] Fix playlist extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiGr committed Mar 25, 2021
1 parent 12835bf commit a6704a8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ public static void collectStreamsFrom(final InfoItemsCollector collector, final

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);
Expand Down

0 comments on commit a6704a8

Please sign in to comment.