コード例 #1
0
def CheckVersion():
   try:        
    curver=xbmc.translatePath(os.path.join('special://home/addons/plugin.video.moviedb/','addon.xml'))    
    source= open( curver, mode = 'r' )
    link = source . read( )
    source . close ( )
    match=re.compile('" version="(.+?)" name="Cliq!"').findall(link)
    for vernum in match:
            print 'Original Version is ' + vernum
    try:
        link=OPEN_URL('https://raw.githubusercontent.com/Blazetamer/cliqupdate/master/addon.xml')
    except:
        link='nill'

    link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','')
    match=re.compile('" version="(.+?)" name="Cliq!"').findall(link)
    if len(match)>0:
        if vernum != str(match[0]):
                dialog = xbmcgui.Dialog()
                confirm=xbmcgui.Dialog().yesno('[B]CLIQ Update Available![/B]', "                              Your version is outdated." ,'                    The current available version is '+str(match[0]),'                         Would you like to update now?',"Cancel","Update")
                #return False
                if confirm:
                        autoupdate.UPDATEFILES()
                return False
        else:
                return True
    
    else:
        return False
   except Exception:
        buggalo.onExceptionRaised()
コード例 #2
0
def TVINDEX (url):
   try:
        link = net.http_GET(url).content
        match=re.compile('<img src="(.+?)" class=".+?" alt=".+?"/></a><div class=".+?"><a href="(.+?)" title="(.+?)">(.+?)</a>').findall(link)
        if len(match) > 0:
         for sitethumb,url,movie_name,fullyear in match:
                
                inc = 0
                #movie_name = fullyear[:-6]
                year = fullyear[-6:]
                #movie_name = movie_name.decode('UTF-8','ignore')
              
                data = main.GRABTVMETA(movie_name,year)
                thumb = data['cover_url']               
                yeargrab = data['year']
                year = str(yeargrab)               

                favtype = 'tvshow'
                addMERDBDir(movie_name +'('+ year +')',basetv_url + url,'episodes',thumb,data,favtype)
                
                #main.addSDir(movie_name +'('+ year +')',basetv_url + url,'episodes',thumb,year,favtype)
                
         nmatch=re.compile('<span class="currentpage">.+?</span></li><li><a href="(.+?)">(.+?)</a></li><li>').findall(link)
         if len(nmatch) > 0: 
          for pageurl,pageno in nmatch:
                     
                main.addDir('Page'+ pageno,basetvshow_url + pageurl,'tvindex',artwork +'nextpage.jpg','','dir')
             
        main.AUTO_VIEW('tvshow')
   except Exception:
        buggalo.onExceptionRaised()
コード例 #3
0
def ILIVEMAIN():
     try:

               #addDir('Language','LANG','ilivelistslang',artwork+'/ilive.png','','')
               addDir('All','all','ilivelists',artwork+'/ilive.png','','')
               link=OPEN_URL('http://www.mobileonline.tv/index.php')
               match=re.compile('class="contentLink">(.+?)</a>').findall(link)
               for cats in match:
                    if 'Home' not in cats and 'Account' not in cats and 'Premium' not in cats :
                         addDir(cats,cats,'ilivelists',artwork+'/ilive.png','','')
               
               '''addDir('All','all','ilivelists',artwork+'/ilive.png','All English Streams available from iLive','')
               addDir('Animation','Animation','ilivelists',artwork+'/ilive.png','Animation Stream Listings','')
               addDir('Entertainment','Entertainment','ilivelists',artwork+'/ilive.png','All Entertainment Streams from iLive','')
               addDir('Family','Family','ilivelists',artwork+'/ilive.png','All Family Streams from iLive','')
               addDir('Gaming','Gaming','ilivelists',artwork+'/ilive.png','All Gaming Streams from iLive','')
               addDir('General','general','ilivelists',artwork+'/ilive.png','General Streams','')
               addDir('Life Casting','Life Casting','ilivelists',artwork+'/ilive.png','All Entertainment Streams from iLive','')
               addDir('Live Sports','Live Sport','ilivelists',artwork+'/ilive.png','Live Sports Streams from iLive','')
               addDir('Mobile','Mobile','ilivelists',artwork+'/ilive.png','Live Mobile Streams from iLive','')
               addDir('Movies','Movies','ilivelists',artwork+'/ilive.png','Movie Streams from iLive','')
               addDir('Music','Music','ilivelists',artwork+'/ilive.png','Current Listed Music Streams','')
               addDir('News','News','ilivelists',artwork+'/ilive.png','Current News Streams','')
               addDir('Radio','Radio','ilivelists',artwork+'/ilive.png','Live Radio Streams from iLive','')
               addDir('Religion','Religion','ilivelists',artwork+'/ilive.png','Live Sports Streams from iLive','')'''
               link=OPEN_URL('https://raw.githubusercontent.com/Blazetamer/commoncore/master/xbmchub/moviedb/streams/ilivemenu.xml').replace('\n','').replace('\r','')
               match=re.compile('<title>(.+?)</title><link>(.+?)</link><thumbnail>(.+?)</thumbnail><mode>(.+?)</mode><desc>(.+?)</desc>').findall(link)
               for name,url,thumb,mode,desc in match:
                     print 'Description is  ' + desc
                     addDir(name,url,mode,thumb,desc,thumb)               
               main.AUTO_VIEW('movies')
     except Exception:
        buggalo.onExceptionRaised()
