
    g                     &    d dl mZ  G d de      Zy)   )FeedParserDictc                       e Zd ZdddZd Zd Zd Zd Zd Zd Z	d	 Z
d
 Zd Zd Zd Zd Zd Zd Zd Zd ZeZd Zd Zy)	Namespaceitunes)z*http://www.itunes.com/DTDs/PodCast-1.0.dtdz'http://example.com/DTDs/PodCast-1.0.dtdc                 &    | j                  |       y N)_start_authorselfattrs_ds     O/var/www/html/venv/lib/python3.12/site-packages/feedparser/namespaces/itunes.py_start_itunes_authorzNamespace._start_itunes_author)   s    7#    c                 $    | j                          y r   )_end_authorr   s    r   _end_itunes_authorzNamespace._end_itunes_author,   s    r   c                 $    | j                          y r   )_end_categoryr   s    r   _end_itunes_categoryzNamespace._end_itunes_category/       r   c                 &    | j                  |       y r   )_start_namer
   s     r   _start_itunes_namezNamespace._start_itunes_name2   s    !r   c                 $    | j                          y r   )	_end_namer   s    r   _end_itunes_namezNamespace._end_itunes_name5   s    r   c                 &    | j                  |       y r   )_start_emailr
   s     r   _start_itunes_emailzNamespace._start_itunes_email8   s    '"r   c                 $    | j                          y r   )
_end_emailr   s    r   _end_itunes_emailzNamespace._end_itunes_email;   s    r   c                 &    | j                  |       y r   )_start_subtitler
   s     r   _start_itunes_subtitlez Namespace._start_itunes_subtitle>   s    W%r   c                 $    | j                          y r   )_end_subtitler   s    r   _end_itunes_subtitlezNamespace._end_itunes_subtitleA   r   r   c                 &    | j                  |       y r   )_start_summaryr
   s     r   _start_itunes_summaryzNamespace._start_itunes_summaryD   s    G$r   c                 $    | j                          y r   )_end_summaryr   s    r   _end_itunes_summaryzNamespace._end_itunes_summaryG   s    r   c                 6    d| _         | j                  dd       y )N   	publisher    )inpublisherpushr
   s     r   _start_itunes_ownerzNamespace._start_itunes_ownerJ   s    		+q!r   c                 V    | j                  d       d| _        | j                  d       y )Nr2   r3   )popr4   _sync_author_detailr   s    r   _end_itunes_ownerzNamespace._end_itunes_ownerN   s$      -r   c                     | j                  d      j                  d      D ]4  }|j                         s| j                  |j                         dd        6 y )Nitunes_keywords,http://www.itunes.com/)r8   splitstrip_add_tag)r   terms     r   _end_itunes_keywordszNamespace._end_itunes_keywordsS   sH    HH./55c: 	LDzz|djjl,DdK	Lr   c                 l    | j                  |j                  d      dd        | j                  dd       y )Ntextr>   categoryr1   )rA   getr5   r
   s     r   _start_itunes_categoryz Namespace._start_itunes_categoryX   s*    gkk&)+CTJ		*a r   c                 $   | j                  dd       |j                  d      r.t        d|j                  d      i      | j                         d<   y |j                  d      r.t        d|j                  d      i      | j                         d<   y y )Nitunes_imager3   hrefimageurl)r5   rG   r   _get_contextr
   s     r   _start_itunes_imagezNamespace._start_itunes_image\   sy    		.!$;;v+967;;vCV:W+XD([[+967;;uCU:V+WD(  r   c                 r    | j                  dd      }|dk(  xs |dk(  xr dxs d| j                         d<   y )Nitunes_blockr3   yesYesr1   r8   rN   r   values     r   _end_itunes_blockzNamespace._end_itunes_blockd   s>    +/4~/O%.VUV.[Z[N+r   c                 x    | j                  dd      }d|dk(  xr dxs	 |dk(  xs d   | j                         d<   y )Nitunes_explicitr3   )NFTrR   r   cleanrT   rU   s     r   _end_itunes_explicitzNamespace._end_itunes_explicith   sK    *A. 2EeunFZYZEt_dho_oEtst1u-.r   N)__name__
__module____qualname__supported_namespacesr   r   r   r   r   r    r#   r&   r)   r,   r/   r6   r:   rC   rH   rO   _start_itunes_linkrW   r[    r   r   r   r       sz     7? 4<$"#&%".
L
!X -\vr   r   N)utilr   objectr   ra   r   r   <module>rd      s   : "Mv Mvr   