Add Lavinia Fansub (#2695)
This commit is contained in:
		
							parent
							
								
									a0e0b81bda
								
							
						
					
					
						commit
						df3cdcf1fc
					
				
							
								
								
									
										10
									
								
								src/tr/laviniafansub/build.gradle
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								src/tr/laviniafansub/build.gradle
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
ext {
 | 
			
		||||
    extName = 'Lavinia Fansub'
 | 
			
		||||
    extClass = '.LaviniaFansub'
 | 
			
		||||
    themePkg = 'madara'
 | 
			
		||||
    baseUrl = 'https://laviniafansub.com'
 | 
			
		||||
    overrideVersionCode = 0
 | 
			
		||||
    isNsfw = true
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
apply from: "$rootDir/common.gradle"
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								src/tr/laviniafansub/res/mipmap-hdpi/ic_launcher.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/tr/laviniafansub/res/mipmap-hdpi/ic_launcher.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 8.1 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src/tr/laviniafansub/res/mipmap-mdpi/ic_launcher.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/tr/laviniafansub/res/mipmap-mdpi/ic_launcher.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 4.0 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src/tr/laviniafansub/res/mipmap-xhdpi/ic_launcher.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/tr/laviniafansub/res/mipmap-xhdpi/ic_launcher.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 13 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src/tr/laviniafansub/res/mipmap-xxhdpi/ic_launcher.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/tr/laviniafansub/res/mipmap-xxhdpi/ic_launcher.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 28 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								src/tr/laviniafansub/res/mipmap-xxxhdpi/ic_launcher.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/tr/laviniafansub/res/mipmap-xxxhdpi/ic_launcher.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 47 KiB  | 
@ -0,0 +1,29 @@
 | 
			
		||||
package eu.kanade.tachiyomi.extension.tr.laviniafansub
 | 
			
		||||
 | 
			
		||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
 | 
			
		||||
import eu.kanade.tachiyomi.source.model.Page
 | 
			
		||||
import org.jsoup.nodes.Document
 | 
			
		||||
import java.text.SimpleDateFormat
 | 
			
		||||
import java.util.Locale
 | 
			
		||||
 | 
			
		||||
class LaviniaFansub : Madara(
 | 
			
		||||
    "Lavinia Fansub",
 | 
			
		||||
    "https://laviniafansub.com",
 | 
			
		||||
    "tr",
 | 
			
		||||
    dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.ROOT),
 | 
			
		||||
) {
 | 
			
		||||
    override val useLoadMoreRequest = LoadMoreStrategy.Always
 | 
			
		||||
    override val useNewChapterEndpoint = true
 | 
			
		||||
 | 
			
		||||
    override fun pageListParse(document: Document): List<Page> {
 | 
			
		||||
        val pageList = super.pageListParse(document)
 | 
			
		||||
 | 
			
		||||
        if (
 | 
			
		||||
            pageList.isEmpty() &&
 | 
			
		||||
            document.select(".content-blocked, .login-required").isNotEmpty()
 | 
			
		||||
        ) {
 | 
			
		||||
            throw Exception("Okumak için WebView üzerinden giriş yapın")
 | 
			
		||||
        }
 | 
			
		||||
        return pageList
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user