コード例 #4
0
def ILIVEMAIN():
   try:        
        addDir('All(English)','allenglish','ilivelists',artwork+'/ilive.png','All English Streams available from iLive','')
        addDir('All','all','ilivelists',artwork+'/ilive.png','All English Streams available from iLive','')
        addDir('Animation','animation','ilivelists',artwork+'/ilive.png','Animation Stream Listings','')
        addDir('Entertainment(English)','entertainmentenglish','ilivelists',artwork+'/ilive.png','English Entertainment Streams from iLive','')
        addDir('Entertainment','entertainment','ilivelists',artwork+'/ilive.png','All Entertainment Streams from iLive','')
        addDir('General','general','ilivelists',artwork+'/ilive.png','General Streams','')
        addDir('Movies','movies','ilivelists',artwork+'/ilive.png','Movie Streams from iLive','')
        addDir('Music','music','ilivelists',artwork+'/ilive.png','Current Listed Music Streams','')
        addDir('News','news','ilivelists',artwork+'/ilive.png','Current News Streams','')
        addDir('Sports(English)','sportsenglish','ilivelists',artwork+'/ilive.png','Live English Sports Streams from iLive','')
        addDir('Sports','sports','ilivelists',artwork+'/ilive.png','Live Sports Streams from iLive','')
        link=OPEN_URL('https://raw.githubusercontent.com/Blazetamer/commoncore/master/xbmchub/moviedb/streams/ilivemenu.xml').replace('\n','').replace('\r','')
        match=re.compile('<title>(.+?)</title><link>(.+?)</link><thumbnail>(.+?)</thumbnail><mode>(.+?)</mode><desc>(.+?)</desc>').findall(link)
        for name,url,thumb,mode,desc in match:
                print 'Description is  ' + desc
                addDir(name,url,mode,thumb,desc,thumb)
#Start Tester Phase===========================================
        '''link=OPEN_URL('http://addonrepo.com/tester.xml').replace('\n','').replace('\r','')
        match=re.compile('<title>(.+?)</title><link>(.+?)</link><thumbnail>(.+?)</thumbnail><mode>(.+?)</mode><desc>(.+?)</desc>').findall(link)
        for name,url,thumb,mode,desc in match:
                print 'Description is  ' + desc
                addDir(name,url,mode,thumb,desc,thumb)'''
#END Tester Phase===============================================                
        main.AUTO_VIEW('movies')
   except Exception:
        buggalo.onExceptionRaised()
コード例 #5
0
ファイル: epornik.py プロジェクト: nek0316/Repo
def PORNRESOLVE(name,url,thumb):
   try:        
     meta = 0
     hmf = urlresolver.HostedMediaFile(url)
     host = ''
     if hmf:
          url = urlresolver.resolve(url)
          host = hmf.get_host()
     
             
     params = {'url':url, 'name':name, 'thumb':thumb}
     if meta == 0:
          addon.add_video_item(params, {'title':name}, img=thumb)
          liz=xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=thumb)

     else:
          addon.add_video_item(params, {'title':name}, img=meta['cover_url'])
          liz=xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=meta['cover_url'])
          liz.setInfo('video',infoLabels=meta)

     xbmc.sleep(1000)
        
     xbmc.Player ().play(url, liz, False)
   except Exception:
        buggalo.onExceptionRaised()     
