64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
""", tr, re.X|re.S)
print ls
if len(ls):
homepage, country, title = ls[0]
r.append(dict(
homepage = homepage,
playing = country,
title = self.entity_decode(title).strip(),
url = "urn:delicast",
genre = cat,
# genre = self.entity_decode(self.strip_tags(tags)).strip(),
))
return r
# Update `url`
def row(self):
r = ChannelPlugin.row(self)
if r.get("url") == "urn:delicast":
html = ahttp.get(r["homepage"])
ls = re.findall("^var url = \"(.+)\";", html, re.M)
r["url"] = ls[0]
return r
|
|
|
|
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
""", tr, re.X|re.S)
print ls
if len(ls):
homepage, country, title = ls[0]
r.append(dict(
homepage = homepage,
playing = country,
title = unhtml(title),
url = "urn:delicast",
genre = cat,
# genre = unhtml(tags),
))
return r
# Update `url`
def row(self):
r = ChannelPlugin.row(self)
if r.get("url") == "urn:delicast":
html = ahttp.get(r["homepage"])
ls = re.findall("^var url = \"(.+)\";", html, re.M)
r["url"] = ls[0]
return r
|