
    i                     :    S r SSKJr  SSKJr  Sr " S S\5      rg)	z%Extractors for https://tmohentai.com/   )GalleryExtractor   )textz(?:https?://)?tmohentai\.comc                   @    \ rS rSrSrSrSr\S-   rSr	S r
S rS	 rS
rg)TmohentaiGalleryExtractor   	tmohentaizhttp://tmohentai.com)z
{category}z{title} ({gallery_id})z/(?:contents|reader)/(\w+)z,https://tmohentai.com/contents/12345a67b89c0c                 |    US   U l         U R                   SU R                    3n[        R                  " XU5        g )Nr   z
/contents/)
gallery_idrootr   __init__)selfmatchurls      K/app/mltbenv/lib/python3.13/site-packages/gallery_dl/extractor/tmohentai.pyr   "TmohentaiGalleryExtractor.__init__   s6    (:doo%67!!$s3    c                     SU R                    S3nUR                  S5      n[        SU5       Vs/ s H  oB US S3S 4PM     sn$ s  snf )Nz'https://imgrojo.tmohentai.com/contents//zclass="lanzador    z>03z.webp)r   countrange)r   pagebasecntis        r   images TmohentaiGalleryExtractor.images   sR    88IKjj*+7<Q}E}!6!C&-}EEEs   Ac                    [         R                  " U5      nU R                  [         R                  " U" SS5      R	                  5       5      [         R
                  " U" SS5      5      [         R
                  " U" SS5      5      [         R
                  " U" SS5      5      [         R                  " U" SS5      5      U" SS	5      S
.$ )Nz<h3><z)<label>Artists and Artists Groups</label>z</ul>z<label>Genders</label>z<label>Tags</label>z<label>Uploaded By</label>z&nbsp;
)r   titleartistsgenrestagsuploaderlanguage)r   extract_fromr   unescapestrip
split_htmlremove_html)r   r   extrs      r   metadata"TmohentaiGalleryExtractor.metadata    s      & //--VS(9(?(?(AB//$;W+F G//$('+3 4//$%w+0 1**4,g,7 8x.
 	
r   )r   N)__name__
__module____qualname____firstlineno__categoryr   directory_fmtBASE_PATTERNpatternexampler   r   r.   __static_attributes__ r   r   r   r      s1    H!D<M::G<G4
F

r   r   N)__doc__commonr    r   r6   r   r:   r   r   <module>r>      s"    , $ . 
 0  
r   