Beispiel #1
0
    def __init__(self):
        control_background = xbmcgui.ControlImage(
            0, 0, 1280, 720, plugin.addon.getAddonInfo('fanart'))
        self.addControl(control_background)

        fanart = xbmc.getInfoLabel('ListItem.Property(Fanart_Image)')
        if fanart and fanart != "Fanart_Image":
            control_fanart = xbmcgui.ControlImage(0, 0, 1280, 720, fanart)
            self.addControl(control_fanart)
def show_image(url):
    log('Using URL: %s' % url)
    # show poster: first attempt... unfortunately xbmcswift2 doesn't cope with images :-(
    import xbmcgui
    Window = xbmcgui.WindowDialog()
    Image = xbmcgui.ControlImage(0, 0, int(Window.getWidth() * 0.67),
                                 int(Window.getHeight() * 0.67), url, 2)
    Window.addControl(Image)
    Window.doModal()
    Window.show()
    return LOCAL_ITEMS_CACHE
Beispiel #3
0
def Iii1I1():
    OOO0O0O0ooooo = xbmc.translatePath(
        xbmcaddon.Addon().getAddonInfo('path')).decode("utf-8")
    if 49 - 49:
        OOO0O0O0ooooo = xbmc.translatePath(
            os.path.join(OOO0O0O0ooooo, "temp.jpg"))
    if 49 - 49:
        urllib.urlretrieve(
            'https://googledrive.com/host/0B-ygKtjD8Sc-S04wUUxMMWt5dmM/images/donggiao.jpg',
            OOO0O0O0ooooo)
    if 49 - 49:
        iIIii1IIi = xbmcgui.ControlImage(0, 0, 1280, 720, OOO0O0O0ooooo)
    if 49 - 49: o0OO00 = xbmcgui.WindowDialog()
    if 49 - 49: o0OO00.addControl(iIIii1IIi)
    if 49 - 49: o0OO00.doModal()
    oo = [{
        'label':
        'Đồng Giao Official',
        'path':
        'plugin://plugin.video.youtube/channel/UCZTjI84dMcWPLMDd7HjzFnA/',
        'thumbnail':
        'https://yt3.ggpht.com/-5TD-pJoIQRY/AAAAAAAAAAI/AAAAAAAAAAA/oBUSns1u68U/s256-c-k-no/photo.jpg'
    }, {
        'label':
        'Dong Giao Pro',
        'path':
        'plugin://plugin.video.youtube/channel/UCkRLTtpdJj-8Of10-N9E9Ug/',
        'thumbnail':
        'https://yt3.ggpht.com/-S280zJuQrK0/AAAAAAAAAAI/AAAAAAAAAAA/qrXrrcjVT28/s256-c-k-no/photo.jpg'
    }, {
        'label':
        'Giang Nguyen',
        'path':
        'plugin://plugin.video.youtube/channel/UCfxY1HzwvH1gBfAG8O-kNwA/',
        'thumbnail':
        'https://yt3.ggpht.com/-FDJoaZ4E_MU/AAAAAAAAAAI/AAAAAAAAAAA/0F0jKAmhaP0/s256-c-k-no/photo.jpg'
    }, {
        'label':
        'MrBeGiang',
        'path':
        'plugin://plugin.video.youtube/channel/UC1L_0MbpbkPRPE01t8neBZg/',
        'thumbnail':
        'https://yt3.ggpht.com/-WbQ8qe3augw/AAAAAAAAAAI/AAAAAAAAAAA/u3YVPUd0U4o/s256-c-k-no/photo.jpg'
    }]
    return oo000.finish(oo)
    if 27 - 27: oO0OooOoO * o0Oo
    if 5 - 5: OoO0O00
