Update cartoonlatino.py
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
@@ -174,10 +174,11 @@ def findvideos(item):
|
|||||||
data = httptools.downloadpage(item.url).data
|
data = httptools.downloadpage(item.url).data
|
||||||
data = re.sub(r"\n|\r|\t|\s{2}| ", "", data)
|
data = re.sub(r"\n|\r|\t|\s{2}| ", "", data)
|
||||||
data_function = scrapertools.find_single_match(data, '<!\[CDATA\[function (.+?)\]\]')
|
data_function = scrapertools.find_single_match(data, '<!\[CDATA\[function (.+?)\]\]')
|
||||||
data_id = scrapertools.find_single_match(data,
|
data_id = scrapertools.find_single_match(data, "<p><center><br />.*?</center>")
|
||||||
"<script>\(adsbygoogle = window\.adsbygoogle \|\| \[\]\)\.push\({}\);<\/script><\/div><br \/>(.+?)<\/ins>")
|
|
||||||
itemla = scrapertools.find_multiple_matches(data_function, "src='(.+?)'")
|
itemla = scrapertools.find_multiple_matches(data_function, "src='(.+?)'")
|
||||||
serverid = scrapertools.find_multiple_matches(data_id, '<script>([^"]+)\("([^"]+)"\)')
|
serverid = scrapertools.find_multiple_matches(data_id, '<script>([^"]+)\("([^"]+)"\)')
|
||||||
|
#logger.info("Intel33 %s" %data_function)
|
||||||
|
#logger.info("Intel44 %s" %data_id)
|
||||||
for server, id in serverid:
|
for server, id in serverid:
|
||||||
for link in itemla:
|
for link in itemla:
|
||||||
if server in link:
|
if server in link:
|
||||||
|
|||||||
Reference in New Issue
Block a user