Disable trailer autoplay hack

This commit is contained in:
daru
2022-05-19 18:14:07 +02:00
parent 89c65c29e8
commit 4eeeb4db00
3 changed files with 6 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import (
"encoding/json"
"errors"
"fmt"
"strings"
"time"
)
@@ -47,6 +48,8 @@ func JikanConvert(jik *SeasonAnimeJikan) Anime {
})
}
res.URL = fmt.Sprintf("https://myanimelist.net/anime/%d", res.Anime)
// disable autoplay hack
res.TrailerEmbedURL = strings.Replace(res.TrailerEmbedURL, "autoplay=1", "autoplay=0", -1)
return res
}