Exemple #1
0
def NINEMAINLOCAL():
     customstream =settings.getSetting('local_file')
     customname =settings.getSetting('local_custom_name')
     if customname =='':
          customname= 'Custom Local Stream'
     if customstream =='':
                dialog = xbmcgui.Dialog()
                ok = dialog.ok('Source Not Set', '               Please Choose Custom Tab and Add Source')
                if ok:
                        LogNotify('Choose Custom Tab ', 'Add Local Source & Name', '5000', 'https://raw.githubusercontent.com/Blazetamer/commoncore/master/xbmchub/moviedb/showgunart/images/icon.png')        
                        print 'Source Not Set!'
                        addon.show_settings()
     else:     
          
        live.addDir(customname,customstream,'ninelocallists','','Your Own Custom Playlist','')
        
        main.AUTO_VIEW('movies')                 
Exemple #2
0
def NINETOOLS():
     live.addDir('URL Tester' ,'none','addfile','','Test your playable url','')
     #live.addDir('Developer Testing Tester' ,'none ','ninelists','','Dev Testing Mode','')
     #live.addDir('User Playlists From WEB' ,'none','userdatabase','','','')
     live.addDir('Playlist Tester' ,'none','addplaylist','','Test your Playlist','')
     live.addDir('[COLOR gold]Whats My IP[/COLOR]','none','myip',artwork +'myip.png','','dir')
     main.AUTO_VIEW('movies')
Exemple #3
0
def NINELISTSOLD(url):

     link=OPEN_URL(url).replace('\n','').replace('\r','')
     #===============Info/Messages========================
     match=re.compile('<info>(.+?)</info>').findall(link)
     for name in match:
          live.addDir(name,'','ninelists','','','')
     match=re.compile('<name>(.+?)</name><thumbnail>(.+?)</thumbnail><link>(.+?)</link>').findall(link)
     for name,thumb,url in match:
          live.addDir(name,url,'ninelists',thumb,'',thumb)
     match=re.compile('<title>(.+?)</title><link>(.+?)</link><thumbnail>(.+?)</thumbnail>').findall(link)
     for name,url,thumb in match:
          live.addSTFavDir(name,url,'nineresolver',thumb,'','',isFolder=False, isPlayable=True)     
     match=re.compile('<name>(.+?)</name><link>(.+?)</link><thumbnail>(.+?)</thumbnail>').findall(link)
     for name,url,thumb in match:
          live.addDir(name,url,'ninelists',thumb,'',thumb)
     if '<poster>schedule' in link:
          match=re.compile('<name>(.+?)</name>').findall(link)
          for name in match:
               live.addDir(name,'','ninelists','','','')
Exemple #4
0
def PLAYLISTDATA(url):
     print 'KEYTYPE IS '+ url
     key = url
     regex = '<name>(.+?)</name><link>(.+?)</link><type>(.+?)</type>'
     if 'new' in key:
          link=OPEN_URL('http://cliqaddon.com/cliqpldbnewest.php').replace('\n','').replace('\r','')
          match=re.compile(regex).findall(link)
          for name,url,keytype in match:
               live.addDir(name,url,'ninelists','','','')

     if 'other' in key:
          link=OPEN_URL('http://cliqaddon.com/cliqpldbother.php').replace('\n','').replace('\r','')
          match=re.compile(regex).findall(link)
          for name,url,keytype in match:
               live.addDir(name,url,'ninelists','','','')          
     else:     
          print 'REGEX IS '+ regex
          link=OPEN_URL('http://cliqaddon.com/cliqpldb.php').replace('\n','').replace('\r','')
          #link=OPEN_URL('cliqaddon.com/cliqpldbtest.php').replace('\n','').replace('\r','')
          
          match=re.compile(regex).findall(link)
          for name,url,keytype in match:
               if key in keytype:
                    live.addDir(name,url,'ninelists','','','')
Exemple #5
0
def DATABASE(url):

     link=OPEN_URL(url).replace('\n','').replace('\r','')        
     match=re.compile('<name>(.+?)</name><link>(.+?)</link>').findall(link)
     for name,url in match:
          live.addDir(name,url,'ninelists','','','')
Exemple #6
0
def NINEINDEX():       
     live.addDir('External Stream File' ,'none','ninemain','','Your Own Custom Playlist','')
     live.addDir('Local Stream File' ,'none','ninemainlocal','','Your Own Local Playlist','')               
     main.AUTO_VIEW('movies')
Exemple #7
0
def ADDPLAYLIST():
     vq = _get_keyboard( heading="Add your Playlist URL" )
     if ( not vq ): return False, 0
     url = vq  
     print "Playlist URL: " + url 
     live.addDir('Click to Try Playlist',url,'ninelists','','','')   
Exemple #8
0
def NINELISTS(url):

     #link=OPEN_URL(url).replace('\n','').replace('\r','')
     link=OPEN_URL(url)
               
     #===============Info/Messages========================
                    
     match=re.compile('<info>(.+?)</info>',re.DOTALL).findall(link)
     for name in match:
          live.addDir(name,'','ninelists','','','')
     match=re.compile('<name>(.+?)</name>.+?<link>(.+?)</link>.+?<thumbnail>(.+?)</thumbnail>',re.DOTALL).findall(link)
     for name,url,thumb in match:
          live.addDir(name,url,'ninelists',thumb,'',thumb)     
     match=re.compile('<name>(.+?)</name>.+?<thumbnail>(.+?)</thumbnail>.+?<link>(.+?)</link>',re.DOTALL).findall(link)
     for name,thumb,url in match:
          live.addDir(name,url,'ninelists',thumb,'',thumb)
     match=re.compile('<title>(.+?)</title>.+?<link>(.+?)</link>.+?<thumbnail>(.+?)</thumbnail>',re.DOTALL).findall(link)
     for name,url,thumb in match:
          if 'sublink' in url:
               live.addDir(name,url,'sublinks',thumb,'',thumb)
          if 'sublink' not in url:     
               live.addSTFavDir(name,url,'nineresolver',thumb,'','',isFolder=False, isPlayable=True)

     if '<poster>schedule' in link:
          match=re.compile('<message>(.+?)</message>').findall(link)
          for name in match:
               live.addDir(name,'','ninelists','','','')          
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#NAVI EXTREME SCraper+++++++++++++++++++++++++++++++++++++++               
     match=re.compile('\nname=(.+?)\nthumb=(.+?)\nURL=(.+?)\n').findall(link)
     for name, thumb,url in match:
       if 'www.navixtreme.com' in url:
            live.addDir(name,url,'ninelists',thumb,'',thumb)
       if 'www.navixtreme.com' not in url:
            live.addSTFavDir(name,url,'nineresolver',thumb,'','',isFolder=False, isPlayable=True)

     
         


     match3=re.compile('\nname=(.+?)\n.+?URL=(.+?)\n').findall(link)
     for name,url in match3:
       if 'www.navixtreme.com' in url:
            thumb = ''
            live.addDir(name,url,'ninelists',thumb,'',thumb)
       if 'www.navixtreme.com' not in url:
            thumb = ''
            live.addSTFavDir(name,url,'nineresolver',thumb,'','',isFolder=False, isPlayable=True)  


     match4=re.compile('\nname=(.+?)\nthumb=(.+?)\n.+?\nURL=(.+?)\n').findall(link)
     for name, thumb,url in match4:
       if 'www.navixtreme.com' in url:
            live.addDir(name,url,'ninelists',thumb,'',thumb)
       if 'www.navixtreme.com' not in url:
            live.addSTFavDir(name,url,'nineresolver',thumb,'','',isFolder=False, isPlayable=True)