Repository URL to install this package:
|
Version:
2+git3694+d6785c5-r4 ▾
|
enigma2-plugin-extensions-e2iplayer
/
usr
/
lib
/
enigma2
/
python
/
Plugins
/
Extensions
/
IPTVPlayer
/
hosts
/
hostappletrailers.pyo
|
|---|
ó
Ch-_c @ sà d d l m Z d d l m Z m Z d d l m Z m Z m Z d d l
Z
d d l Z y d d l Z Wn e
k
r d d l Z n Xd Z d e f d YZ d e f d YZ d S(
iÿÿÿÿ( t TranslateTXT( t CHostBaset CBaseHostClass( t printDBGt printExct byteifyNc C s d S( Ns https://trailers.apple.com/( ( ( ( sP /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostappletrailers.pyt gettytul s t
TrailersApplec B s e Z d Z d d Z i d d Z d Z d Z d Z d Z d Z
d Z d Z d
Z
d d d d
Z RS( c C s= t j | i d d 6d d 6 d | _ d | _ i | _ d S( NR t historys TrailersApple.cookiet cookies https://trailers.apple.com/s@ http://www.userlogos.org/files/logos/mafi0z/apple%20trailers.png( R t __init__t MAIN_URLt DEFAULT_ICON_URLt
cacheLinks( t self( ( sP /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostappletrailers.pyR
s c C s t j | | j d d | S( Ns &t &( R t
getFullUrlt replace( R t urlt baseUrl( ( sP /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostappletrailers.pyR s c C s | j j | | | S( N( t cmt getPage( R R t addParamst post_data( ( sP /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostappletrailers.pyR ! s c C sþ t d i d d 6d d 6| j d d 6i d d 6d d 6| j d d 6i d d 6d
d 6| j d d 6i d d 6d d 6| j d
d 6i d d 6d d 6| j d d 6i d d 6t d d 6t d 6i d d 6t d d 6g } | j | | d S( Ns TrailersApple.listMaint
list_itemst categorys
Just Addedt titles$ /trailers/home/feeds/just_added.jsonR t Exclusives# /trailers/home/feeds/exclusive.jsons Just HDs! /trailers/home/feeds/just_hd.jsons Most Populars" /trailers/home/feeds/most_pop.jsons
Movie Studioss! /trailers/home/feeds/studios.jsont searcht Searcht search_itemt search_historys Search history( R R t _t Truet listsTab( R t cItemt MAIN_CAT_TAB( ( sP /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostappletrailers.pyt listMain$ s
!!!!!c C s t d t | d yÐ| d } | j | j j j | d d d } | d k r¥ t | } | j i t d 6| d 6t d d
6| d 6 | j | n x?| d D]3} | j
| d } | j | j j j | d d d } d | k r^| d k rã| d k rãt | } | j i t d 6| d 6| d
6| d 6 | j | qãq° t | d d
k r° | d k r° | d | d d d <t | } | j i t d 6| d d d 6| d
6| d 6 | j | q° q° WWn t k
rt
n Xd S( Ns TrailersApple.listCatItemst c_treet dats href=['"]([^'^"]+?)['"]i t t good_for_favR s --All--R R t listi ( R R R t pht getSearchGroupst dictt updatet FalseR t addDirt cleanHtmlStrt lent ExceptionR ( R R# t nextCategoryt cTreeR t paramst itemR ( ( sP /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostappletrailers.pyt listCatItems0 s0
)/))"1
c C s t d | d | _ d S( Ns TrailersApple.listSubItemst sub_items( R t currList( R R# ( ( sP /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostappletrailers.pyt listSubItemsK s
c
C s[ t d | | j | d \ } } | s1 d S| j | j j d yôt t j | } d | k ry | d } n x¿| D]·} t | t | d d k r¬ q n | j | d } | j
| d } | j | d } g } d | k r| j | d d
n xØ t
d d f t
d
d f t
d d f t
d d f t
d d f t
d d f g D]v }
|
d | k rqpn t | |
d t r½d j | |
d } n | |
d } | j d |
d | f qpWi t d 6d d 6| d 6| d 6| d 6| d 6d j | d 6} | j | q WWn t k
rVt n Xd S( Ns TrailersApple.listItems [%s]R t resultst trailersi R t locationt postert releasedatei s Studio:t studios Director:t directors
Directors:t directorss Genres:t genress Genre:t genres Actors:t actorsi s , s %s %sR) R t namet icons [/br]t desc( R R t
setMainUrlR t metaR t jsont loadsR2 R1 R t getFullIconUrlt appendR t
isinstanceR* t joinR! R0 R3 R (
R R# R4 t stst dataR7 R R RH RI t itt valueR6 ( ( sP /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostappletrailers.pyt listItemsO s<