fix(en/Aniplay): new server, fixed dub with subtitles showing as softsub, latest fixes #628

Merged
JosefFStraka merged 4 commits from aniplay into main 2025-02-06 14:43:30 -06:00
2 changed files with 13 additions and 0 deletions
Showing only changes of commit b8929bbae7 - Show all commits

View file

@ -282,6 +282,17 @@ class AniPlay : AniListAnimeHttpSource(), ConfigurableAnimeSource {
} }
try { try {
if (episodeData.response.proxy == true) {
mklive commented 2025-02-07 05:41:11 -06:00 (Migrated from github.com)

Typo?

Typo?
JosefFStraka commented 2025-02-27 13:53:44 -06:00 (Migrated from github.com)

Sorry missed this comment.
What seems to be the issue?
Yuki sometimes provides subtitles to dubbed episodes. Searched online and people call it dubtitles.
Not the best implementation but I think other providers sometimes provided nonworking subtitles or gibberish...

Sorry missed this comment. What seems to be the issue? Yuki sometimes provides subtitles to dubbed episodes. Searched online and people call it dubtitles. Not the best implementation but I think other providers sometimes provided nonworking subtitles or gibberish...
mklive commented 2025-02-28 04:36:51 -06:00 (Migrated from github.com)

I wasn't aware of that 👍

I wasn't aware of that 👍
var proxyUrl = "$PROXY_URL/fetch?url=${defaultSource.url}"
if (episodeData.response.headers != null && episodeData.response.headers.Referer?.startsWith("https://") == true) {
proxyUrl += "&ref=${episodeData.response.headers.Referer}"
}
return playlistUtils.extractFromHls(
playlistUrl = proxyUrl,
videoNameGen = { quality -> "$serverName - $quality - $typeName" },
subtitleList = subtitles,
)
}
if (episodeData.response.headers != null && episodeData.response.headers.Referer?.startsWith("https://") == true) { if (episodeData.response.headers != null && episodeData.response.headers.Referer?.startsWith("https://") == true) {
return playlistUtils.extractFromHls( return playlistUtils.extractFromHls(
playlistUrl = defaultSource.url, playlistUrl = defaultSource.url,
@ -525,6 +536,7 @@ class AniPlay : AniListAnimeHttpSource(), ConfigurableAnimeSource {
"NEXT_ACTION_SOURCES_LIST" to "8a76af451978c817dde2364326a5e4e45eb43db1", "NEXT_ACTION_SOURCES_LIST" to "8a76af451978c817dde2364326a5e4e45eb43db1",
), ),
) )
private const val PROXY_URL = "https://aniplay-cors.yqizw7.easypanel.host"
private val DATE_FORMATTER = SimpleDateFormat("yyyy-MM-dd", Locale.ENGLISH) private val DATE_FORMATTER = SimpleDateFormat("yyyy-MM-dd", Locale.ENGLISH)
} }

View file

@ -37,6 +37,7 @@ data class VideoSourceResponse(
val outro: Timestamp?, val outro: Timestamp?,
val subtitles: List<Subtitle>?, val subtitles: List<Subtitle>?,
val headers: Headers?, val headers: Headers?,
val proxy: Boolean?,
) { ) {
@Serializable @Serializable
data class Source( data class Source(