コード例 #6
0
ファイル: phub.py プロジェクト: nek0316/Repo
def PHCATEGORIES():
   try:        
    
    addDir('Amature Video','http://www.pornhub.com/video?c=3','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/3.jpg')
    addDir('Bi-Sexual','http://www.pornhub.com/video?c=76','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/76.jpg')
    addDir('Bondage','http://www.pornhub.com/video?c=10','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/10.jpg')
    addDir('Big T**s','http://www.pornhub.com/video?c=8','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/8.jpg')
    addDir('Threesome','http://www.pornhub.com/video?c=65','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/65.jpg')
    addDir('Celebrity','http://www.pornhub.com/video?c=12','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/12.jpg')
    addDir('Pornstar','http://www.pornhub.com/video?c=30','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/30.jpg')
    addDir('Female Friendly','http://www.pornhub.com/video?c=73','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/73.jpg')
    addDir('Masturbation ','http://www.pornhub.com/video?c=22','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/22.jpg')
    addDir('Cumshots','http://www.pornhub.com/video?c=16','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/16.jpg')
    addDir('Toys','http://www.pornhub.com/video?c=23','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/23.jpg')
    addDir('College','http://www.pornhub.com/categories/college','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/79.jpg')
    addDir('Big Dick','http://www.pornhub.com/video?c=7','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/7.jpg')
    addDir('Ebony','http://www.pornhub.com/video?c=17','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/17.jpg')
    addDir('Gay','http://www.pornhub.com/gayporn','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/63.jpg')
    addDir('Japanese','http://www.pornhub.com/video?c=111','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/111.jpg')
    addDir('Lesbian ','http://www.pornhub.com/video?c=27','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/27.jpg')
    addDir('Latina','http://www.pornhub.com/video?c=26','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/26.jpg')
    addDir('Massage','http://www.pornhub.com/video?c=78','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/78.jpg')
    addDir('Interracial','http://www.pornhub.com/video?c=25','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/25.jpg')
    addDir('MILF','http://www.pornhub.com/video?c=29','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/29.jpg')
    addDir('Uniforms','http://www.pornhub.com/video?c=81','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/81.jpg')
    addDir('Webcam','http://www.pornhub.com/video?c=61','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/61.jpg')
    addDir('Search>>>','http://www.pornhub.com/video/search?search=','phsearch','')
    addDir('Top Rated','http://www.pornhub.com/video?o=tr','phindex','')
    addDir('All Videos','http://www.pornhub.com/video','phindex','')
    main.AUTO_VIEW('')
   except Exception:
        buggalo.onExceptionRaised()
コード例 #7
0
ファイル: chanufc.py プロジェクト: nek0316/Repo
def UFCLINKPAGE(url,name):
   try:        
        params = {'url':url, 'mode':mode, 'name':name, 'thumb':thumb, 'dlfoldername':dlfoldername,'mainimg':mainimg}
        inc = 0
        link = net.http_GET(url).content
        match=re.compile('rel="nofollow">(.+?)</a>').findall(link)
        for urls in match:  
            
                   
           if inc < 50:
                   hmf = urlresolver.HostedMediaFile(urls)
                  ##########################################
                   print 'URLS is ' +urls
                   if hmf:
                          #try:
                                  host = hmf.get_host()
                                  hthumb = main.GETHOSTTHUMB(host)
                                  favtype = 'movie'
                                  try:    
                                        main.addUFCDLDir(name,urls,'vidpage',hthumb,'','UFC',favtype,artwork + 'ufc.jpg')
                                        inc +=1
                                  except:
                                        continue
   except Exception:
        buggalo.onExceptionRaised()                                
