mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 22:30:33 +05:30
[PeerTube] Fix playlist extraction
This commit is contained in:
parent
d4f83a1782
commit
bbee15474d
@ -86,7 +86,13 @@ public class PeertubeParsingHelper {
|
|||||||
|
|
||||||
for (final Object c : contents) {
|
for (final Object c : contents) {
|
||||||
if (c instanceof JsonObject) {
|
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;
|
PeertubeStreamInfoItemExtractor extractor;
|
||||||
if (sepia) {
|
if (sepia) {
|
||||||
extractor = new PeertubeSepiaStreamInfoItemExtractor(item, baseUrl);
|
extractor = new PeertubeSepiaStreamInfoItemExtractor(item, baseUrl);
|
||||||
|
Loading…
Reference in New Issue
Block a user