Exemplo n.º 1
0
def GOM_PROGRAM(url):
    print "PROGRAM %s" % url
    if __settings__.getSetting('fromMobile') == 'false':
        hq = __settings__.getSetting('HQVideo') == 'true'
        scraper = gomtv_scraper(hq)
        from gomtv_downloader import gomtv_downloader
        downloader = gomtv_downloader()
    else:
        from gomm_scraper import gomm_scraper
        scraper = gomm_scraper()
        from gomm_downloader import gomm_downloader
        downloader = gomm_downloader()
    for vidinfo in scraper.parseProgramPage(url):
        vidurl = downloader.getPlayUrl( vidinfo )
        addLink(vidinfo['title'], vidurl+"|Referer="+downloader.referer, '')
Exemplo n.º 2
0
def MOST_WATCHED(main_url):
    scraper = gomtv_scraper()
    for item in scraper.parseMostWatchedPage(url):
        addDir(item['name'], item['url'], 10, item['thumb'])
    if scraper.nextpage:
        addDir(title_nextpage, scraper.nextpage, 2, '')
Exemplo n.º 3
0
def CAT_HOT_SUB(main_url):
    for item in gomtv_scraper().parseHotSubListPage(url):
        addDir(item['name'], item['url'], 3, item['thumb'])
Exemplo n.º 4
0
def CAT_HOT(url):
    for item in gomtv_scraper().parseHotListPage( "http://www.gomtv.com/navigation/navigation.gom?navitype=3" ):
        addDir(item['name'], item['url'], 14, item['thumb'])
Exemplo n.º 5
0
def MUSIC_CHART(url):
    scraper = gomtv_scraper()
    for item in scraper.parseMusicChartPage(url):
        addDir(item['name'], item['url'], 10, item['thumb'])
    if scraper.nextpage:
        addDir(title_nextpage, scraper.nextpage, 2, '')
Exemplo n.º 6
0
def GOM_CH_SUB(url):
    scraper = gomtv_scraper()
    for item in scraper.parseSubChPage(url):
        addDir(item['name'], item['url'], 10, item['thumb'])
    if scraper.nextpage:
        addDir(title_nextpage, scraper.nextpage, 2, '')
Exemplo n.º 7
0
def GOM_CH(url):
    for item in gomtv_scraper().parseChPage(url):
        addDir(item['name'], item['url'], 2, item['thumb'])