Пример #1
0
def LINKMODE(mname,murl,thumb):
        #print "LINKMODE thumb IS "+thumb 
        thumb = thumb
        namelist=[]
        urllist=[]
        playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
        playlist.clear()
        if '.f4m'in murl:
                from resources.mobules import F4mProxy
                player=F4mProxy.f4mProxyHelper()
                proxy=None
                use_proxy_for_chunks=False
                player.playF4mLink(murl, mname, proxy, use_proxy_for_chunks,'',thumb)
                
        else:
                if '</regex>'in murl: 
                        murl=main.doRegex(murl)        
                        '''match=re.compile('<sublink>(.+?)</sublink>').findall(murl)
                        if match:
                                i=1
                                for url in match:
                                        if getinfo == 'true':        
                                                inc = 0
                                                movie_name = mname[:-6]
                                                year = mname[-6:]
                                                movie_name = movie_name.decode('UTF-8','ignore')
                                              
                                                data = main.GRABMETA(movie_name,year)
                                                thumb = data['cover_url']               
                                                yeargrab = data['year']
                                                year = str(yeargrab)               
                                        if getinfo == 'false':
                                          data = nonMetaInfo
                                  
                                        name= mname+ " Link "+str(i)
                                        namelist.append(name)        
                                        urllist.append(url)
                                        i=i+1
                                main.addDLDir(name,url,'liveresolver',thumb,fanart,'','',data)'''
                                
                else:
                  stream_url = murl
                  urls = murl
                  stream_url=resolvers.resolve_url(murl)
                  xbmc.sleep(1000)
                  LIVERESOLVE(mname,stream_url,thumb)
Пример #2
0
def LIVERESOLVER(name,url,thumb):
        stream_url = url
        urls = url
        stream_url=resolvers.resolve_url(url)
        xbmc.sleep(1000)
        LIVERESOLVE(name,stream_url,thumb)