def getsearchurl(self): try: magneturls = get_storage('magneturls') magneturls[self.name] = 'http://www.btmovi.org' magneturls.sync() return jubturl = 'https://jubt.gq/' rsp = _http('https://jubt.gitlab.io/home/') for match in re.finditer( r"\x3Ctd\x3E\s*\x3Ca\s+href\x3D[\x22\x27](?P<url>.*?)[\x22\x27]", rsp, re.IGNORECASE | re.DOTALL): if url_is_alive(match.group('url')): jubturl = match.group('url') break rsp = _http(jubturl + '/cn/index.html') match = re.search( r"window\x2Eopen\x28(?:\x26\x2334\x3B)?(?P<url>(?:http|https)\x3A[\w\x2E\x2F]*?)(?:\x26\x2334\x3B)?\x2C(?:\x26\x2334\x3B)?(?:(?!window).)*?strong\x3E磁力蜘蛛\s*\x7C.*?\x3C\x2Fdiv\x3E", rsp, re.IGNORECASE | re.DOTALL) if match: magneturls[self.name] = [ match.group('url').strip().rstrip('/') ] else: magneturls[self.name] = 'http://www.btmovi.org' magneturls.sync() except: xbmc.log(msg=format_exc(), level=xbmc.LOGERROR)
def jubt(): jubturl = 'https://jubt.gq/' try: rsp = _http('https://jubt.gitlab.io/home/') for match in re.finditer( r"\x3Ctd\x3E\s*\x3Ca\s+href\x3D[\x22\x27](?P<url>.*?)[\x22\x27]", rsp, re.IGNORECASE | re.DOTALL): if url_is_alive(match.group('url')): jubturl = match.group('url') break return _http(jubturl) except: xbmc.log(msg=format_exc(), level=xbmc.LOGERROR) return ''
def freepv(movieid=''): videourl='' subpath=xbmc.translatePath( os.path.join( __cwd__, 'sample.m3u8') ) if movieid[0:3]=='bb,': (bb,studio,movid)=six.ensure_text(movieid).split(',') if studio=='HEYZO': ''' (unuse,movid2)=movid.split('-') videourl=subpath videodata=_http('http://hls.heyzo.com/sample/3000/%s/ts.sample.mp4.m3u8'%(movid2),referer='http://www.heyzo.com/js_v2/vendor/jwplayer/7.12.8/jwplayer.flash.swf') with open(subpath, "wb") as sampleFile: for line in videodata.splitlines(): if line[0:1]=='/': sampleFile.write('http://hls.heyzo.com'+line+os.linesep) else: sampleFile.write(line+os.linesep) sampleFile.close() ''' (unuse,movid2)=movid.split('-') videourl='http://sample.heyzo.com/contents/3000/%s/sample.mp4'%(movid2) elif studio=='一本道': videourl='http://smovie.1pondo.tv/sample/movies/%s/1080p.mp4'%(movid) elif studio=='カリビアンコム': videourl='https://m.caribbeancom.com/samplemovies/%s/1080p.mp4'%(movid) elif studio=='天然むすめ': videourl='http://smovie.10musume.com/sample/movies/%s/1080p.mp4'%(movid) elif studio=='パコパコママ': videourl='http://smovie.pacopacomama.com/sample/movies/%s/1080p.mp4'%(movid) elif studio=='東京熱': videodata=_http('http://www.tokyo-hot.com/product/?q=%s'%(movid)) match = re.search(r'[\x22\x27]\x2Fproduct\x2F(?P<no>[^\s]+?)\x2F[\x22\x27]', videodata, re.DOTALL | re.MULTILINE) if match: movid2 = match.group('no') #plugin.notify(movid2) videodata=_http('http://www.tokyo-hot.com/product/%s/'%(movid2)) match2 = re.search(r'mp4[\x22\x27]\s+src\s*=\s*[\x22\x27](?P<src>.*?mp4)[\x22\x27]', videodata, re.DOTALL | re.MULTILINE) if match2: videourl = match2.group('src') #if studio=='キャットウォーク': else: videourl='http://www.aventertainments.com/newdlsample.aspx?site=ppv&whichone=ppv/mp4/DL%s.mp4|Referer=http://www.aventertainments.com/product_lists.aspx'%(movid) #if not comm.url_is_alive(videourl): # videourl='' else: for mid in [movieid,movieid[0:-5]+movieid[-3:]]: id1c=mid[0:1] id3c=mid[0:3] for stm in ['_dmb_w','_dm_w','_sm_w','_dmb_s','_dm_s','_sm_s']: videourltemp='http://cc3001.dmm.co.jp/litevideo/freepv/%s/%s/%s/%s%s.mp4'%(id1c,id3c,mid,mid,stm) #xbmc.log(videourltemp) if url_is_alive(videourltemp): videourl=videourltemp break if videourl!='': break; if videourl!='': plugin.set_resolved_url(videourl) else: plugin.notify('未找到预告片') return
def getjavbusurl(): javbusurl['existmag'] = 'all' urls = [] oldurls = plugin.get_setting('javbusfb').lower().split(';') for url in oldurls: if url_is_alive(url): urls.append(url.strip().rstrip('/')) if len(urls) <= 0: rsp = comm.jubt() match = re.search( r"window\x2Eopen\x28[\x22\x27](?P<url>(?:http|https)\x3A[\w\x2E\x2F]*?)[\x22\x27](?:(?!window).)*?strong\x3EJavBus\s*\x7C.*?\x3C\x2Fdiv\x3E", rsp, re.IGNORECASE | re.DOTALL) if match: urls = [match.group('url').strip().rstrip('/')] if len(urls) > 0: #notify(urls[0]) rsp = _http(urls[0]) for match in re.finditer( r"[\x22\x27]nofollow[\x22\x27]\x3E(?P<url>(?:http|https)\x3A[\w\x2E\x2F]*?)\x3C\x2Fa\x3E", rsp, re.IGNORECASE | re.DOTALL): urls.append(match.group('url')) match = re.search( r"href\x3D[\x22\x27](?P<url>(?:http|https)\x3A[\w\x2E\x2F]*?)[\x22\x27]\x3E歐美", rsp, re.IGNORECASE | re.DOTALL) if match: plugin.set_setting('javbusom', match.group('url').strip().rstrip('/')) if len(urls) <= 0: notify('JAVBUS网址更新失败!') else: javbusfb = '' urls = list(set(urls)) for url in urls: javbusfb += url + ';' plugin.set_setting('javbusfb', javbusfb) urls = [] for url in plugin.get_setting('javbusfb').lower().split(';'): urls.append(url.strip()) try: dialog = xbmcgui.Dialog() sel = dialog.select('网址选择', urls) if sel == -1: return javbusurl['base'] = urls[sel] javbusurl['qb'] = urls[sel] javbusurl['bb'] = urls[sel] + '/uncensored' javbusurl['om'] = plugin.get_setting('javbusom').lower() ''' rspbase=_http(javbusurl['base']+'/') match = re.search(r'visible-sm-block.*?href="([0-9a-zA-Z\x2E\x2F\x3A]*?)/">歐美', rspbase, re.DOTALL | re.MULTILINE) if match: javbusurl['om'] = match.group(1) notify('JAVBUS网址更新成功!') ''' except: xbmc.log(msg=format_exc(), level=xbmc.LOGERROR) notify('JAVBUS网址更新失败') javbusurl['om'] = plugin.get_setting('javbusom').lower()