reindenting (ctrl alt l) on JsonUtils and PeertubeStreamExtractor

This commit is contained in:
B0pol 2020-01-24 20:16:24 +01:00
parent b816e48216
commit 341372c0d0
2 changed files with 61 additions and 60 deletions

View File

@ -40,9 +40,9 @@ import javax.annotation.Nonnull;
public class PeertubeStreamExtractor extends StreamExtractor {
private final String baseUrl;
private JsonObject json;
private List<SubtitlesStream> subtitles = new ArrayList<>();
private final String baseUrl;
public PeertubeStreamExtractor(StreamingService service, LinkHandler linkHandler) throws ParsingException {
super(service, linkHandler);
@ -350,7 +350,8 @@ public class PeertubeStreamExtractor extends StreamExtractor {
String languageCode = JsonUtils.getString(caption, "language.id");
String ext = url.substring(url.lastIndexOf(".") + 1);
MediaFormat fmt = MediaFormat.getFromSuffix(ext);
if(fmt != null && languageCode != null) subtitles.add(new SubtitlesStream(fmt, languageCode, url, false));
if (fmt != null && languageCode != null)
subtitles.add(new SubtitlesStream(fmt, languageCode, url, false));
}
}
} catch (Exception e) {