Exemplo n.º 1
0
 def get_links(self, cItem):
     urlTab = []
     URL = cItem['url']
     sts, data = self.getPage(URL)
     if sts:
         Liste_els = re.findall('class="movies-servers.*?<ul(.*?)</ul>',
                                data, re.S)
         if Liste_els:
             Liste_els_2 = re.findall(
                 '<li.*?data-serv="(.*?)".*?post="(.*?)">(.*?)</li>',
                 Liste_els[0], re.S)
             for (code1, code2, srv) in Liste_els_2:
                 url = 'https://www.zimabdko.com/wp-admin/admin-ajax.php?action=codecanal_ajax_request&post=' + code2 + '&serv=' + code1
                 sts, data = self.getPage(url)
                 Liste_els = re.findall('src.*?["\'](.*?)["\']', data, re.S)
                 if Liste_els:
                     if self.up.checkHostSupport(Liste_els[0]) == 1:
                         color = '\c0000??00'
                     else:
                         color = '\c00??0000'
                     urlTab.append({
                         'name':
                         'Server: ' + ph.clean_html(srv) + color + ' (' +
                         gethostname(Liste_els[0]) + ')',
                         'url':
                         Liste_els[0],
                         'need_resolve':
                         1
                     })
     return urlTab
Exemplo n.º 2
0
    def get_links(self, cItem):
        urlTab = []
        url = cItem['url']
        sts, data = self.getPage(url)
        if sts:
            data1 = re.findall('main-info">.*?href="(.*?)"', data, re.S)
            if data1:
                URL = data1[0].replace('download', 'watch')
                sts, data = self.getPage(URL)
                if sts:
                    server_data = re.findall('servers-list">(.*?)</ul>', data,
                                             re.S)
                    if server_data:
                        server_data1 = re.findall(
                            '<li.*?(src|SRC)=&quot;(.*?)&quot;.*?">(.*?)<',
                            server_data[0], re.S)
                        for (x1, url, titre) in server_data1:
                            url = unifurl(url)
                            host = gethostname(url)
                            titre = titre.replace('سيرفر', 'Server')
                            titre = titre + '  \c0000??00( ' + host + ' )'
                            if not 'arabseed' in url:
                                urlTab.append({
                                    'name': titre,
                                    'url': url,
                                    'need_resolve': 1
                                })
                            else:
                                urlTab.append({
                                    'name': titre,
                                    'url': 'hst#tshost#' + url,
                                    'need_resolve': 1
                                })

            return urlTab
Exemplo n.º 3
0
    def get_links(self, cItem):
        urlTab = []
        #urlTab.append({'name':'ttttttt', 'url':'hkhhk', 'need_resolve':0})
        URL = cItem['url']
        sts, data = self.getPage(URL)
        if sts:
            #d1 = re.findall('''["']sources['"]\s*:\s*\[(.*?)\]''', data)
            d1 = re.findall('''["']sources['"]\s*:\s*\[(.*?)\]''', data, re.S)
            if d1:
                if 'eval' in d1[0]:
                    d3 = re.findall('eval\((.*)', data, re.S)
                    if d3:
                        #tab_dec=[SAWLIVETV_decryptPlayerParams,VIDEOWEED_decryptPlayerParams, VIDEOWEED_decryptPlayerParams2,TEAMCASTPL_decryptPlayerParams,VIDUPME_decryptPlayerParams,KINGFILESNET_decryptPlayerParams]
                        data = unpackJSPlayerParams(
                            'eval(' + d3[0] + ')',
                            SAWLIVETV_decryptPlayerParams, 0)
                        printDBG(data)
                        urlTab.append({
                            'name':
                            'Direct',
                            'url':
                            data.replace('"', '').replace("'", ''),
                            'need_resolve':
                            0
                        })
                else:
                    d1 = re.findall('''['"]*file['"]*\s*:\s*([^\(]+)''',
                                    d1[0])[0]
                    d2 = re.findall('function\s+%s[^{]+{\s*([^}]+)' % d1,
                                    data)[0]

                    data_list = re.findall('return.*?"(.*?)"', d2, re.S)
                    if data_list:
                        URL1 = data_list[0]
                        urlTab.append({
                            'name': 'Direct',
                            'url': URL1,
                            'need_resolve': 0
                        })

                    data_list = re.findall('<iframe src="(.*?)"', data, re.S)
                    if data_list:
                        URL1 = data_list[0]
                        urlTab.append({
                            'name': gethostname(URL1),
                            'url': URL1,
                            'need_resolve': 1
                        })

        return urlTab
