[sora] fixed Baymovies

This commit is contained in:
hexated 2023-02-04 18:41:15 +07:00
parent b590b4a168
commit a499f401ae
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 82
version = 83
cloudstream {

View File

@ -2102,7 +2102,7 @@ object SoraExtractor : SoraStream() {
val link =
"https://api.$worker.workers.dev/download.aspx?file=$encryptedId&expiry=$encryptedExpiry&mac=$hmacSign"
if (!app.get(link).isSuccessful) return@apmap null
if (!app.get(link, referer = "$baymovies/").isSuccessful) return@apmap null
val size = file.size?.toDouble() ?: return@apmap null
val sizeFile = "%.2f GB".format(bytesToGigaBytes(size))
val tags = Regex("\\d{3,4}[pP]\\.?(.*?)\\.(mkv|mp4)").find(
@ -2118,7 +2118,7 @@ object SoraExtractor : SoraStream() {
"Baymovies $tags [$sizeFile]",
"Baymovies $tags [$sizeFile]",
link,
"",
"$baymovies/",
quality,
)
)