mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 08:20:30 +05:30
Only add url to non-original thumnails.
This commit is contained in:
parent
68bbf05617
commit
fcc3c9daaf
@ -81,7 +81,8 @@ public class SponsorBlockUtils {
|
||||
optional.ifPresent(jsonNode -> {
|
||||
ArrayNode nodes = (ArrayNode) jsonNode.get("thumbnails");
|
||||
for (JsonNode node : nodes) {
|
||||
((ObjectNode) node).set("thumbnail", new TextNode(URLUtils.rewriteURL("https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=" + videoId + "&time=" + node.get("timestamp").asText())));
|
||||
if (!node.get("original").booleanValue())
|
||||
((ObjectNode) node).set("thumbnail", new TextNode(URLUtils.rewriteURL("https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=" + videoId + "&time=" + node.get("timestamp").asText())));
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user