コード例 #8
0
ファイル: sgate.py プロジェクト: nek0316/Repo
def SGINDEX (url):
   try:        
        link = net.http_GET(url).content
        match=re.compile('<a href = "(.+?)"><img src = "(.+?)" height=".+?/><div class = "_tvshow_title">(.+?)</div>').findall(link)
        if len(match) > 0:
         for url,sitethumb,name in match:
                
                inc = 0
                #movie_name = fullyear[:-6]
                #year = fullyear[-6:]
                #movie_name = movie_name.decode('UTF-8','ignore')
              
                data = main.GRABTVMETA(name,'')
                thumb = data['cover_url']               
                yeargrab = data['year']
                year = str(yeargrab)               
                dlfoldername = name
                favtype = 'tvshow'
                #main.addDir(name,url,'sgepisodelist',thumb,data,favtype)
                main.addDir(name,basetv_url + url,'sgepisodelist',thumb,data,favtype)
                
                #main.addSDir(movie_name +'('+ year +')',basetv_url + url,'episodes',thumb,year,favtype)
                
         nmatch=re.compile('<span class="currentpage">.+?</span></li><li><a href="(.+?)">(.+?)</a></li><li>').findall(link)
         if len(nmatch) > 0: 
          for pageurl,pageno in nmatch:
                     
                main.addDir('Page'+ pageno,basetv_url + pageurl,'sgindex',artwork +'nextpage.jpg','','dir')
             
        main.AUTO_VIEW('movies')
   except Exception:
        buggalo.onExceptionRaised()
コード例 #9
0
ファイル: chia.py プロジェクト: nek0316/Repo
def CHIAALPH():
   try:        
     main.addDir('#','http://www.chia-anime.com/alpha/#','chiaalphmain',artwork+'anime/hash.jpg','','dir')
     main.addDir('A','http://www.chia-anime.com/alpha/A','chiaalphmain',artwork+'anime/a.jpg','','dir')
     main.addDir('B','http://www.chia-anime.com/alpha/B','chiaalphmain',artwork+'anime/b.jpg','','dir')
     main.addDir('C','http://www.chia-anime.com/alpha/C','chiaalphmain',artwork+'anime/c.jpg','','dir')
     main.addDir('D','http://www.chia-anime.com/alpha/D','chiaalphmain',artwork+'anime/d.jpg','','dir')
     main.addDir('E','http://www.chia-anime.com/alpha/E','chiaalphmain',artwork+'anime/e.jpg','','dir')
     main.addDir('F','http://www.chia-anime.com/alpha/F','chiaalphmain',artwork+'anime/f.jpg','','dir')
     main.addDir('G','http://www.chia-anime.com/alpha/G','chiaalphmain',artwork+'anime/g.jpg','','dir')
     main.addDir('H','http://www.chia-anime.com/alpha/H','chiaalphmain',artwork+'anime/h.jpg','','dir')
     main.addDir('I','http://www.chia-anime.com/alpha/I','chiaalphmain',artwork+'anime/i.jpg','','dir')
     main.addDir('J','http://www.chia-anime.com/alpha/J','chiaalphmain',artwork+'anime/j.jpg','','dir')
     main.addDir('K','http://www.chia-anime.com/alpha/K','chiaalphmain',artwork+'anime/k.jpg','','dir')
     main.addDir('L','http://www.chia-anime.com/alpha/L','chiaalphmain',artwork+'anime/l.jpg','','dir')
     main.addDir('M','http://www.chia-anime.com/alpha/M','chiaalphmain',artwork+'anime/m.jpg','','dir')
     main.addDir('N','http://www.chia-anime.com/alpha/N','chiaalphmain',artwork+'anime/n.jpg','','dir')
     main.addDir('O','http://www.chia-anime.com/alpha/O','chiaalphmain',artwork+'anime/o.jpg','','dir')
     main.addDir('P','http://www.chia-anime.com/alpha/P','chiaalphmain',artwork+'anime/p.jpg','','dir')
     main.addDir('Q','http://www.chia-anime.com/alpha/Q','chiaalphmain',artwork+'anime/q.jpg','','dir')
     main.addDir('R','http://www.chia-anime.com/alpha/R','chiaalphmain',artwork+'anime/r.jpg','','dir')
     main.addDir('S','http://www.chia-anime.com/alpha/S','chiaalphmain',artwork+'anime/s.jpg','','dir')
     main.addDir('T','http://www.chia-anime.com/alpha/T','chiaalphmain',artwork+'anime/t.jpg','','dir')
     main.addDir('U','http://www.chia-anime.com/alpha/U','chiaalphmain',artwork+'anime/u.jpg','','dir')
     main.addDir('V','http://www.chia-anime.com/alpha/V','chiaalphmain',artwork+'anime/v.jpg','','dir')
     main.addDir('W','http://www.chia-anime.com/alpha/W','chiaalphmain',artwork+'anime/w.jpg','','dir')
     main.addDir('X','http://www.chia-anime.com/alpha/X','chiaalphmain',artwork+'anime/x.jpg','','dir')
     main.addDir('Y','http://www.chia-anime.com/alpha/Y','chiaalphmain',artwork+'anime/y.jpg','','dir')
     main.addDir('Z','http://www.chia-anime.com/alpha/Z','chiaalphmain',artwork+'anime/z.jpg','','dir')
          
        
     main.AUTO_VIEW('')
   except Exception:
        buggalo.onExceptionRaised()     
