Update extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java
Co-Authored-By: Tobias Groza <TobiGr@users.noreply.github.com>
This commit is contained in:
parent
0567c20549
commit
1e1100ef76
|
@ -162,7 +162,7 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
|||
try {
|
||||
JsonArray thumbnails = playerResponse.getObject("videoDetails").getObject("thumbnail").getArray("thumbnails");
|
||||
// the last thumbnail is the one with the highest resolution
|
||||
return thumbnails.getObject(thumbnails.size()-1).getString("url");
|
||||
return thumbnails.getObject(thumbnails.size() - 1).getString("url");
|
||||
|
||||
} catch (Exception e) {
|
||||
String url = null;
|
||||
|
|
Loading…
Reference in New Issue