mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
[sora] fixed Baymovies
This commit is contained in:
parent
b590b4a168
commit
a499f401ae
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 82
|
||||
version = 83
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue