Rename Vidembed to Membed (#1008)

This commit is contained in:
Samfun75
2022-11-07 12:58:48 +03:00
committed by GitHub
parent 68447cf365
commit ff3e0c9f43
2 changed files with 9 additions and 7 deletions

View File

@ -3,10 +3,10 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlinx-serialization'
ext {
extName = 'Vidembed'
extName = 'Membed'
pkgNameSuffix = 'en.vidembed'
extClass = '.Vidembed'
extVersionCode = 18
extClass = '.Membed'
extVersionCode = 19
libVersion = '13'
}

View File

@ -32,11 +32,11 @@ import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.lang.Exception
class Vidembed : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
class Membed : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
override val name = "Vidembed"
override val name = "Membed"
override val baseUrl = "https://vidembed.io"
override val baseUrl = "https://membed.net"
override val lang = "en"
@ -44,11 +44,13 @@ class Vidembed : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
override val client: OkHttpClient = network.cloudflareClient
override val id: Long = 8093842542096095331
private val json = Json {
ignoreUnknownKeys = true
}
private val downloadLink = "https://vidembed.io/download?id="
private val downloadLink = "https://membed.net/download?id="
private val preferences: SharedPreferences by lazy {
Injekt.get<Application>().getSharedPreferences("source_$id", 0x0000)