package Ġeu . kan ade . t ach iy omi . extension . pt . sweet time scan Ċ Ċ import Ġeu . kan ade . t ach iy omi . lib . rate limit . RateLimit Interceptor Ċ import Ġeu . kan ade . t ach iy omi . multis rc . mad ara . Mad ara Ċ import Ġeu . kan ade . t ach iy omi . source . model . M ang as Page Ċ import Ġokhttp 3 . Ok HttpClient Ċ import Ġokhttp 3 . Response Ċ import Ġorg . js oup . nodes . Element Ċ import Ġjava . text . SimpleDateFormat Ċ import Ġjava . util . Locale Ċ import Ġjava . util . concurrent . TimeUnit Ċ Ċ class ĠS weet Time Scan Ġ: ĠMad ara ( ĊĠĠĠ Ġ" S weet ĠTime ĠScan ", ĊĠĠĠ Ġ" https :// sweet scan . net ", ĊĠĠĠ Ġ" pt - BR ", ĊĠĠĠ ĠSimpleDateFormat (" MMMM M Ġdd , Ġy yyy ", ĠLocale (" pt ", Ġ" BR ")) Ċ ) Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġclient : ĠOk HttpClient Ġ= Ġsuper . client . newBuilder () ĊĠĠĠĠĠĠĠ Ġ. add Interceptor ( RateLimit Interceptor ( 1 , Ġ 1 , ĠTimeUnit . SECONDS )) ĊĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġoverride Ġfun Ġpopular M anga Selector () Ġ= Ġ" div . page - item - detail . manga " ĊĊĠĠĠ Ġ// ĠThe Ġsource Ġhas Ġnovel s Ġin Ġtext Ġformat , Ġso Ġwe Ġneed Ġto Ġfilter Ġthem . ĊĠĠĠ Ġoverride Ġfun Ġsearch M anga Parse ( response : ĠResponse ): ĠM ang as Page Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġm anga Page Ġ= Ġsuper . search M anga Parse ( response ) ĊĠĠĠĠĠĠĠ Ġval Ġfiltered Result Ġ= Ġm anga Page . m ang as . filter Ġ{ Ġit . title . contains ( NO VEL _ REGEX ). not () Ġ} ĊĊĠĠĠĠĠĠĠ Ġreturn ĠM ang as Page ( filtered Result , Ġm anga Page . hasNext Page ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ// ĠThe Ġsite Ġuses Ġsome Ġimage Ġcache Ġplugin Ġthat Ġmade Ġthe Ġthumb nails Ġdon 't Ġload . ĊĠĠĠ Ġ// ĠThis Ġremoves Ġthe Ġplugin Ġsite Ġbase ĠURL Ġand Ġreturns Ġthe Ġdirect Ġimage ĠURL . ĊĠĠĠ Ġoverride Ġfun Ġimage From Element ( element : ĠElement ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠbaseUrl Ġ+ Ġsuper . image From Element ( element )?. substring After ( baseUrl ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ// Ġ[... document . querySelectorAll (' input [ name =" genre [] "] ')] ĊĠĠĠ Ġ// ĠĠ Ġ. map ( x Ġ=> Ġ` Genre ("${ document . querySelector (' label [ for =' Ġ+ Ġx . id Ġ+ Ġ' ]'). innerHTML . trim () }", Ġ"${ x . value }") `) ĊĠĠĠ Ġ// ĠĠ Ġ. join (', \ n ') ĊĠĠĠ Ġoverride Ġfun Ġget Genre List (): ĠList < Genre > Ġ= ĠlistOf ( ĊĠĠĠĠĠĠĠ ĠGen re (" A Ã§Ã£o ", Ġ" acao "), ĊĠĠĠĠĠĠĠ ĠGen re (" Ar tes ĠMar cia is ", Ġ" art es - mar cia is "), ĊĠĠĠĠĠĠĠ ĠGen re (" A vent ura ", Ġ" av ent ura "), ĊĠĠĠĠĠĠĠ ĠGen re (" Com Ã© dia ", Ġ" co media "), ĊĠĠĠĠĠĠĠ ĠGen re (" D ram a ", Ġ" dr ama "), ĊĠĠĠĠĠĠĠ ĠGen re (" Ec chi ", Ġ" ec chi "), ĊĠĠĠĠĠĠĠ ĠGen re (" Es col ar ", Ġ" es col ar "), ĊĠĠĠĠĠĠĠ ĠGen re (" F ant as ia ", Ġ" f ant as ia "), ĊĠĠĠĠĠĠĠ ĠGen re (" Hist Ã³ ric o ", Ġ" h istor ico "), ĊĠĠĠĠĠĠĠ ĠGen re (" I sek ai ", Ġ" ise k ai "), ĊĠĠĠĠĠĠĠ ĠGen re (" J ose i ", Ġ" j ose i "), ĊĠĠĠĠĠĠĠ ĠGen re (" Mag ia ", Ġ" mag ia "), ĊĠĠĠĠĠĠĠ ĠGen re (" M Ã© dic o ", Ġ" med ico "), ĊĠĠĠĠĠĠĠ ĠGen re (" M ist Ã© rio ", Ġ" m ister io "), ĊĠĠĠĠĠĠĠ ĠGen re (" Ps icol Ã³g ico ", Ġ" ps ico logic o "), ĊĠĠĠĠĠĠĠ ĠGen re (" Re enc arn aÃ§Ã£o ", Ġ" re enc arn acao "), ĊĠĠĠĠĠĠĠ ĠGen re (" Rom ance ", Ġ" rom ance "), ĊĠĠĠĠĠĠĠ ĠGen re (" S ci ĠF i ", Ġ" sci - fi "), ĊĠĠĠĠĠĠĠ ĠGen re (" Sh ou jo ", Ġ" sh ou jo "), ĊĠĠĠĠĠĠĠ ĠGen re (" Slice Ġof ĠLife ", Ġ" slice - of - life "), ĊĠĠĠĠĠĠĠ ĠGen re (" S ob ren atural ", Ġ" so b ren atural ") ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġval ĠNO VEL _ REGEX Ġ= Ġ" no vel | liv ro ". to Regex ( Regex Option . IGNORE _ CASE ) ĊĠĠĠ Ġ} Ċ } Ċ