コード例 #10
0
ファイル: chia.py プロジェクト: nek0316/Repo
def CHIAGENRES(url):
   try:        
     genreurl = 'http://www.chia-anime.com/?genre='
     main.addDir('Adventure',genreurl + 'adventure','chiagenremain',artwork+'/anime/adventure.jpg','','dir')
     main.addDir('Comedy',genreurl + 'comedy','chiagenremain',artwork+'/anime/comedy.jpg','','dir')
     main.addDir('Drama',genreurl + 'drama','chiagenremain',artwork+'/anime/drama.jpg','','dir')
     main.addDir('Erotica',genreurl + 'erotica','chiagenremain',artwork+'/anime/erotica.jpg','','dir')
     main.addDir('Fantasy',genreurl + 'fantasy','chiagenremain',artwork+'/anime/fantasy.jpg','','dir')
     main.addDir('Horror',genreurl + 'horror','chiagenremain',artwork+'/anime/horror.jpg','','dir')
     main.addDir('Mystery',genreurl + 'mystery','chiagenremain',artwork+'/anime/mystery.jpg','','dir')
     main.addDir('Romance',genreurl + 'romance','chiagenremain',artwork+'/anime/romance.jpg','','dir')
     main.addDir('Thriller',genreurl + 'thriller','chiagenremain',artwork+'/anime/thriller.jpg','','dir')
     main.addDir('Ninja',genreurl + 'ninga','chiagenremain',artwork+'/anime/ninja.jpg','','dir')
     main.addDir('Military',genreurl + 'milatary','chiagenremain',artwork+'/anime/military.jpg','','dir')
     main.addDir('Space',genreurl + 'space','chiagenremain',artwork+'/anime/space.jpg','','dir')
     main.addDir('Aliens',genreurl + 'aliens','chiagenremain',artwork+'/anime/aliens.jpg','','dir')
     main.addDir('Music',genreurl + 'music','chiagenremain',artwork+'/anime/music.jpg','','dir')
     main.addDir('Sports',genreurl + 'sports','chiagenremain',artwork+'/anime/sports.jpg','','dir')
     main.addDir('Demons',genreurl + 'demons','chiagenremain',artwork+'/anime/demons.jpg','','dir')
     main.addDir('Girls with Guns',genreurl + 'girls+with+guns','chiagenremain',artwork+'/anime/girlswithguns.jpg','','dir')
     main.addDir('Supernatural',genreurl + 'supernatural','chiagenremain',artwork+'/anime/supernatural.jpg','','dir')
     main.addDir('Police',genreurl + 'police','chiagenremain',artwork+'/anime/police.jpg','','dir')
     main.addDir('Vampires',genreurl + 'vampires','chiagenremain',artwork+'/anime/vampires.jpg','','dir')
     main.addDir('Super Powers',genreurl + 'superpowers','chiagenremain',artwork+'/anime/superpowers.jpg','','dir')
     main.addDir('Assassins',genreurl + 'assassins','chiagenremain',artwork+'/anime/assasins.jpg','','dir')
     main.addDir('Historical',genreurl + 'historical','chiagenremain',artwork+'/anime/historical.jpg','','dir')
     main.addDir('School',genreurl + 'school','chiagenremain',artwork+'/anime/school.jpg','','dir')
     main.addDir('Psychological',genreurl + 'psychological','chiagenremain',artwork+'/anime/psych.jpg','','dir')
     main.addDir('Martial Arts',genreurl + 'martial+arts','chiagenremain',artwork+'/anime/martialarts.jpg','','dir')
         
     main.AUTO_VIEW('')
   except Exception:
        buggalo.onExceptionRaised()     