Beispiel #4
0
def OOooOoooOoOo(url):
    oo000 = xbmc.translatePath(
        xbmcaddon.Addon().getAddonInfo('path')).decode("utf-8")
    o0OOOO00O0Oo = xbmc.translatePath(os.path.join(oo000, "tmp"))
    if os.path.exists(o0OOOO00O0Oo):
        shutil.rmtree(o0OOOO00O0Oo)
    os.makedirs(o0OOOO00O0Oo)
    if ".zip" in url:
        iioOooOOOoOo = xbmc.translatePath(
            os.path.join(o0OOOO00O0Oo, "temp.zip"))
        urllib.urlretrieve(url, iioOooOOOoOo)
        i1I1ii1II1iII(iioOooOOOoOo, o0OOOO00O0Oo)
        xbmc.executebuiltin("SlideShow(%s,recursive)" % o0OOOO00O0Oo)
        if 41 - 41: I1Ii - ooO0OO000o - ooO0OO000o
        if 68 - 68: i1iII1I1i1i1 % Ooooo
    else:
        ooO00OO0 = xbmcgui.WindowDialog()
        i11111IIIII = xbmcgui.ControlImage(0, 0, 1280, 720, url)
        ooO00OO0.addControl(i11111IIIII)
        ooO00OO0.doModal()
        if 19 - 19: Ii11111i * oo000i1iIi11iIIi1
