|
@@ -105,8 +105,18 @@ Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
|
105
|
105
|
desc = desc0 = util.unescape(m.group(1).strip()) if m else ""
|
106
|
106
|
vid = plist[-1]
|
107
|
107
|
js = self.get_movie_info(vid)
|
108
|
|
- pl_link = js["message"]["translations"]["flash"].values()[0] # TODO process several players
|
109
|
|
- pl_link = self.decode_uppod_text(pl_link)
|
|
108
|
+ translations = js["message"]["translations"]["flash"]
|
|
109
|
+ for pl in translations:
|
|
110
|
+ if translations[pl].startswith("http"):
|
|
111
|
+ continue
|
|
112
|
+ pl_link = translations[pl]
|
|
113
|
+ break
|
|
114
|
+ else:
|
|
115
|
+ raise Exception("No episodes list found!")
|
|
116
|
+ #pl_link = js["message"]["translations"]["flash"].values()[0]
|
|
117
|
+ # TODO process several players, currently taking the first
|
|
118
|
+ if not pl_link.startswith("http"):
|
|
119
|
+ pl_link = self.decode_uppod_text(pl_link)
|
110
|
120
|
js = self._http_request(pl_link)
|
111
|
121
|
js = self.decode_uppod_text(js)
|
112
|
122
|
js = json.loads(js)
|