コード例 #11
0
ファイル: phub.py プロジェクト: nek0316/Repo
def EMBED(url,name):
   try:        
        link=OPEN_URL(url)
        match=re.compile('data-src="(.+?)" poster="(.+?)"').findall(link)
        for url,iconimage in match:
                 addLink(name,url,iconimage)
   except Exception:
        buggalo.onExceptionRaised()                
コード例 #12
0
ファイル: phub.py プロジェクト: nek0316/Repo
def PHVIDEOLINKS(url,name):
   try:        
        link=OPEN_URL(url)
        match=re.compile('iframe src=&quot;(.+?)&quot;').findall(link)
        for url in match:
                 EMBED(url,name)
   except Exception:
        buggalo.onExceptionRaised()
コード例 #13
0
def CHECK_POPUP():
   try:
        if settings.getSetting('announce') == 'true':          
                        SPECIALANN()
        if settings.getSetting('announce') == 'false':                
                        CATEGORIES('false')
   except Exception:
        buggalo.onExceptionRaised()                
コード例 #14
0
ファイル: sgate.py プロジェクト: nek0316/Repo
def SGCATS():
   try:        
          main.addDir('All Series Gate TV Shows','http://seriesgate.me/tvshows/','sgindex',artwork + 'all.jpg','','dir')
          main.addDir('[COLOR gold]Search TV Shows[/COLOR]','http://seriesgate.me/search/indv_episodes/','searchsgtv',artwork + 'search.jpg','','dir')
          
          main.AUTO_VIEW('')    
   except Exception:
        buggalo.onExceptionRaised()
コード例 #15
0
def EMBED(url,name):
   try:        
        link=OPEN_URL(url).replace('\r','').replace('\n','').replace('\t','')
        #match=re.compile('data-src="(.+?)" poster="(.+?)"').findall(link)
        match=re.compile("video : {src: \'(.+?)',poster: \'(.+?)'").findall(link)
        for url,iconimage in match:
                 addLink(name,url,iconimage)
   except Exception:
        buggalo.onExceptionRaised()                
コード例 #16
0
ファイル: chia.py プロジェクト: nek0316/Repo
def CHIACATS():
   try:    
     main.addDir('Latest Anime Episodes','http://www.chia-anime.com/','chialatest',artwork+'anime/latestepisodes.jpg','','dir')
     main.addDir('Anime by Genres','none','chiagenres',artwork+'anime/genre.jpg','','dir')
     main.addDir('A-Z','none','chiaalph',artwork+'anime/a-z.jpg','','dir')
     main.addDir('Search Anime ','http://www.chia-anime.com/search/','searchanime',artwork +'anime/search.jpg','','dir')     
     main.AUTO_VIEW('')
   except Exception:
        buggalo.onExceptionRaised()     
コード例 #17
0
def COMMONSTREAMS(url):
   try:        
        link=OPEN_URL(url).replace('\n','').replace('\r','')
        match=re.compile('<title>(.+?)</title><link>(.+?)</link><thumbnail>(.+?)</thumbnail>').findall(link)
        for name,url,thumb in match:
                addDir(name,url,'livecatslist',thumb,'',thumb)                        
        main.AUTO_VIEW('movies')
   except Exception:
        buggalo.onExceptionRaised()
