def showHosters(): isTvshow = ParameterHandler().getValue('isTvshow') sUrl = ParameterHandler().getValue('entryUrl') hosters = [] if 'true' in isTvshow: sEpisodeNr = ParameterHandler().getValue('sEpisodeNr') sHtmlContent = cRequestHandler(sUrl).request() pattern = 'value="([^"]+)"[^>]data-seq="[^"]+"[^>]class="btn[^"]+">%s</button>' % sEpisodeNr.strip( ) isMatch, aResult = cParser.parse(sHtmlContent, pattern) else: sHtmlContent = cRequestHandler(sUrl).request() pattern = 'type="button"[^>]value="([^"]+)' isMatch, aResult = cParser.parse(sHtmlContent, pattern) if isMatch: for sType in aResult: oRequest = cRequestHandler(URL_HOSTER) oRequest.addParameters('ec', sType) oRequest.setRequestType(1) sHtmlContent = oRequest.request() pattern = '"([^"]+)"' isMatch, sUrl = cParser().parseSingleResult(sHtmlContent, pattern) sName = cParser.urlparse(sUrl) hoster = {'link': sUrl, 'name': sName} hosters.append(hoster) if hosters: hosters.append('getHosterUrl') return hosters
def showHosters(): sUrl = ParameterHandler().getValue('entryUrl') sHtmlContent = cRequestHandler(sUrl).request() pattern = '" src="([^"]+)" f' isMatch, aResult = cParser().parse(sHtmlContent, pattern) hosters = [] if isMatch: for sUrl in aResult: if not 'youtube' in sUrl: hoster = {'link': sUrl, 'name': cParser.urlparse(sUrl)} hosters.append(hoster) if hosters: hosters.append('getHosterUrl') return hosters
def showHosters(): oParams = ParameterHandler() id = oParams.getValue('id') sHtmlContent = cRequestHandler(URL_HOSTER % id + S0VZ).request() pattern = '(http[^"]+)' isMatch, aResult = cParser().parse(sHtmlContent, pattern) hosters = [] for sUrl in aResult: hname = cParser.urlparse(sUrl) hoster = {'link': sUrl, 'name': hname} hosters.append(hoster) if hosters: hosters.append('getHosterUrl') return hosters
def showHosters(): sUrl = ParameterHandler().getValue('entryUrl') sHtmlContent = cRequestHandler(sUrl).request() pattern = 'trembed=([\d]+).*?trid=([\d]+).*?trtype=([\d]+)' isMatch, aResult = cParser().parse(sHtmlContent, pattern) hosters = [] if isMatch: for trembed, id, rtype in aResult: hUrl = 'https://topstreamfilm.com/?trembed=' + trembed + '&trid=' + id + '&trtype=' + rtype oRequest = cRequestHandler(hUrl) sHtmlContent = oRequest.request() pattern = '" src="([^"]+)' isMatch, aResult = cParser().parse(sHtmlContent, pattern) for sUrl in aResult: hoster = {'link': sUrl, 'name': cParser.urlparse(sUrl)} hosters.append(hoster) if hosters: hosters.append('getHosterUrl') return hosters
def showHosters(): sUrl = ParameterHandler().getValue('entryUrl') sHtmlContent = cRequestHandler(sUrl).request() sPattern = '''(hdgo.show[^>].*?|<iframe[^>]src=")(http[^"']+)''' isMatch, aResult = cParser().parse(sHtmlContent, sPattern) hosters = [] if isMatch: for dummy, sUrl in aResult: if 'hdgo.cc' in sUrl: oRequest = cRequestHandler(sUrl) oRequest.addHeaderEntry('Referer', sUrl) sHtmlContent = oRequest.request() pattern = '<iframe[^>]src="//([^"]+)' isMatch, sHtmlContent = cParser().parse(sHtmlContent, pattern) oRequest = cRequestHandler('http://' + sHtmlContent[0]) oRequest.addHeaderEntry('Referer', sUrl) sHtmlContent = oRequest.request() pattern = "url:[^>]'([^']+)" isMatch, aResult = cParser().parse(sHtmlContent, pattern) for sUrl in aResult: q = Qualy(sUrl) hoster = {'link': sUrl, 'name': 'hdgo.cc' + q} hosters.append(hoster) elif 'getvi.tv' in sUrl: oRequest = cRequestHandler(sUrl) oRequest.addHeaderEntry('Referer', sUrl) sHtmlContent = oRequest.request() pattern = '''\[([0-9p]+)\](http(?:[^'",]+))''' isMatch, aResult = cParser().parse(sHtmlContent, pattern) for sQualy, sUrl in aResult: hoster = {'link': sUrl, 'name': 'getvi.tv ' + sQualy} hosters.append(hoster) else: sName = cParser.urlparse(sUrl) hoster = {'link': sUrl, 'name': sName} hosters.append(hoster) if hosters: hosters.append('getHosterUrl') return hosters
def showHosters(): params = ParameterHandler() sUrl = params.getValue('entryUrl') sHtmlContent = cRequestHandler(sUrl).request() pattern = '<a[^>]*href="([^"]+)"[^>]*><img[^>]*class="([s|h]d+)linkbutton"' isMatch, aResult = cParser.parse(sHtmlContent, pattern) hosters = [] if not isMatch: return hosters for sUrl, sQuali in aResult: hoster = {} if not 'nurhdfilm' in sUrl.lower(): hoster['link'] = sUrl hoster['name'] = cParser.urlparse(sUrl) hoster['displayedName'] = '%s %s' % (hoster['name'], sQuali.upper()) hoster['quality'] = QUALITY_ENUM[sQuali.upper()] hosters.append(hoster) if hosters: hosters.append('getHosterUrl') return hosters
def showHosters(): params = ParameterHandler() if params.getValue('isTvshow') == 'True': oRequest = cRequestHandler(HOSTER_URL) oRequest.addHeaderEntry("X-Requested-With", "XMLHttpRequest") oRequest.setRequestType(1) oRequest.addParameters('imdbid', params.getValue('imdbid')) oRequest.addParameters('language', params.getValue('language')) oRequest.addParameters('season', params.getValue('Season')) oRequest.addParameters('episode', params.getValue('Episode')) sHtmlContent = oRequest.request() else: sUrl = params.getValue('entryUrl') sHtmlContent = cRequestHandler(sUrl).request() if not sHtmlContent: return [] pattern = '<a[^>]*href="([^"]+)"[^>]*><img[^>]*class="([s|h]d+)linkbutton"' isMatch, aResult = cParser.parse(sHtmlContent, pattern) hosters = [] if not isMatch: return hosters for sUrl, sQuali in aResult: hoster = {} if not 'nurhdfilm' in sUrl.lower(): hoster['link'] = sUrl hoster['name'] = cParser.urlparse(sUrl) hoster['displayedName'] = '%s %s' % (hoster['name'], sQuali.upper()) hoster['quality'] = QUALITY_ENUM[sQuali.upper()] hosters.append(hoster) if hosters: hosters.append('getHosterUrl') return hosters