parent
							
								
									3484716479
								
							
						
					
					
						commit
						cb7d9ad482
					
				
							
								
								
									
										22
									
								
								multisrc/overrides/madara/thesugar/src/TheSugar.kt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								multisrc/overrides/madara/thesugar/src/TheSugar.kt
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | |||||||
|  | package eu.kanade.tachiyomi.extension.pt.thesugar | ||||||
|  | 
 | ||||||
|  | import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor | ||||||
|  | import eu.kanade.tachiyomi.multisrc.madara.Madara | ||||||
|  | import okhttp3.OkHttpClient | ||||||
|  | import java.text.SimpleDateFormat | ||||||
|  | import java.util.Locale | ||||||
|  | import java.util.concurrent.TimeUnit | ||||||
|  | 
 | ||||||
|  | class TheSugar : Madara( | ||||||
|  |     "The Sugar", | ||||||
|  |     "https://thesugarscan.com", | ||||||
|  |     "pt-BR", | ||||||
|  |     SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")) | ||||||
|  | ) { | ||||||
|  | 
 | ||||||
|  |     override val client: OkHttpClient = super.client.newBuilder() | ||||||
|  |         .addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS)) | ||||||
|  |         .build() | ||||||
|  | 
 | ||||||
|  |     override val useNewChapterEndpoint = true | ||||||
|  | } | ||||||
| @ -784,7 +784,7 @@ abstract class Madara( | |||||||
|             // Added "title" alternative |             // Added "title" alternative | ||||||
|             chapter.date_upload = select("img:not(.thumb)").firstOrNull()?.attr("alt")?.let { parseRelativeDate(it) } |             chapter.date_upload = select("img:not(.thumb)").firstOrNull()?.attr("alt")?.let { parseRelativeDate(it) } | ||||||
|                 ?: select("span a").firstOrNull()?.attr("title")?.let { parseRelativeDate(it) } |                 ?: select("span a").firstOrNull()?.attr("title")?.let { parseRelativeDate(it) } | ||||||
|                     ?: parseChapterDate(select("span.chapter-release-date").firstOrNull()?.text()) |                 ?: parseChapterDate(select("span.chapter-release-date").firstOrNull()?.text()) | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         return chapter |         return chapter | ||||||
|  | |||||||
| @ -403,6 +403,7 @@ class MadaraGenerator : ThemeSourceGenerator { | |||||||
|         SingleLang("TeenManhua", "https://teenmanhua.com", "en"), |         SingleLang("TeenManhua", "https://teenmanhua.com", "en"), | ||||||
|         SingleLang("The Beginning After The End", "https://www.thebeginningaftertheend.fr", "fr"), |         SingleLang("The Beginning After The End", "https://www.thebeginningaftertheend.fr", "fr"), | ||||||
|         SingleLang("The Guild", "https://theguildscans.com", "en"), |         SingleLang("The Guild", "https://theguildscans.com", "en"), | ||||||
|  |         SingleLang("The Sugar", "https://thesugarscan.com", "pt-BR"), | ||||||
|         SingleLang("TheFluffyHangoutGroup", "https://www.fluffyhangout.club", "en", overrideVersionCode = 2), |         SingleLang("TheFluffyHangoutGroup", "https://www.fluffyhangout.club", "en", overrideVersionCode = 2), | ||||||
|         SingleLang("Three Queens Scanlator", "https://tqscan.com.br", "pt-BR", overrideVersionCode = 3), |         SingleLang("Three Queens Scanlator", "https://tqscan.com.br", "pt-BR", overrideVersionCode = 3), | ||||||
|         SingleLang("Tiempo de webeo", "https://tiempodewebeo.com", "es", className = "TiempoDeWebeo", isNsfw = true), |         SingleLang("Tiempo de webeo", "https://tiempodewebeo.com", "es", className = "TiempoDeWebeo", isNsfw = true), | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Alessandro Jean
						Alessandro Jean