コード例 #18
0
ファイル: phub.py プロジェクト: nek0316/Repo
def PHINDEX(url):
   try:
    link=OPEN_URL(url)
    match=re.compile('href="(.+?)" title="(.+?)" class=".+?" data-related-url=".+?">\r\n\t\t\t\t\t\t\t\t\t<div class=".+?">\r\n\t\t\t\t<var class=".+?">.+?</var>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t<img src=".+?" alt=".+?" data-smallthumb=".+?" data-mediumthumb="(.+?)"').findall(link)
    for url, name,thumb in match:
            addDir(name,baseurl + url,'phvideolinks',thumb)
    main.AUTO_VIEW('movies')
   except Exception:
        buggalo.onExceptionRaised()
コード例 #19
0
ファイル: chanufc.py プロジェクト: nek0316/Repo
def CHANUFCCATS():
   try:
    
          main.addDir('UFC [COLOR red](ChannelCut)[/COLOR]','http://www.channelcut.me/?s=ufc&searchsubmit=Search','chanufcindex',artwork + 'ufc.jpg','','dir')
          
          
          main.AUTO_VIEW('')
   except Exception:
        buggalo.onExceptionRaised()          
コード例 #20
0
ファイル: chia.py プロジェクト: nek0316/Repo
def CHIALINKPAGE(url,name,thumb):
   try:        
     params = {'url':url, 'mode':mode, 'name':name, 'thumb':thumb}
     link = net.http_GET(url).content
     matchsource = re.compile('class="bttn green" href="(.+?)">Save mp4 as Link</a>').findall(link)
     for url in matchsource:
          CHIARESOLVE(name,url,thumb)
   except Exception:
        buggalo.onExceptionRaised()          
コード例 #21
0
ファイル: chia.py プロジェクト: nek0316/Repo
def CHIAVIDPAGE(url,name):
   try:        
     link = net.http_GET(url).content
     matchvid=re.compile('Watch via Mobile</font></a><a id="download" target="_blank" href="(.+?)">.+?MP4 Video format').findall(link)
     for url in matchvid:
          addCHIADLDir(name,url,'chialinkpage',thumb,'','','','')
          main.AUTO_VIEW('movies')
   except Exception:
        buggalo.onExceptionRaised()          
コード例 #22
0
ファイル: chia.py プロジェクト: nek0316/Repo
def CHIAALPHMAIN(url):
   try:        
     link = net.http_GET(url).content
     match=re.compile('<img width=".+?" height=".+?" src="(.+?)"></a></p></div></td><div style="width:.+?; float:.+?;"><td class=".+?" style=".+?; overflow:.+?;"><div style="height:.+?; width:.+?;"><div style=".+?;"><a href="(.+?)" title="(.+?)">').findall(link)
     for thumb,url,name in match:
          name = name.replace('View all episode in','')
          main.addDir(name,url,'chiaepisodes',thumb,'','')
          main.AUTO_VIEW('movies')
   except Exception:
        buggalo.onExceptionRaised()          
コード例 #23
0
ファイル: chia.py プロジェクト: nek0316/Repo
def CHIASEARCH(url):
   try:        
     link = net.http_GET(url).content
     match=re.compile('<img style="padding-left:0px;" width="135" height="190" src="(.+?)"></a></div><div class="title"><a href="(.+?)">(.+?)</a></div>').findall(link)
     for thumb,url,name in match:
          #name = name.replace('View all episode in','')
          main.addDir(name,url,'chialinkpage',thumb,'','')
          main.AUTO_VIEW('movies')
   except Exception:
        buggalo.onExceptionRaised()          
コード例 #24
0
ファイル: chia.py プロジェクト: nek0316/Repo
def CHIAGENREMAIN(url):
   try:        
     link = net.http_GET(url).content
     match=re.compile('overflow:hidden;"> <a href="(.+?)" title="(.+?)"><img width=".+?" height=".+?" src="(.+?)"></a>').findall(link)
     for url,name,thumb in match:
          name = name.replace('View all episode in','')
          main.addDir(name,url,'chiaepisodes',thumb,'','')
          main.AUTO_VIEW('movies')
   except Exception:
        buggalo.onExceptionRaised()          
コード例 #25
0
def VIEWSTFAVS():
   try:        
     addDir('[COLOR blue]Favorites[/COLOR]','none','viewstfavs',artwork +'playfavs.jpg','','')
     queue = standardstreamcache.get('queue')
     if queue:
          queue_items = sorted(eval(queue), key=lambda item: item[1])
          print queue_items
          for item in queue_items:
               addSTRemoveDir(item[0],item[1],item[3],item[2],'')
   except Exception:
        buggalo.onExceptionRaised()
