mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-14 06:29:53 +01:00
Disable trailer autoplay hack
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user