§
   éEgè�6ã                   óv   — d Z ddlZddlZddlmZmZ ddlmZ dZ	d\  Z
Zd„ Zd„ Zd	„ Zd
„ Zej        fd„Zd„ ZdS )a  What the user set for the genre browser: the addon settings (cache lifetimes, TMDb requests per page) and the
options of the genre widgets (skin strings of the widget manager). Defaults live in resources/settings.xml and
wcs/genres/options.py only; nothing here writes a setting.é    N)ÚcontractÚoptions)Úsettingszplugin.video.milionar)i  i€Q c                 ó’   — 	 t          t          |                      |¦  «        ¦  «        ¦  «        S # t          t          f$ r Y d S w xY w)N)ÚintÚfloatÚ
getSettingÚ	TypeErrorÚ
ValueError)ÚaddonÚnames     úa/Users/chudy/Library/Application Support/Kodi/addons/plugin.video.milionar/wcs/genres/settings.pyÚ_numberr      sR   € ðÝ•5˜×)Ò)¨$Ñ/Ô/Ñ0Ô0Ñ1Ô1Ð1øÝ•zÐ"ð ð ð Øˆtˆtðøøøs   ‚.1 ±AÁAc                  óÄ   — t          j        t          ¦  «        } i }ddt          fddt          fddt          ffD ]&\  }}}t          | |¦  «        }|r|dk    r||z  ||<   Œ'|S )zUCache lifetimes in seconds; a setting that cannot be read keeps the source's default.ÚgenresÚgenre_ttl_genres_daysÚlistÚgenre_ttl_list_hoursÚ	countriesÚgenre_ttl_countries_daysr   )Ú	xbmcaddonÚAddonÚADDON_IDÚDAYÚHOURr   )r   ÚoutÚkeyr   ÚunitÚvalues         r   Úttlr       s�   € åŒO�HÑ%Ô%€EØ
€CØ%Ð'>ÅÐDÀvÐOeÕgkÐFlØ(Ð*DÅcÐJðLð $ð $‰ˆˆT�4å˜˜tÑ$Ô$ˆØð 	$�U˜Q’Y�YØ˜t‘|ˆC�‰HøØ€Jó    c                  óh   — t          t          j        t          ¦  «        d¦  «        } | r| dk    r| ndS )NÚgenre_requests_per_pager   é   )r   r   r   r   )r   s    r   Úrequests_per_pager%   "   s3   € Ý•I”O¥HÑ-Ô-Ð/HÑIÔI€EØÐ.˜e aši˜iˆ5ˆ5¨QÐ.r!   c                  óR   — ddl m}  |                      t          ¦   «         ¬¦  «        S )Nr   ©Útmdb)r    )Ú
wcs.genresr(   ÚSourcer    r'   s    r   Úsourcer+   '   s,   € ØÐÐÐÐÐØ�;Š;�3™5œ5ˆ;Ñ!Ô!Ð!r!   c                 óâ   — ddl m} g }t          d || ¦  «        dz   ¦  «        D ]I}t          j        d                     | |¦  «        ¦  «        }|r|dk    r|                     ||f¦  «         ŒJ|S )zB[(slot, row type)] of the used slots of a section, in their order.r   )Ú
slot_counté   zSkin.String(mil.{}.{}.type)Úoff)Úwcs.skin.hero_contractr-   ÚrangeÚxbmcÚgetInfoLabelÚformatÚappend)Úsecr-   ÚfoundÚnÚrows        r   Ú	slot_rowsr:   ,   sŒ   € à1Ð1Ð1Ð1Ð1Ð1Ø€EÝ�1�j�j ‘o”o¨Ñ)Ñ*Ô*ð #ð #ˆÝÔÐ =× DÒ DÀSÈ!Ñ LÔ LÑMÔMˆØð 	#�3˜%’<�<Ø�LŠL˜!˜S˜Ñ"Ô"Ð"øØ€Lr!   c           
      ó  — t          j        ¦   «         }t          |¦  «        D ]I\  }}|| k    r>t          j        | t	          j        d                     ||¦  «        ¦  «        |¦  «        c S ŒJt          j        | |¦  «        S )už   The options of the first slot of `sec` that shows `row` (its defaults when no slot does), on top of the global
    Kvalita nÃ¡vrhÅ¯ (wcs/quality/settings.py).zSkin.String(mil.{}.{}.opts))Úquality_settingsÚvaluesr:   r   r2   r3   r4   Údefaults)r9   r6   Úbaser8   r7   s        r   Úwidget_optionsr@   7   s‡   € õ Ô"Ñ$Ô$€DÝ˜c‘N”Nð nð n‰ˆˆ5Ø�CŠ<ˆ<Ý”> #¥tÔ'8Ð9V×9]Ò9]Ð^aÐcdÑ9eÔ9eÑ'fÔ'fÐhlÑmÔmÐmÐmÐmð åÔ˜C Ñ&Ô&Ð&r!   )Ú__doc__r2   r   r)   r   r   Úwcs.qualityr   r<   r   r   r   r   r    r%   r+   ÚSECr:   r@   © r!   r   ú<module>rE      sÎ   ðð>ð >ð €€€Ø Ð Ð Ð à (Ð (Ð (Ð (Ð (Ð (Ð (Ð (Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4à"€Ø�	€€cðð ð ð	ð 	ð 	ð/ð /ð /ð
"ð "ð "ð
 ”,ð ð ð ð ð'ð 'ð 'ð 'ð 'r!   