Exemple #1
0
def GOM_MOVIE(main_url):
    print "MOVIE %s" % main_url
    # free movie
    if __settings__.getSetting('MovieBackdoor')=='true':
        import re
        match = re.compile('http://movie.gomtv.com/(\d+)/(\d+)').match(main_url)
        vinfo = {'dispid':match.group(1), 'vodid':match.group(2)}
    else:
        from gomtv_movie_scraper import gommovie_scraper
        scraper = gommovie_scraper()
        vinfo = scraper.parseMoviePage(main_url)
    from gommovie_downloader import gommovie_downloader
    downloader = gommovie_downloader()
    mov_list = downloader.getMovieUrls(vinfo)
    for title,url in mov_list:
        addLink(title, url, '')
    # hotclip
    if vinfo.has_key('misid'):
        hotclip_url = "http://movie.gomtv.com/sub/detailAjax.gom?misid=%s&dispid=%s&vodid=%s&mtype=5" % \
                                (vinfo['misid'], vinfo['dispid'], vinfo['vodid'])
        hc_ids = scraper.parseMovieHotClipPage( hotclip_url )
        if mov_list and hc_ids:
            addDir(menu_div, '', 110, '')  # divider
        for info in hc_ids:
            url = "http://tv.gomtv.com/cgi-bin/gox/gox_clip.cgi?dispid=%s&clipid=%s" % (vinfo['dispid'],info['clipid'])
            addLink(info['name'], url, info['thumb'])
Exemple #2
0
def MOVIE_BOXOFFICE(main_url):
    from gomtv_movie_scraper import gommovie_scraper 
    scraper = gommovie_scraper()
    for item in scraper.parseBoxOfficePage(url):
        addDir(item['name'], item['url'], 110, item['thumb'])
    if scraper.nextpage:
        addDir(title_nextpage, scraper.nextpage, 103, '')
Exemple #3
0
def PREMIER_LIST(url):
    from gomtv_movie_scraper import gommovie_scraper 
    scraper = gommovie_scraper()
    for item in scraper.parsePremierPage(url):
        addDir(item['name'], item['url'], 110, item['thumb'])
    if scraper.nextpage:
        addDir(title_nextpage, scraper.nextpage, 107, '')
Exemple #4
0
def MOVIE_HOTCLIP(main_url):
    from gomtv_movie_scraper import gommovie_scraper 
    scraper = gommovie_scraper()
    for item in scraper.parseHotClipPage(url):
        addDir(item['name'], item['url'], 110, item['thumb'])
    if scraper.nextpage:
        addDir(title_nextpage, scraper.nextpage, 101, '')
Exemple #5
0
def MOVIE_LIST(url):
    if url.endswith("cateid=44") or url.endswith("cateid=189"):
        child_fid = 102  # sub table
    else:
        child_fid = 110  # movie page

    from gomtv_movie_scraper import gommovie_scraper 
    scraper = gommovie_scraper()
    for item in scraper.parseMovieChartPage(url):
        addDir(item['name'], item['url'], child_fid, item['thumb'])
    if scraper.nextpage:
        addDir(title_nextpage, scraper.nextpage, 102, '')