コード例 #26
0
ファイル: chia.py プロジェクト: nek0316/Repo
def CHIALATEST(url):
   try:        
     link = net.http_GET(url).content
     match=re.compile('<h3><a href="(.+?)" rel="bookmark" title="(.+?)">.+?</a></h3></div></center><div><span class="video-episode">.+?</span></div><div class="thumb" style="background: #000 url(.+?) no-repeat').findall(link)
     for url,name,thumb in match:
          thumb = thumb.replace('(','')
          thumb = thumb.replace(')','')
          main.addDir(name,url,'chiavidpage',thumb,'','')
          main.AUTO_VIEW('movies')
   except Exception:
        buggalo.onExceptionRaised()          
コード例 #27
0
def LIVECATS(url):
   try:        
        link=OPEN_URL(url).replace('\n','').replace('\r','')
        match=re.compile('<title>(.+?)</title><link>(.+?)</link><thumbnail>(.+?)</thumbnail><mode>(.+?)</mode><desc>(.+?)</desc>').findall(link)
        for name,url,thumb,mode,desc in match:
                print 'Description is  ' + desc
                addDir(name,url,mode,thumb,desc,thumb)
        #addDir('User Submitted Playlists' ,'http://goo.gl/JQzOhw','database',artwork +'submitted.jpg','User Submitted Playlists ',fanart)        
        main.AUTO_VIEW('movies')
   except Exception:
        buggalo.onExceptionRaised()        
コード例 #28
0
def RESOLVER(url,name):
   try:        
        dlfoldername = name                            
        urls = url
        hmf = urlresolver.HostedMediaFile(urls)
        if hmf:
                host = hmf.get_host()
                dlurl = urlresolver.resolve(urls)
                ILIVERESOLVE(name,dlurl,'')
                                  
   except Exception:
        buggalo.onExceptionRaised()
コード例 #29
0
def MERDBTVCATS():
   try:    
          main.addDir('All TV Shows','http://www.merdb.cn/tvshow/index.php','tvindex',artwork + 'all.jpg','','dir')
          main.addDir('Featured TV Shows','http://www.merdb.ru/tvshow/?sort=featured','tvindex',artwork + 'featured.jpg','','dir')
          main.addDir('TV Shows by Popularity','http://www.merdb.ru/tvshow/?featured=1&sort=views','tvindex',artwork + 'popular.jpg','','dir')
          main.addDir('TV Shows by Rating','http://www.merdb.ru/tvshow/?featured=1&sort=ratingp','tvindex',artwork + 'rating.jpg','','dir')
          main.addDir('TV Shows by Release Date','http://www.merdb.ru/tvshow/?sort=year','tvindex',artwork + 'releasedate.jpg','','dir')
          main.addDir('TV Shows by Date Added','http://www.merdb.ru/tvshow/?sort=stamp','tvindex',artwork + 'dateadded.jpg','','dir')
          main.addDir('[COLOR gold]Search TV Shows[/COLOR]','http://www.merdb.ru/tvshow/?search=','searchtv',artwork + 'search.jpg','','dir')
          
          main.AUTO_VIEW('')    
   except Exception:
        buggalo.onExceptionRaised()
コード例 #30
0
def SEARCHLINKS(urllist):                 
   try:        
                link=OPEN_URL(urllist)
                link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','')
                match=re.compile('src=".+?" alt=".+?<img width=".+?" height=".+?" src="([^<]+)" alt=".+?"/></noscript></a><a href="(.+?)"><strong>(.*?)</strong></a><br/>').findall(link)
                if len(match) > 0:
                        for thumb,url,name in match:
                                addSTFavDir(name,url,'iliveplaylink',thumb,'','', isFolder=False, isPlayable=True)
                                  
                else:
                        addDir('[COLOR red]None Found Try again[/COLOR]','http://www.ilive.to/channels/?q=','searchilive','','','')
   except Exception:
        buggalo.onExceptionRaised()