§
   „i
Q¢tÂtã                   ó4   — d Z ddlZddlmZ dZdZd„ Zd	d„ZdS )
a£  The addon's own quick actions: one place that does them, whoever asks (docs/plan/skin-optimization, part E).

Starting the plugin costs a script start in Kodi before anything happens: tens of milliseconds on a desktop, seconds on a
weak box that is busy. These actions do not need it. `run()` does one of them exactly as the plugin call always did, and
is used by

  * main.py, when Kodi did start the plugin for it (other skins, the fallback of our skin),
  * the service, when the skin asks it directly (wcs/skin/commands.py: `NotifyAll(plugin.video.milionar,run:<builtin>)`),
  * a context menu, for the entry the user chose (wcs.skin.context.run_chosen), in the process that shows the menu.

Not here on purpose: listings and resolvers (they need Kodi's directory handle), and everything that opens one of the
addon's big dialogs or the game through wcs/router.py. Those stay plugin runs: their own process, their own modules.
é    N)Úfamily)Úvinyl_browseÚvinyl_favoritesÚskin_detail_row)Úshow_wcs_detailsÚskin_accentÚskin_contextÚskin_context_nativeÚ	skin_heroÚskin_channel_editÚskin_widgets_refreshÚctx_markÚctx_hide_continueÚctx_listÚctx_openÚctx_list_toggleÚctx_mark_toggleÚctx_nextÚchannel_playÚskin_context_editÚskin_classicÚskin_navigation_defaultsÚskin_navigation_titlesÚ
skin_slotsÚskin_wmÚskin_menu_itemÚskin_slots_defaultsÚskin_defaultsÚforyou_rateÚforyou_pickÚforyou_buildÚforyou_modeÚ	mplay_reqÚskin_updatec                 ó†   — | t           v rdS | dk    rt          j        ¦   «         S | t          v p|                      d¦  «        S )zjTrue for an action run() does (show_wcs_details only in our skin: elsewhere it is the addon's own dialog).Fr   )Úvinyl_Úskin_detail_)ÚLISTINGSr   ÚactiveÚACTIONSÚ
startswith)Úactions    ú\/Users/chudy/Library/Application Support/Kodi/addons/plugin.video.milionar/wcs/skin/local.pyÚhandlesr.      sI   € à•ÐÐØˆuØÐ#Ò#Ð#ÝŒ}‰ŒÐØ•WÐÐM × 1Ò 1Ð2LÑ MÔ MÐMó    éÿÿÿÿc                 óF  — |                       dd¦  «        }t          |¦  «        sdS |                     d¦  «        rddlm} |                     || ¦  «         �n˜|dk    rddlm} |                     | ¦  «         �nu|dk    rdd	lm}  |¦   «          �n]|d
k    rddl	m
}  |¦   «          �nE|dk    rddl	m}  |¦   «          �n-|dk    rddlm} |                     | ¦  «         �n
|dk    rddlm} |                     | ¦  «         �nç|                     d¦  «        rddlm}	 |	                     || ¦  «         �n´|dk    r•ddl}
ddl}|                     ¦   «                              d|
                     d¦  «                             d¦  «        ¦  «         |                     d¦  «                             dd¦  «         t1          j        d¦  «         �n|                     d¦  «        rddlm} |                     | ¦  «         �nç|dk    rdd lm} |                     | ¦  «         �nÄ|d!k    rdd"l	m}  || ¦  «         �n«|d#v rUdd$lm} |d%k    r|                      ¦   «          �n…|d&k    r| !                    ¦   «          �ni|                     | ¦  «         �nR|d'v rdd(lm"} |                     | ¦  «         �n1|d)v rdd*l#m$} |                     | ¦  «         �n|d+k    rdd,l#m%} | &                    | ¦  «         nî|d-k    rdd.l#m'} | (                    | ¦  «         nÌ|d/k    rdd0lm)} |                     | ¦  «         nª|d1k    r¤dd2lm*}m+} |                       d3¦  «        d4k    r| ,                    | d5         ¦  «        n(| -                    | d5         | d6         | d7         ¦  «        }| .                    ||                       d8d9¦  «        |                       d:d;¦  «        ¦  «         dd<lm/} | 0                    d= 1                    |¦  «        ¦  «         d>S )?zhDo the action of `params`; False when it is not one of ours (the caller starts or continues the plugin).r,   Ú Fr'   r   )Údetailr   r   )Úselect_accentr	   )Úhome_contextr
   )Únative_contextr   )Úhero_buttonsr   )Úchannel_actionsr&   )Úactionsr   Nu
   MilionÃ¡Å™zplugin.video.milionari  i'  zmilionar.widgets.refreshingÚ1z5NotifyAll(plugin.video.milionar,skin_widgets_refresh)Úctx_)Úctxr   )r   r   )Ú	edit_menu)r   r   r   )Ú