Exemplo n.º 4
0
    def get_links(self, cItem):
        urlTab = []
        URL = cItem['url']
        sts, data = self.getPage(URL)
        if sts:
            data_list = re.findall(
                'class="TPlayerTb.*?trembed=(.*?)("|&quot;)', data, re.S)
            for (url, x1) in data_list:
                url = url.replace('&amp;', '&')
                url = self.MAIN_URL + '/?trembed=' + url.replace('&#038;', '&')
                sts, data2 = self.getPage(url, self.defaultParams)
                printDBG(data2)
                data_list2 = re.findall('src.*?["\'](.*?)["\']', data2, re.S)
                if data_list2:
                    url = data_list2[0]
                    sts, data3 = self.getPage(url, self.defaultParams)
                    printDBG('data222' + data3)
                    data_list3 = re.findall("var id.+?'(.+?)'", data3, re.S)
                    if data_list3:
                        url1 = self.MAIN_URL + '/?trhidee=1&trfex=' + data_list3[
                            0][::-1]
                        paramsUrl = dict(self.defaultParams)
                        paramsUrl['header']['Referer'] = url
                        sts, data3 = self.getPage(url1, paramsUrl)
                        printDBG('dataeta' + str(data3.meta))
                        Url = data3.meta['url']
                        if self.up.checkHostSupport(Url) == 1:
                            urlTab.append({
                                'name': gethostname(Url),
                                'url': Url,
                                'need_resolve': 1
                            })
                        elif 'hdsto' in Url:
                            URL = 'https://' + Url.split(
                                '/')[2] + '/hls/' + Url.split(
                                    'id=')[1] + '/' + Url.split(
                                        'id=')[1] + '.playlist.m3u8'
                            URL = strwithmeta(URL, {'Referer': Url})
                            urlTab.extend(
                                getDirectM3U8Playlist(
                                    URL,
                                    checkExt=True,
                                    checkContent=True,
                                    sortWithMaxBitrate=999999999))

            #urlTab = getDirectM3U8Playlist(URL, checkExt=True, checkContent=True, sortWithMaxBitrate=999999999)
        return urlTab
Exemplo n.º 5
0
 def get_links(self, cItem):
     urlTab = []
     URL = cItem['url']
     sts, data = self.getPage(URL)
     if sts:
         Tab_els = re.findall('src="(https://www.youtube.*?)"', data, re.S)
         if Tab_els:
             urlTab.append({
                 'name': 'TRAILER',
                 'url': Tab_els[0],
                 'need_resolve': 1
             })
         Tab_els = re.findall('<iframe.*?data-src="(.*?)".*?></iframe>',
                              data, re.S)
         for url in Tab_els:
             try:
                 if '//moviflex.net' in url:
                     sts, data = self.getPage(url)
                     url_els = re.findall('<source src="(.*?)"', data, re.S)
                     if url_els:
                         urlTab.append({
                             'name': 'Direct',
                             'url': url_els[0],
                             'need_resolve': 0
                         })
                 elif 'moviflex.ml' in url:
                     post_data = {'r': '', 'd': 'moviflex.ml'}
                     url = url.replace('/v/', '/api/source/')
                     sts, data = self.getPage(url, self.defaultParams,
                                              post_data)
                     data = json_loads(data)
                     elmdata = data['data']
                     for elm0 in elmdata:
                         urlTab.append({
                             'name':
                             'Direct_ (' + elm0['label'] + ')',
                             'url':
                             elm0['file'],
                             'need_resolve':
                             0
                         })
                 elif '.moviflex.pw' in url:
                     paramsUrl = dict(self.defaultParams1)
                     paramsUrl['header']['Referer'] = URL
                     sts, data = self.getPage(url, paramsUrl)
                     url_els = re.findall('JuicyCodes.Run\((.*?)\)', data,
                                          re.S)
                     if url_els:
                         b64data = url_els[0]
                         b64data = b64data.replace('"+"',
                                                   '').replace('"', '')
                         script_data = base64.b64decode(b64data)
                         script_ = unpackJSPlayerParams(
                             script_data, SAWLIVETV_decryptPlayerParams, 0)
                         url_els = re.findall(
                             'file":"(.*?)".*?label":"(.*?)"', script_,
                             re.S)
                         for (url_, titre_) in url_els:
                             urlTab.append({
                                 'name':
                                 'Direct (' + titre_ + ')',
                                 'url':
                                 strwithmeta(url_, {'Referer': url}),
                                 'need_resolve':
                                 0
                             })
                 else:
                     if len(url) > 4:
                         urlTab.append({
                             'name': gethostname(url),
                             'url': url,
                             'need_resolve': 1
                         })
             except:
                 a = ''
     return urlTab