mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Merge pull request #649 from TeamPiped/dearrow
Dearrow add url only to non-original thumbnails
This commit is contained in:
commit
46f20fe766
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue