Remove MangasChan (#3545)
This commit is contained in:
		
							parent
							
								
									a910431f44
								
							
						
					
					
						commit
						10c539c869
					
				@ -1,9 +0,0 @@
 | 
			
		||||
ext {
 | 
			
		||||
    extName = 'Mangás Chan'
 | 
			
		||||
    extClass = '.MangasChan'
 | 
			
		||||
    themePkg = 'mangathemesia'
 | 
			
		||||
    baseUrl = 'https://mangaschan.net'
 | 
			
		||||
    overrideVersionCode = 3
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
apply from: "$rootDir/common.gradle"
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 5.7 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 2.9 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 9.2 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 18 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 30 KiB  | 
@ -1,42 +0,0 @@
 | 
			
		||||
package eu.kanade.tachiyomi.extension.pt.mangaschan
 | 
			
		||||
 | 
			
		||||
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
 | 
			
		||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
 | 
			
		||||
import okhttp3.OkHttpClient
 | 
			
		||||
import java.text.SimpleDateFormat
 | 
			
		||||
import java.util.Locale
 | 
			
		||||
import java.util.concurrent.TimeUnit
 | 
			
		||||
 | 
			
		||||
class MangasChan : MangaThemesia(
 | 
			
		||||
    "Mangás Chan",
 | 
			
		||||
    "https://mangaschan.net",
 | 
			
		||||
    "pt-BR",
 | 
			
		||||
    dateFormat = SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")),
 | 
			
		||||
) {
 | 
			
		||||
 | 
			
		||||
    override val client: OkHttpClient = super.client.newBuilder()
 | 
			
		||||
        .addInterceptor { chain ->
 | 
			
		||||
            val request = chain.request()
 | 
			
		||||
            val headers = request.headers.newBuilder()
 | 
			
		||||
                .removeAll("X-Requested-With")
 | 
			
		||||
                .build()
 | 
			
		||||
 | 
			
		||||
            chain.proceed(request.newBuilder().headers(headers).build())
 | 
			
		||||
        }
 | 
			
		||||
        .rateLimit(1, 2, TimeUnit.SECONDS)
 | 
			
		||||
        .build()
 | 
			
		||||
 | 
			
		||||
    override fun headersBuilder() = super.headersBuilder()
 | 
			
		||||
        .set("X-Requested-With", randomString((10..20).random()))
 | 
			
		||||
 | 
			
		||||
    override val altNamePrefix = "Nomes alternativos: "
 | 
			
		||||
 | 
			
		||||
    override val seriesArtistSelector = ".tsinfo .imptdt:contains(Artista) > i"
 | 
			
		||||
    override val seriesAuthorSelector = ".tsinfo .imptdt:contains(Autor) > i"
 | 
			
		||||
    override val seriesTypeSelector = ".tsinfo .imptdt:contains(Tipo) > a"
 | 
			
		||||
 | 
			
		||||
    private fun randomString(length: Int): String {
 | 
			
		||||
        val charPool = ('a'..'z') + ('A'..'Z')
 | 
			
		||||
        return CharArray(length) { charPool.random() }.concatToString()
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user