o
    úG§b^  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é   )Ú_parse_date)ÚFeedParserDictc                   @   sö   e Zd ZdddœZdd„ Zdd„ Zdd	„ Zd
d„ Zdd„ Zdd„ Z	dd„ Z
dd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zd d!„ Zd"d#„ Zd$d%„ Zd&d'„ Zd(d)„ Zd*d+„ Zd,d-„ Zd.d/„ Zd0d1„ Zd2d3„ Zd4d5„ Zd6d7„ Zd8d9„ Zd:d;„ Zd<S )=Ú	NamespaceÚdcZdcterms)z http://purl.org/dc/elements/1.1/zhttp://purl.org/dc/terms/c                 C   ó   |   ¡  d S ©N©Z_end_author©Úself© r   úC/usr/local/lib/python3.10/dist-packages/feedparser/namespaces/dc.pyÚ_end_dc_author'   ó   zNamespace._end_dc_authorc                 C   r   r   r   r	   r   r   r   Ú_end_dc_creator*   r   zNamespace._end_dc_creatorc                 C   r   r   ©Z_end_updatedr	   r   r   r   Ú_end_dc_date-   r   zNamespace._end_dc_datec                 C   r   r   )Z_end_descriptionr	   r   r   r   Ú_end_dc_description0   r   zNamespace._end_dc_descriptionc                 C   r   r   )Z_end_languager	   r   r   r   Ú_end_dc_language3   r   zNamespace._end_dc_languagec                 C   r   r   )Z_end_webmasterr	   r   r   r   Ú_end_dc_publisher6   r   zNamespace._end_dc_publisherc                 C   r   r   )Z_end_rightsr	   r   r   r   Ú_end_dc_rights9   r   zNamespace._end_dc_rightsc                 C   r   r   )Z_end_categoryr	   r   r   r   Ú_end_dc_subject<   r   zNamespace._end_dc_subjectc                 C   r   r   )Z
_end_titler	   r   r   r   Ú_end_dc_title?   r   zNamespace._end_dc_titlec                 C   r   r   )Z_end_createdr	   r   r   r   Ú_end_dcterms_createdB   r   zNamespace._end_dcterms_createdc                 C   r   r   )Z_end_publishedr	   r   r   r   Ú_end_dcterms_issuedE   r   zNamespace._end_dcterms_issuedc                 C   r   r   r   r	   r   r   r   Ú_end_dcterms_modifiedH   r   zNamespace._end_dcterms_modifiedc                 C   ó   |   |¡ d S r   ©Z_start_author©r
   Úattrs_dr   r   r   Ú_start_dc_authorK   ó   zNamespace._start_dc_authorc                 C   r   r   r   r   r   r   r   Ú_start_dc_creatorN   r    zNamespace._start_dc_creatorc                 C   r   r   ©Z_start_updatedr   r   r   r   Ú_start_dc_dateQ   r    zNamespace._start_dc_datec                 C   r   r   )Z_start_descriptionr   r   r   r   Ú_start_dc_descriptionT   r    zNamespace._start_dc_descriptionc                 C   r   r   )Z_start_languager   r   r   r   Ú_start_dc_languageW   r    zNamespace._start_dc_languagec                 C   r   r   )Z_start_webmasterr   r   r   r   Ú_start_dc_publisherZ   r    zNamespace._start_dc_publisherc                 C   r   r   )Z_start_rightsr   r   r   r   Ú_start_dc_rights]   r    zNamespace._start_dc_rightsc                 C   r   r   )Z_start_categoryr   r   r   r   Ú_start_dc_subject`   r    zNamespace._start_dc_subjectc                 C   r   r   )Z_start_titler   r   r   r   Ú_start_dc_titlec   r    zNamespace._start_dc_titlec                 C   r   r   )Z_start_createdr   r   r   r   Ú_start_dcterms_createdf   r    z Namespace._start_dcterms_createdc                 C   r   r   )Z_start_publishedr   r   r   r   Ú_start_dcterms_issuedi   r    zNamespace._start_dcterms_issuedc                 C   r   r   r"   r   r   r   r   Ú_start_dcterms_modifiedl   r    z!Namespace._start_dcterms_modifiedc                 C   s   |   dd¡ d S )NÚvalidityé   )Úpushr   r   r   r   Ú_start_dcterms_valido   s   zNamespace._start_dcterms_validc                 C   sŒ   |   d¡ d¡D ];}d|v rC| dd¡\}}|dkr-| jd|dd | jd	t|ƒdd q|d
krC| jd|dd | jdt|ƒdd qd S )Nr-   ú;ú=r.   ÚstartZvalidity_startT)Ú	overwriteZvalidity_start_parsedÚendZvalidity_endZvalidity_end_parsed)ÚpopÚsplitZ_saver   )r
   Zvalidity_detailÚkeyÚvaluer   r   r   Ú_end_dcterms_validr   s   €øzNamespace._end_dcterms_validc                 C   s:   d| _ |  ¡ }| dg ¡ |d  tƒ ¡ |  dd¡ d S )Nr.   ZcontributorsÚnameé    )ÚincontributorZ_get_contextÚ
setdefaultÚappendr   r/   )r
   r   Úcontextr   r   r   Ú_start_dc_contributor}   s
   zNamespace._start_dc_contributorc                 C   s   |   ¡  d| _d S )Nr<   )Z	_end_namer=   r	   r   r   r   Ú_end_dc_contributor„   s   
zNamespace._end_dc_contributorN) Ú__name__Ú
__module__Ú__qualname__Zsupported_namespacesr   r   r   r   r   r   r   r   r   r   r   r   r   r!   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r0   r:   rA   rB   r   r   r   r   r   !   s@    þr   N)Z	datetimesr   Úutilr   Úobjectr   r   r   r   r   Ú<module>   s   