navigationr   r   )r   r   r   r   r   )Úslots)r   r    )Úfeedbackr"   )Úmoder!   )Úservicer$   )Úupdater#   )ÚplayÚurlsÚtypeÚmovieÚtmdbÚsÚeÚsrcÚdialogÚfromÚstart)Úperflogzaction {} doneT)2Úgetr.   r+   Úwcs.skinr3   ÚrunÚopen_detailÚwcs.skin.appearancer4   Úwcs.skin.contextr5   r6   r7   r8   Ú	wcs.vinylr9   Ú	xbmcaddonÚxbmcguiÚDialogÚnotificationÚAddonÚgetLocalizedStringÚWindowÚsetPropertyÚxbmcÚexecutebuiltinÚwcs.library2r<   Úwcs.air   r=   r>   ÚmigrateÚrepair_titlesr?   Ú
wcs.foryour@   rA   ÚchooserB   ÚmanualrC   rD   rE   Ú	movie_urlÚepisode_urlÚrequestrO   ÚlogÚformat)ÚparamsÚhandler,   r3   r4   r5   r6   r7   r8   r9   rW   rX   r<   r   r=   r>   r?   r@   rA   Úforyou_servicerC   rD   rE   Ú	canonicalrO   s                            r-   rR   rR   $   sQ  € à�ZŠZ˜ "Ñ%Ô%€FÝ�6‰?Œ?ð ØˆuØ×Ò˜Ñ(Ô(ð HZØ#Ð#Ð#Ð#Ð#Ð#Ø�
Š
�6˜6Ñ"Ô"Ð"Ñ"Ø	Ð%Ò	%Ð	%Ø#Ð#Ð#Ð#Ð#Ð#Ø×Ò˜6Ñ"Ô"Ð"Ñ"Ø	�=Ò	 Ð	 Ø5Ð5Ð5Ð5Ð5Ð5Øˆ‰Œˆ‰Ø	�>Ò	!Ð	!Ø1Ð1Ð1Ð1Ð1Ð1Øˆ‰Œˆ‰Ø	Ð(Ò	(Ð	(Ø3Ð3Ð3Ð3Ð3Ð3ØˆÑÔÐÑØ	�;Ò	Ð	à)Ð)Ð)Ð)Ð)Ð)Ø×Ò˜Ñ Ô Ð Ñ Ø	Ð&Ò	&Ð	&Ø,Ð,Ð,Ð,Ð,Ð,Ø×Ò˜FÑ#Ô#Ð#Ñ#Ø	×	Ò	˜8Ñ	$Ô	$ð 2ZØ%Ð%Ð%Ð%Ð%Ð%Ø�Š�F˜FÑ#Ô#Ð#Ñ#Ø	Ð)Ò	)Ð	)ØÐÐÐØˆˆˆØ�ŠÑÔ×%Ò% l°I·O²OÐD[Ñ4\Ô4\×4oÒ4oÐpuÑ4vÔ4vÑwÔwÐwØ�Š�uÑÔ×)Ò)Ð*GÈÑMÔMÐMÝÔÐSÑTÔTÐTÑTØ	×	Ò	˜6Ñ	"Ô	"ð )ZØ$Ð$Ð$Ð$Ð$Ð$Ø�Š�‰Œˆ‰Ø	�>Ò	!Ð	!à'Ð'Ð'Ð'Ð'Ð'Ø×Ò˜Ñ Ô Ð Ñ Ø	Ð&Ò	&Ð	&Ø.Ð.Ð.Ð.Ð.Ð.Øˆ	�&ÑÔÐÑØ	ÐYÐ	YÐ	YØ'Ð'Ð'Ð'Ð'Ð'ØÐ/Ò/Ð/Ø×ÒÑ Ô Ð Ñ ØÐ/Ò/Ð/Ø×$Ò$Ñ&Ô&Ð&Ñ&à�NŠN˜6Ñ"Ô"Ð"Ñ"Ø	ÐfÐ	fÐ	fØ"Ð"Ð"Ð"Ð"Ð"Ø�	Š	�&ÑÔÐÑØ	Ð1Ð	1Ð	1à'Ð'Ð'Ð'Ð'Ð'Ø�Š�VÑÔÐÑØ	�=Ò	 Ð	 à#Ð#Ð#Ð#Ð#Ð#Ø�Š�FÑÔÐÐØ	�>Ò	!Ð	!à8Ð8Ð8Ð8Ð8Ð8Ø×Ò˜fÑ%Ô%Ð%Ð%Ø	�=Ò	 Ð	 à#Ð#Ð#Ð#Ð#Ð#Ø�
Š
�6ÑÔÐÐØ	�;Ò	Ð	Ø+Ð+Ð+Ð+Ð+Ð+Ð+Ð+Ø7=·z²zÀ&Ñ7IÔ7IÈWÒ7TÐ7T�T—^’^ F¨6¤NÑ3Ô3Ð3Ø×%Ò% f¨V¤n°f¸S´kÀ6È#Ä;ÑOÔOð 	à�Š�Y §
¢
¨5°(Ñ ;Ô ;¸V¿ZºZÈÐPWÑ=XÔ=XÑYÔYÐYØ Ð Ð Ð Ð Ð Ø‡K‚KÐ ×'Ò'¨Ñ/Ô/Ñ0Ô0Ð0Øˆ4r/   )r0   )Ú__doc__r_   rQ   r   r(   r*   r.   rR   © r/   r-   ú<module>rs      sr   ððð ð €€€Ø Ð Ð Ð Ð Ð ð B€ðd€ðNð Nð NðPð Pð Pð Pð Pð Pr/   