예제 #1
0
 def getMenu(self, channel, menutype, name=None):
     if channel == RTEScraper.CHANNEL:
         if menutype == MenuConstants.MODE_CATEGORY:
             return RTE().SearchByCategory(name)
         elif menutype == MenuConstants.MODE_ATOZ:
             return RTE().SearchAtoZ(name)
         else:
             return RTE().getMenuItems(menutype)
예제 #2
0
파일: Channels.py 프로젝트: liamf/VODieR
 def grabDetails(self, url, img, title = None):
     if channel == RTEScraper.CHANNEL:
         return RTE().grabDetails(url, img, title)
     elif mode == TG4Scraper.CHANNEL:
         return TG4().grabDetails(url, img, title)
     elif mode == TV3Scraper.CHANNEL:
         return TV3().grabDetails(url, img, title)
예제 #3
0
파일: Channels.py 프로젝트: liamf/VODieR
 def getEpisodes(self, channel, showID):
     if channel == RTEScraper.CHANNEL:
         return RTE().getEpisodes(showID)
     elif channel == TG4Scraper.CHANNEL:
         return TG4().getEpisodes(showID)
     elif channel == TV3Scraper.CHANNEL:
         return TV3().getEpisodes(showID)
     elif channel == AerTVScraper.CHANNEL:
         return AerTV().getEpisodes(showID)
예제 #4
0
파일: Channels.py 프로젝트: liamf/VODieR
 def getChannels(self):
     return [RTE().getChannelDetail(),
             TV3().getChannelDetail(),
             TG4().getChannelDetail(),
             Anlar().getChannelDetail(),
             AerTV().getChannelDetail(),
             RTERadio().getChannelDetail(),
             ShoutcastRadio().getChannelDetail(),
             {'Channel': 'All', 'Thumb':'../icon.png', 'Title':'Recently watched', 'mode':'recentlyWatched', 'Plot':''},\
             {'Channel': 'All', 'Thumb':'../icon.png', 'Title':'Favorites', 'mode':'favorites', 'Plot':''}]
예제 #5
0
파일: Channels.py 프로젝트: liamf/VODieR
 def getVideoDetails(self, channel, url, skipAds):
     if channel == RTEScraper.CHANNEL:
         return RTE().getVideoDetails(url, skipAds)
     elif channel == TG4Scraper.CHANNEL:
         return TG4().getVideoDetails(url)
     elif channel == TV3Scraper.CHANNEL:
         return TV3().getVideoDetails(url)
     elif channel == AerTVScraper.CHANNEL:
         return AerTV().getVideoDetails(url)
     elif channel == AnlarScraper.CHANNEL:
         return Anlar().getVideoDetails(url)
예제 #6
0
 def getChannels(self):
     return [
         RTE().getChannelDetail(),
         #RTERadio().getChannelDetail(),
         {
             'Channel': 'All',
             'Thumb':
             'https://raw.githubusercontent.com/Coolwavexunitytalk/images/master/rte%20icons/recently%20watched.png',
             'Title': 'Recently watched',
             'mode': 'recentlyWatched',
             'Plot': ''
         }
     ]
예제 #7
0
파일: Channels.py 프로젝트: liamf/VODieR
 def getMainMenu(self, channel):
     if channel == RTEScraper.CHANNEL:
         return RTE().getMainMenu(), True
     elif channel == RTERadioScraper.CHANNEL:
         return RTERadio().getMainMenu(), True
     elif channel == TG4Scraper.CHANNEL:
         return TG4().getMainMenu(), True
     elif channel == TV3Scraper.CHANNEL:
         return TV3().getMainMenu(), True
     elif channel == AerTVScraper.CHANNEL:
         return AerTV().getMainMenu(), True
     elif channel == ShoutcastRadioScraper.CHANNEL:
         return ShoutcastRadio().getMainMenu(), True
     elif channel == AnlarScraper.CHANNEL:
         return Anlar().getMainMenu(), True
예제 #8
0
 def getEpisodes(self, channel, showID):
     if channel == RTEScraper.CHANNEL:
         return RTE().getEpisodes(showID)
예제 #9
0
 def getMainMenu(self, channel):
     if channel == RTEScraper.CHANNEL:
         return RTE().getMainMenu(), True
     elif channel == RTERadioScraper.CHANNEL:
         return RTERadio().getMainMenu(), True
예제 #10
0
 def getVideoDetails(self, channel, url, skipAds):
     if channel == RTEScraper.CHANNEL:
         return RTE().getVideoDetails(url, skipAds)
예제 #11
0
 def grabDetails(self, url, img, title=None):
     if channel == RTEScraper.CHANNEL:
         return RTE().grabDetails(url, img, title)