109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
+
+
+
+
-
+
|
# get data
row = self.parent.row()
if row:
row = copy.copy(row)
# convert PLS/M3U link to direct ICY stream url
if conf.myoggradio_morph and self.parent.channel().listformat != "url/direct":
urls = action.convert_playlist(row["url"], row.get("listformat", "any"), "srv", local_file=False, row=row)
if not urls:
urls = [row["url"]]
row["url"] = ahttp.fix_url(action.srv(row["url"]))
row["url"] = ahttp.fix_url(urls[0])
# prevent double check-ins
if row["title"] in (r.get("title") for r in self.streams["common"]):
pass
elif row["url"] in (r.get("url") for r in self.streams["common"]):
pass
|