Esempio n. 1
0
    def archive(self):
        self.list = cache.get(self.item_list_11, 24)

        if self.list == None: return

        self.list = [i for i in self.list if '/agapimena/' in i['url']]

        for i in self.list:
            i.update({'action': 'reverseEpisodes'})

        for i in self.list:
            bookmark = dict(
                (k, v) for k, v in i.iteritems() if not k == 'next')
            bookmark['bookmark'] = i['url']
            i.update({
                'cm': [{
                    'title': 32501,
                    'query': {
                        'action': 'addBookmark',
                        'url': json.dumps(bookmark)
                    }
                }]
            })

        directory.add(self.list)
        return self.list
Esempio n. 2
0
    def videos(self, url):
        self.list = cache.get(self.item_list, 6, url)

        if self.list == None: return

        for i in self.list: i.update({'action': 'play', 'isFolder': 'False'})

        directory.add(self.list, content='videos')
        return self.list
Esempio n. 3
0
    def tvshows(self):
        self.list = cache.get(self.item_list_11, 24)

        if self.list == None: return

        self.list = [i for i in self.list if i['filter'] == True]

        self.list += [{
            'title':
            'ALPHA NEWS йупяоу'.decode('iso-8859-7').encode('utf-8'),
            'image':
            'http://www.alphacyprus.com.cy/sites/tv/files/styles/alpha_-_multicolumn_list/public/thumbnails/alpha_news_0.png',
            'url':
            self.cynews_link
        }, {
            'title':
            'ALPHA емглеяысг йупяоу'.decode('iso-8859-7').encode('utf-8'),
            'image':
            'http://www.alphacyprus.com.cy/sites/tv/files/styles/alpha_-_multicolumn_list/public/thumbnails/img_3846.jpg',
            'url':
            'http://www.alphacyprus.com.cy/shows/informative/alphaenimerosi'
        }, {
            'title':
            'йахе леяа, аккг леяа'.decode('iso-8859-7').encode('utf-8'),
            'image':
            'http://www.alphacyprus.com.cy/sites/tv/files/styles/alpha_-_multicolumn_list/public/thumbnails/kathemeraallimera.jpg',
            'url':
            'http://www.alphacyprus.com.cy/shows/informative/kathemeraallimera'
        }]

        for i in self.list:
            i.update({'action': 'episodes'})

        for i in self.list:
            bookmark = dict(
                (k, v) for k, v in i.iteritems() if not k == 'next')
            bookmark['bookmark'] = i['url']
            i.update({
                'cm': [{
                    'title': 32501,
                    'query': {
                        'action': 'addBookmark',
                        'url': json.dumps(bookmark)
                    }
                }]
            })

        self.list = sorted(self.list, key=lambda k: k['title'].lower())

        directory.add(self.list)
        return self.list
Esempio n. 4
0
    def radios(self):
        self.list = cache.get(self.item_list, 0, self.player_link)

        if self.list == None: return

        for i in self.list: i.update({'action': 'play', 'isFolder': 'False'})

        for i in self.list:
            bookmark = dict((k,v) for k, v in i.iteritems() if not k == 'next')
            bookmark['bookmark'] = i['url']
            i.update({'cm': [{'title': 32501, 'query': {'action': 'addBookmark', 'url': json.dumps(bookmark)}}]})

        directory.add(self.list, infotype='Music')
        return self.list
Esempio n. 5
0
    def bookmarks(self):
        self.list = bookmarks.get()

        if self.list == None: return

        for i in self.list:
            bookmark = dict((k,v) for k, v in i.iteritems() if not k == 'next')
            bookmark['delbookmark'] = i['url']
            i.update({'cm': [{'title': 32502, 'query': {'action': 'deleteBookmark', 'url': json.dumps(bookmark)}}]})

        self.list = sorted(self.list, key=lambda k: k['title'].lower())

        directory.add(self.list, infotype='Music')
        return self.list
Esempio n. 6
0
    def root(self):
        self.list = [
        {
        'title': 32001,
        'action': 'radios'
        },

        {
        'title': 32002,
        'action': 'bookmarks'
        }
        ]

        directory.add(self.list, content='files')
        return self.list
Esempio n. 7
0
    def episodes(self, url, fulltitle=False, reverse=False):
        self.list = cache.get(self.item_list_2, 1, url)

        if self.list == None: return

        for i in self.list:
            i.update({'action': 'play', 'isFolder': 'False'})

        if fulltitle == True:
            for i in self.list:
                i.update({'title': '%s - %s' % (i['tvshowtitle'], i['title'])})

        if reverse == True:
            self.list = self.list[::-1]

        directory.add(self.list, content='files')
        return self.list
Esempio n. 8
0
    def root(self):
        self.list = [{
            'title': 32001,
            'action': 'tvshows',
            'icon': 'tvshows.png'
        }, {
            'title': 32002,
            'action': 'archive',
            'icon': 'archive.png'
        }, {
            'title': 32003,
            'action': 'popularShows',
            'icon': 'popular.png'
        }, {
            'title': 32004,
            'action': 'popularEpisodes',
            'icon': 'popular.png'
        }, {
            'title': 32005,
            'action': 'news',
            'icon': 'news.png'
        }, {
            'title': 32006,
            'action': 'cynews',
            'icon': 'news.png'
        }, {
            'title': 32007,
            'action': 'bookmarks',
            'icon': 'bookmarks.png'
        }, {
            'title': 32008,
            'action': 'live',
            'isFolder': 'False',
            'icon': 'live.png'
        }]

        directory.add(self.list)
        return self.list
Esempio n. 9
0
    def root(self):
        self.list = [
        {
        'title': 32001,
        'action': 'videos',
        'url': self.videos_link,
        'icon': 'videos.png'
        },

        {
        'title': 32002,
        'action': 'videos',
        'url': self.mountainbike_link,
        'icon': 'mountainbike.png'
        },

        {
        'title': 32003,
        'action': 'videos',
        'url': self.bmx_link,
        'icon': 'bmx.png'
        },

        {
        'title': 32004,
        'action': 'videos',
        'url': self.skate_link,
        'icon': 'skate.png'
        },

        {
        'title': 32005,
        'action': 'videos',
        'url': self.snowboard_link,
        'icon': 'snowboard.png'
        },

        {
        'title': 32006,
        'action': 'videos',
        'url': self.freeski_link,
        'icon': 'freeski.png'
        },

        {
        'title': 32007,
        'action': 'videos',
        'url': self.fmx_link,
        'icon': 'fmx.png'
        },

        {
        'title': 32008,
        'action': 'videos',
        'url': self.mx_link,
        'icon': 'mx.png'
        },

        {
        'title': 32009,
        'action': 'videos',
        'url': self.surf_link,
        'icon': 'surf.png'
        },

        {
        'title': 32010,
        'action': 'videos',
        'url': self.autosports_link,
        'icon': 'autosports.png'
        },

        {
        'title': 32011,
        'action': 'videos',
        'url': self.kayak_link,
        'icon': 'kayak.png'
        },

        {
        'title': 32012,
        'action': 'videos',
        'url': self.kite_link,
        'icon': 'kite.png'
        },

        {
        'title': 32013,
        'action': 'videos',
        'url': self.outdoor_link,
        'icon': 'outdoor.png'
        },

        {
        'title': 32014,
        'action': 'videos',
        'url': self.wake_link,
        'icon': 'wake.png'
        },

        {
        'title': 32015,
        'action': 'videos',
        'url': self.windsurf_link,
        'icon': 'windsurf.png'
        }
        ]

        directory.add(self.list, content='videos')
        return self.list