o
    ì6Wj^  ã                   @   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ÚdcÚdcterms)z http://purl.org/dc/elements/1.1/zhttp://purl.org/dc/terms/c                 C   ó   |   ¡  d S ©N©Ú_end_author©Úself© r   úg/home/esfera/Documents/content_generation/venv/lib/python3.10/site-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   ©Ú_end_updatedr   r   r   r   Ú_end_dc_date-   r   zNamespace._end_dc_datec                 C   r   r   )Ú_end_descriptionr   r   r   r   Ú_end_dc_description0   r   zNamespace._end_dc_descriptionc                 C   r   r   )Ú_end_languager   r   r   r   Ú_end_dc_language3   r   zNamespace._end_dc_languagec                 C   r   r   )Ú_end_webmasterr   r   r   r   Ú_end_dc_publisher6   r   zNamespace._end_dc_publisherc                 C   r   r   )Ú_end_rightsr   r   r   r   Ú_end_dc_rights9   r   zNamespace._end_dc_rightsc                 C   r   r   )Ú_end_categoryr   r   r   r   Ú_end_dc_subject<   r   zNamespace._end_dc_subjectc                 C   r   r   )Ú
_end_titler   r   r   r   Ú_end_dc_title?   r   zNamespace._end_dc_titlec                 C   r   r   )Ú_end_createdr   r   r   r   Ú_end_dcterms_createdB   r   zNamespace._end_dcterms_createdc                 C   r   r   )Ú_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   ©Ú_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   ©Ú_start_updatedr)   r   r   r   Ú_start_dc_dateQ   r,   zNamespace._start_dc_datec                 C   r&   r   )Ú_start_descriptionr)   r   r   r   Ú_start_dc_descriptionT   r,   zNamespace._start_dc_descriptionc                 C   r&   r   )Ú_start_languager)   r   r   r   Ú_start_dc_languageW   r,   zNamespace._start_dc_languagec                 C   r&   r   )Ú_start_webmasterr)   r   r   r   Ú_start_dc_publisherZ   r,   zNamespace._start_dc_publisherc                 C   r&   r   )Ú_start_rightsr)   r   r   r   Ú_start_dc_rights]   r,   zNamespace._start_dc_rightsc                 C   r&   r   )Ú_start_categoryr)   r   r   r   Ú_start_dc_subject`   r,   zNamespace._start_dc_subjectc                 C   r&   r   )Ú_start_titler)   r   r   r   Ú_start_dc_titlec   r,   zNamespace._start_dc_titlec                 C   r&   r   )Ú_start_createdr)   r   r   r   Ú_start_dcterms_createdf   r,   z Namespace._start_dcterms_createdc                 C   r&   r   )Ú_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 )NrB   ú;ú=rC   ÚstartÚvalidity_startT)Ú	overwriteÚvalidity_start_parsedÚendÚvalidity_endÚvalidity_end_parsed)ÚpopÚsplitÚ_saver   )r   Ú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 )NrC   ÚcontributorsÚnameé    )ÚincontributorÚ_get_contextÚ
setdefaultÚappendr   rD   )r   r*   Úcontextr   r   r   Ú_start_dc_contributor}   s
   zNamespace._start_dc_contributorc                 C   s   |   ¡  d| _d S )NrX   )Ú	_end_namerY   r   r   r   r   Ú_end_dc_contributor„   s   
zNamespace._end_dc_contributorN) Ú__name__Ú
__module__Ú__qualname__Úsupported_namespacesr   r   r   r   r   r   r   r   r    r"   r$   r%   r+   r-   r0   r2   r4   r6   r8   r:   r<   r>   r@   rA   rE   rU   r^   r`   r   r   r   r   r   !   s@    þr   N)Ú	datetimesr   Úutilr   Úobjectr   r   r   r   r   Ú<module>   s   