Add burning scans to madara (#559)
* Add burning scans to madara * fix lint errors
This commit is contained in:
		
							parent
							
								
									5c12784375
								
							
						
					
					
						commit
						a3e5bcf32c
					
				
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 3.1 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 1.7 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 4.3 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 7.0 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 10 KiB  | 
							
								
								
									
										27
									
								
								multisrc/overrides/madara/burningscans/src/BurningScans.kt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								multisrc/overrides/madara/burningscans/src/BurningScans.kt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,27 @@
 | 
			
		||||
package eu.kanade.tachiyomi.extension.pt.burningscans
 | 
			
		||||
 | 
			
		||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
 | 
			
		||||
import eu.kanade.tachiyomi.network.GET
 | 
			
		||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
 | 
			
		||||
import okhttp3.Request
 | 
			
		||||
import java.text.SimpleDateFormat
 | 
			
		||||
import java.util.Locale
 | 
			
		||||
 | 
			
		||||
class BurningScans : Madara(
 | 
			
		||||
    "Burning Scans",
 | 
			
		||||
    "https://burningscans.com",
 | 
			
		||||
    "pt-BR",
 | 
			
		||||
    SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")),
 | 
			
		||||
) {
 | 
			
		||||
    override val client = super.client.newBuilder()
 | 
			
		||||
        .rateLimit(2)
 | 
			
		||||
        .build()
 | 
			
		||||
 | 
			
		||||
    override val useNewChapterEndpoint = true
 | 
			
		||||
 | 
			
		||||
    override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
 | 
			
		||||
 | 
			
		||||
    override fun genresRequest(): Request {
 | 
			
		||||
        return GET("$baseUrl/?s=&post_type=wp-manga", headers)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -60,6 +60,7 @@ class MadaraGenerator : ThemeSourceGenerator {
 | 
			
		||||
        SingleLang("BokugenTranslation", "https://bokugents.com", "es", overrideVersionCode = 1),
 | 
			
		||||
        SingleLang("Boruto Explorer", "https://leitor.borutoexplorer.com.br", "pt-BR", overrideVersionCode = 1),
 | 
			
		||||
        SingleLang("BoysLove", "https://boyslove.me", "en", isNsfw = true, overrideVersionCode = 3),
 | 
			
		||||
        SingleLang("Burning Scans", "https://burningscans.com", "pt-BR", isNsfw = true),
 | 
			
		||||
        SingleLang("Café com Yaoi", "http://cafecomyaoi.com.br", "pt-BR", className = "CafeComYaoi", isNsfw = true, overrideVersionCode = 1),
 | 
			
		||||
        SingleLang("CAT-translator", "https://cats-translator.com/manga", "th", className = "CatTranslator", overrideVersionCode = 2),
 | 
			
		||||
        SingleLang("Cat300", "https://cat300.com", "th", isNsfw = true, overrideVersionCode = 1),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user