Beispiel #5
0
def IIi1IiiiI1Ii():
    I11i11Ii = xbmc.translatePath(
        xbmcaddon.Addon().getAddonInfo('path')).decode("utf-8")
    if 49 - 49:
        I11i11Ii = xbmc.translatePath(os.path.join(I11i11Ii, "temp.jpg"))
    if 49 - 49:
        urllib.urlretrieve(
            'https://googledrive.com/host/0B-ygKtjD8Sc-S04wUUxMMWt5dmM/images/vtvplus.jpg',
            I11i11Ii)
    if 49 - 49: oO00oOo = xbmcgui.ControlImage(0, 0, 1280, 720, I11i11Ii)
    if 49 - 49: OOOo0 = xbmcgui.WindowDialog()
    if 49 - 49: OOOo0.addControl(oO00oOo)
    if 49 - 49: OOOo0.doModal()
    if 54 - 54: i1 - o0 * i1oOo0OoO * iIIIiiIIiiiIi % Oo
    o0O = [
        {
            'label': 'NatGeo Wild HD',
            'path': '%s/play/%s' % (ii, '48'),
            'is_playable': True,
            'thumbnail':
            'http://vtvplus.vn/vtv/thumb.php?src=https://api.vtvplus.vn/pro/files/channel/48.jpg&a=t&w=291&h=163',
            'info': {
                'plot': ''
            }
        },
        {
            'label': 'National Geographic HD',
            'path': '%s/play/%s' % (ii, '46'),
            'is_playable': True,
            'thumbnail':
            'http://vtvplus.vn/vtv/thumb.php?src=https://api.vtvplus.vn/pro/files/channel/46.jpg&a=t&w=291&h=163',
            'info': {
                'plot': ''
            }
        },
        {
            'label': 'Star Movies HD',
            'path': '%s/play/%s' % (ii, '18'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/StarMoviesHD.jpg',
            'info': {
                'plot': 'Kênh phim truyện nước ngoài của Fox Corporation'
            }
        },
        {
            'label': 'Star World HD',
            'path': '%s/play/%s' % (ii, '44'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/StarworldHD.jpg',
            'info': {
                'plot': 'Kênh giải trí StarWorld HD'
            }
        },
        {
            'label': 'VTVcab 16 - Bóng Đá TV HD',
            'path': '%s/play/%s' % (ii, '11'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/Cab16-BongdaHD.jpg',
            'info': {
                'plot':
                'VTVcab 16 - Bóng đá TV phát sóng trực tiếp 5 Giải bóng đá hàng đầu Châu Âu gồm Ngoại hạng Anh (EPL), Tây Ban Nha (La Liga), Đức (Bundesliga), Ý (Serie A) và Pháp (Ligue 1). \nNgoài ra, Bóng Đá TV còn đem đến cho khán giả rất nhiều nội dung thể thao đặc sắc khác.'
            }
        },
        {
            'label': 'SCTV Hài HD',
            'path': '%s/play/%s' % (ii, '36'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/SCTV-HaiHD.jpg',
            'info': {
                'plot': 'Kênh Hài SCTV chất lượng cao'
            }
        },
        {
            'label': 'SCTV Thể thao HD',
            'path': '%s/play/%s' % (ii, '8'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/SCTV-TheThaoHD.jpg',
            'info': {
                'plot':
                'SCTV HD Thể Thao là kênh thể thao chuyên biệt của Công ty Truyền hình cáp Saigontourist. Trực tiếp thể thao tổng hợp, bóng đá, tennis, cầu lông, bóng bàn… Xem trực tiếp bóng đá trên kênh SCTV HD Thể Thao với bình luận tiếng Việt'
            }
        },
        {
            'label': 'VTV6 HD',
            'path': '%s/play/%s' % (ii, '5'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/1Logo-VTV6.jpg',
            'info': {
                'plot':
                'Kênh truyền hình dành cho thanh thiếu niên, nhi đồng, tập trung vào đời sống văn hóa trẻ, cuộc sống đời thường, các vấn đề xã hội cập nhật, hướng dẫn kỹ năng sống, văn hóa thế giới và Việt Nam của Truyền hình Việt Nam'
            }
        },
        {
            'label': 'VTV3 HD',
            'path': '%s/play/%s' % (ii, '1'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/VTV3HD.jpg',
            'info': {
                'plot':
                'VTV3 là kênh truyền hình thông tin thể thao, giải trí và thông tin kinh tế của Đài Truyền hình Việt Nam. Đây là kênh truyền hình phổ biến nhất tại Việt Nam với các chương trình phong phú nhằm phục vụ nhu cầu giải trí của khán giả mọi lứa tuổi. '
            }
        },
        {
            'label': 'VTVcab 2 - Phim Việt',
            'path': '%s/play/%s' % (ii, '20'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/Cab2-PhimViet.jpg',
            'info': {
                'plot':
                'VTVcab 2 - Phim Việt là kênh phim truyện Việt Nam của Truyền hình cáp Việt Nam . Nội dung các bộ phim trên kênh Phim Việt phù hợp với mọi lứa tuổi. Phim Việt đề cập đến những vấn đề gần gũi với đời sống người dân, nội dung hấp dẫn, mang hơi thở thời đại.'
            }
        },
        {
            'label': 'VTVcab 5 - Echannel',
            'path': '%s/play/%s' % (ii, '21'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/Cab5-Echannel.jpg',
            'info': {
                'plot':
                'VTVcab 5 - Echannel là kênh giải trí tổng hợp hướng thực tế cho khán giả nữ độ tuổi từ 18 đến 45.\nVới phương châm cung cấp nội dung “Mới mỗi ngày”, E-Channel là một “món ăn tinh thần” mới cho khán giả với những bộ phim đặc sắc của điện ảnh thế giới và chương trình giải trí tổng hợp vui nhộn.'
            }
        },
        {
            'label': 'VTVcab 7 - D Dramas',
            'path': '%s/play/%s' % (ii, '19'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/Cab7-DDramas.jpg',
            'info': {
                'plot':
                'VTVcab 7 - D-Dramas là kênh phim truyện châu Á với khẩu hiệu “Yêu Drama, sống cùng Drama”. Kênh mang đến cho khán giả yêu thích phim ảnh trên cả nước, đặc biệt tại Hà Nội và TP.HCM, những bộ phim giải trí hiện đại, đặc sắc trong lẫn ngoài nước.'
            }
        },
        {
            'label': 'VTVcab 8 - Bibi',
            'path': '%s/play/%s' % (ii, '59'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/Cab8-Bibi.jpg',
            'info': {
                'plot':
                'VTVcab 8 - BiBi – “Bay bổng cùng thế giới diệu kỳ”.\nLần đầu tiên tại Việt Nam, các em nhỏ có riêng một kênh hoạt hình thuyết minh tiếng Việt, phát sóng 18/24h. Các em nhỏ như lạc vào thế giới diệu kỳ với bao điều kỳ lạ, được bay bổng, được sống với những nhân vật hoạt hình mà các em ngưỡng mộ.'
            }
        },
        {
            'label': 'VTVcab 10 - O2 TV',
            'path': '%s/play/%s' % (ii, '62'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/Cab10-O2TV.jpg',
            'info': {
                'plot':
                'VTVcab 10 - O2TV phát sóng liên tục 24/24 mỗi ngày, luôn cập nhật thông tin chính thống và nhanh nhất từ các chuyên gia đầu ngành về y tế. \nO2TV – Sống khỏe mỗi ngày!'
            }
        },
        {
            'label': 'VTVcab 15 - Invest TV',
            'path': '%s/play/%s' % (ii, '14'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/Cab15-InvestTV.jpg',
            'info': {
                'plot':
                'VTVcab 15 - InvestTV là kênh truyền hình chuyên biệt về lĩnh vực đầu tư, kinh tế và những vấn đề kinh tế xã hội. InvestTV là cầu nối giữa doanh nghiệp trong nước với các nhà đầu tư nước ngoài, cung cấp thông tin thuộc lĩnh vực đầu tư, tài chính, nguồn nhân lực, chứng khoán, bất động sản, hàng hóa...'
            }
        },
        {
            'label': 'HTV3',
            'path': '%s/play/%s' % (ii, '39'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/HTV3.jpg',
            'info': {
                'plot':
                'HTV3 là một kênh truyền hình đặc sắc thuộc Đài Truyền hình Thành phố Hồ Chí Minh. Nội dung phát sóng của HTV3 hoàn toàn dành cho trẻ em, thanh thiếu niên và gia đình.Chương trình bao gồm nhiều bộ phim Châu Á độc quyền và có bản quyền được lồng tiếng cùng với những chương trình giải trí, giáo dục...'
            }
        },
        {
            'label': 'HTV4',
            'path': '%s/play/%s' % (ii, '42'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/HTV4.jpg',
            'info': {
                'plot':
                'HTV4 là kênh khoa học giáo dục - dành cho mọi lứa tuổi, đặc biệt là những người thích tìm tòi, học hỏi, khám phá về cuộc sống, về thế giới muôn màu với bao điều diệu kỳ, bí ẩn trong vũ trụ bao la. Từ đó cho ta những giải đáp về các hiện tượng trong cuộc sống đời thường.'
            }
        },
        {
            'label': 'HTV7',
            'path': '%s/play/%s' % (ii, '37'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/HTV7.jpg',
            'info': {
                'plot': 'Kênh tổng hợp truyền hình thành phố HCM'
            }
        },
        {
            'label': 'HTV9',
            'path': '%s/play/%s' % (ii, '38'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/HTV9.jpg',
            'info': {
                'plot': 'Kênh chính trị - xã hội truyền hình thành phố HCM'
            }
        },
        {
            'label': 'HTV Thể thao',
            'path': '%s/play/%s' % (ii, '13'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/HTV-Thethao.jpg',
            'info': {
                'plot':
                'HTVC-THETHAO là một kênh của Đài truyền hình cáp TP Hồ Chí Minh phát sóng các hoạt động thể thao đỉnh cao trong nước và các giải đấu quốc tế. Các tiết mục được sắp xếp phát xem kẽ theo các buổi sáng, trưa, chiều, tối, giúp cho các đối tượng khán giả có thể theo dõi chương trình yêu thích của mình.'
            }
        },
        {
            'label': 'HTVC FBNC',
            'path': '%s/play/%s' % (ii, '43'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/logoFBNC.jpg',
            'info': {
                'plot':
                'FBNC - Được đánh giá là một kênh truyền hình chuyên nghiệp nhất của thành phố Hồ Chí Minh, FBNC tổng hợp các thông tin liên quan đến Kinh tế, tài chính của Việt Nam và thế giới, chứng khoán và đời sống, kinh nghiệm kinh doanh…'
            }
        },
        {
            'label': 'Yeah1TV',
            'path': '%s/play/%s' % (ii, '63'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/logo-yeah1tv.png',
            'info': {
                'plot':
                'Yeah1 TV là kênh truyền hình mang đến cho khán giả trẻ hàng loạt chương trình giải trí, văn hóa, thể thao, âm nhạc, đời sống, giáo dục với nội dung hấp dẫn và hình thức sáng tạo mới lạ, có tính tương tác cao với người xem. Yeah1 TV phát sóng trên hệ thống cáp HTVC, VTVcab'
            }
        },
        {
            'label': 'Yan TV',
            'path': '%s/play/%s' % (ii, '31'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/YanTV.jpg',
            'info': {
                'plot': 'Kênh truyền hình giải trí hàng đầu dành cho giới trẻ.'
            }
        },
        {
            'label': 'SCTV13',
            'path': '%s/play/%s' % (ii, '33'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/SCTV13.jpg',
            'info': {
                'plot': 'Kênh Phụ nữ và gia đình'
            }
        },
        {
            'label': 'VTC7 - TodayTV',
            'path': '%s/play/%s' % (ii, '24'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/TodayTV.jpg',
            'info': {
                'plot': 'VTC7 - TodayTV'
            }
        },
        {
            'label': 'TTXVN',
            'path': '%s/play/%s' % (ii, '54'),
            'is_playable': True,
            'thumbnail':
            'https://api.vtvplus.vn/pro/files/uploads/images/TTXVN.jpg',
            'info': {
                'plot':
                'Truyền hình Thông tấn là cơ quan nghiệp vụ thông tin của TTXVN với chức năng: Tổ chức, xây dựng và sản xuất các chương trình thông tin nghe nhìn tuyên truyền về đường lối, chủ trương, chính sách của Đảng và Nhà nước, thông tin đối nội và đối ngoại về các vấn đề kinh tế, văn hoá, xã hội của đất nước.'
            }
        },
        {
            'label': 'BBC World News Live',
            'path': '%s/play/%s' % (ii, '49'),
            'is_playable': True,
            'thumbnail':
            'http://vtvplus.vn/vtv/thumb.php?src=https://api.vtvplus.vn/pro/files/channel/49.jpg&a=t&w=291&h=163',
            'info': {
                'plot': ''
            }
        },
        {
            'label': 'MTV Phụ đề tiếng Việt',
            'path': '%s/play/%s' % (ii, '55'),
            'is_playable': True,
            'thumbnail':
            'http://vtvplus.vn/vtv/thumb.php?src=https://api.vtvplus.vn/pro/files/channel/55.jpg&a=t&w=291&h=163',
            'info': {
                'plot': ''
            }
        },
        {
            'label': 'iMovie',
            'path': '%s/play/%s' % (ii, '69'),
            'is_playable': True,
            'thumbnail':
            'http://vtvplus.vn/vtv/thumb.php?src=https://api.vtvplus.vn/pro/files/channel/69.jpg&a=t&w=291&h=163',
            'info': {
                'plot': ''
            }
        },
        {
            'label': 'HTVC Thuần Việt',
            'path': '%s/play/%s' % (ii, '30'),
            'is_playable': True,
            'thumbnail':
            'http://vtvplus.vn/vtv/thumb.php?src=https://api.vtvplus.vn/pro/files/channel/30.jpg&a=t&w=291&h=163',
            'info': {
                'plot': ''
            }
        },
    ]
    return oo000.finish(o0O)
    if 48 - 48: iII111i % IiII + I1Ii111 / ooOoO0o * o00O0oo
Beispiel #6
0
def IIi1IiiiI1Ii():
    I11i11Ii("None", "None")
    oO00oOo = xbmc.translatePath(
        xbmcaddon.Addon().getAddonInfo('path')).decode("utf-8")
    if 49 - 49: oO00oOo = xbmc.translatePath(os.path.join(oO00oOo, "temp.jpg"))
    if 49 - 49:
        urllib.urlretrieve(
            'https://googledrive.com/host/0B-ygKtjD8Sc-S04wUUxMMWt5dmM/images/moviebox.jpg',
            oO00oOo)
    if 49 - 49: OOOo0 = xbmcgui.ControlImage(0, 0, 1280, 720, oO00oOo)
    if 49 - 49: Oooo000o = xbmcgui.WindowDialog()
    if 49 - 49: Oooo000o.addControl(OOOo0)
    if 49 - 49: Oooo000o.doModal()
    if 6 - 6: i1 * ii1IiI1i % OOooOOo / I11i / o0O / IiiIII111iI
    IiII = [{
        'label':
        'Phim mới',
        'path':
        '%s/latest/%s' %
        (ii, urllib.quote_plus('http://ictvnow.nl/vod/Api/GetListFilm'))
    }, {
        'label':
        'Phóng Sự & Tài Liệu',
        'path':
        '%s/genres/%s/%s' %
        (ii, urllib.quote_plus('http://ictvnow.nl/vod/Api/GetListFilmByCate'),
         '33'),
        'thumbnail':
        'http://ictvnow.nl/vod/images/category/13333734-Phim-Tai-Lieu.jpg'
    }, {
        'label':
        'Ca Nhạc',
        'path':
        '%s/genres/%s/%s' %
        (ii, urllib.quote_plus('http://ictvnow.nl/vod/Api/GetListFilmByCate'),
         '34'),
        'thumbnail':
        'http://ictvnow.nl/vod/images/category/99844308-Ca-nhac.jpg'
    }, {
        'label':
        'Hài Kịch',
        'path':
        '%s/genres/%s/%s' %
        (ii, urllib.quote_plus('http://ictvnow.nl/vod/Api/GetListFilmByCate'),
         '35'),
        'thumbnail':
        'http://ictvnow.nl/vod/images/category/519820-Hai-Kich.jpg'
    }, {
        'label':
        'Phim Lẻ',
        'path':
        '%s/genres/%s/%s' %
        (ii, urllib.quote_plus('http://ictvnow.nl/vod/Api/GetListFilmByCate'),
         '36'),
        'thumbnail':
        'http://ictvnow.nl/vod/images/category/6855131-MOD.jpg'
    }, {
        'label':
        'Phim Bộ',
        'path':
        '%s/genres/%s/%s' %
        (ii, urllib.quote_plus('http://ictvnow.nl/vod/Api/GetListFilmByCate'),
         '37'),
        'thumbnail':
        'http://ictvnow.nl/vod/images/category/46252803-Phim-Bo.jpg'
    }, {
        'label':
        'Truyền Hình',
        'path':
        '%s/genres/%s/%s' %
        (ii, urllib.quote_plus('http://ictvnow.nl/vod/Api/GetListFilmByCate'),
         '38'),
        'thumbnail':
        'http://ictvnow.nl/vod/images/category/14266234-Live-TV.jpg'
    }, {
        'label':
        'Nghe Truyện Đọc',
        'path':
        '%s/genres/%s/%s' %
        (ii, urllib.quote_plus('http://ictvnow.nl/vod/Api/GetListFilmByCate'),
         '40'),
        'thumbnail':
        'http://ictvnow.nl/vod/images/category/3488938-Sach-Noi.jpg'
    }, {
        'label':
        'Dạy Nấu Ăn',
        'path':
        '%s/genres/%s/%s' %
        (ii, urllib.quote_plus('http://ictvnow.nl/vod/Api/GetListFilmByCate'),
         '41'),
        'thumbnail':
        'http://ictvnow.nl/vod/images/category/14376243-Am-Nhac.jpg'
    }]
    return oo000.finish(IiII)
    if 28 - 28: Ii11111i * iiI1i1
 def __init__(self, *args, **kwargs):
     self.cptloc = kwargs.get('captcha')
     self.img = xbmcgui.ControlImage(400, 10, 400, 100,self.cptloc)
     self.addControl(self.img)
     self.kbd = xbmc.Keyboard()
Beispiel #8
0
def IIi1IiiiI1Ii():
    I11i11Ii("None", "None")
    oO00oOo = xbmc.translatePath(
        xbmcaddon.Addon().getAddonInfo('path')).decode("utf-8")
    if 49 - 49: oO00oOo = xbmc.translatePath(os.path.join(oO00oOo, "temp.jpg"))
    if 49 - 49:
        urllib.urlretrieve(
            'https://googledrive.com/host/0B-ygKtjD8Sc-S04wUUxMMWt5dmM/images/phimvang.jpg',
            oO00oOo)
    if 49 - 49: OOOo0 = xbmcgui.ControlImage(0, 0, 1280, 720, oO00oOo)
    if 49 - 49: Oooo000o = xbmcgui.WindowDialog()
    if 49 - 49: Oooo000o.addControl(OOOo0)
    if 49 - 49: Oooo000o.doModal()
    if 6 - 6: i1 * ii1IiI1i % OOooOOo / I11i / o0O / IiiIII111iI
    IiII = [{
        'label':
        'Phim mới',
        'path':
        '%s/latest/%s/%s' %
        (ii, urllib.quote_plus('http://phim7.com/phim-moi/trang-%s.html'), 1)
    }, {
        'label':
        'Phim HOT',
        'path':
        '%s/hot/%s/%s' %
        (ii, urllib.quote_plus('http://phim7.com/phim-hot/trang-%s.html'), 1)
    }, {
        'label':
        'Phim xem nhiều',
        'path':
        '%s/most_view/%s/%s' %
        (ii,
         urllib.quote_plus('http://phim7.com/phim-xem-nhieu/trang-%s.html'), 1)
    }, {
        'label':
        'Phim chiếu rạp',
        'path':
        '%s/cine/%s/%s' %
        (ii,
         urllib.quote_plus('http://phim7.com/phim-chieu-rap/trang-%s.html'), 1)
    }, {
        'label':
        'Phim bộ',
        'path':
        '%s/series/%s/%s' %
        (ii, urllib.quote_plus('http://phim7.com/phim-bo/trang-%s.html'), 1)
    }, {
        'label':
        'Phim lẻ',
        'path':
        '%s/movies/%s/%s' %
        (ii, urllib.quote_plus('http://phim7.com/phim-le/trang-%s.html'), 1)
    }, {
        'label': 'Thể loại',
        'path': '%s/genres' % ii
    }, {
        'label': 'Quốc gia',
        'path': '%s/nations' % ii
    }, {
        'label': 'Tìm kiếm',
        'path': '%s/search' % ii
    }]
    return oo000.finish(IiII)
    if 28 - 28: Ii11111i * iiI1i1
Beispiel #9
0
    def build(
            self, course_id, lesson_id, group_id, quiz_id,
            quiz_data, last_submission_data, udacity, plugin):
        self.udacity = udacity
        self.data = quiz_data['data']
        self.widgets = []
        self.plugin = plugin
        self.course_id = course_id
        self.lesson_id = lesson_id
        self.group_id = group_id
        self.quiz_id = quiz_id

        bg_image_path = (
            plugin.addon.getAddonInfo('path') + os.sep +
            'resources' + os.sep + 'media' + os.sep + 'blank.png')

        self.addControl(xbmcgui.ControlImage(
            0, 0, self.width, self.height, bg_image_path)
        )
        if '_background_image' in self.data:
            url = 'http:' + self.data['_background_image']['serving_url']
            self.addControl(xbmcgui.ControlImage(
                x=0, y=0, width=self.width,
                height=self.height - self.bottom_height, filename=url))

        widgets = self.data['widgets']
        for widget in widgets:
            model = widget['model']
            x = int(math.ceil(
                widget['placement']['x'] * self.width))
            y = int(math.ceil(
                widget['placement']['y'] *
                (self.height - self.widget_y_multiplier_offset)) -
                self.widget_y_offset)

            if model == 'TextInputWidget' or model == 'NumericInputWidget':
                widget_height = int(
                    self.height * widget['placement']['height'])
                widget_width = int(
                    self.width * widget['placement']['width'])
                obj = TextBox(
                    x=x, y=y, height=widget_height, width=widget_width,
                    label='', textColor="0xFF000000", shadowColor='0xFF000000')
            else:
                obj = RadioButton(
                    x=x, y=y,
                    height=self.radio_button_height,
                    width=self.radio_button_width, label='')

            self.addControl(obj)

            if last_submission_data:
                for part in last_submission_data['parts']:
                    if part['marker'] == widget['marker']:
                        obj.updateContent(part['content'])

            self.widgets.append({
                'obj': obj, 'data': widget})

        self.submit_button = xbmcgui.ControlButton(
            x=self.button_x_pos, y=self.button_y_pos, width=self.button_width,
            height=self.button_height, shadowColor='0xFF000000',
            label=self.plugin.get_string(30013), font='font13',
            textColor=self.button_text_colour)

        self.back_button = xbmcgui.ControlButton(
            x=self.button_x_pos - self.button_spacing,
            y=self.button_y_pos, width=self.button_width,
            height=self.button_height, label=self.plugin.get_string(30014),
            font='font13', textColor=self.button_text_colour)

        self.addControl(self.submit_button)
        self.addControl(self.back_button)