@@ -2,11 +2,11 @@ # api: streamtuner2 # title: MyOggRadio # description: Open source internet radio directory. # type: channel # category: radio -# version: 0.7.5 +# version: 0.7.6 # url: http://www.myoggradio.org/ # depends: json, ahttp >= 1.5 # config: # { name: myoggradio_login, type: text, value: "user:password", description: "Account for storing personal favourites." } # { name: myoggradio_morph, type: boolean, value: 0, description: "Convert pls/m3u into direct shoutcast url." } @@ -46,11 +46,12 @@ class myoggradio(ChannelPlugin): # control flags listformat = "pls,m3u,srv" has_search = False - api = "http://www.myoggradio.org/" + #api = "http://www.myoggradio.org/" + api = "http://api.include-once.org/myoggradio/" # hide unused columns titles = dict(playing=False, listeners=False, bitrate=False) # category map @@ -60,11 +61,12 @@ # prepare GUI def init2(self, parent): if parent: #uikit.add_menu([parent.extensions, parent.extensions_context], "Share in MyOggRadio", self.share) - uikit.add_menu([parent.streammenu, parent.streamactions], "Share in MyOggRadio", self.share, insert=4) + #uikit.add_menu([parent.streammenu, parent.streamactions], "Share in MyOggRadio", self.share, insert=4) + pass # this is simple, there are no categories def update_categories(self): @@ -94,13 +96,14 @@ self.status("Unknown category") pass # augment result list for i,e in enumerate(entries): - entries[i]["homepage"] = self.api + "c_common_details.jsp?url=" + e["url"] - entries[i]["genre"] = cat - entries[i]["format"] = "audio/mpeg" + #entries[i]["homepage"] = self.api + "c_common_details.jsp?url=" + e["url"] + #entries[i]["genre"] = cat + #entries[i]["format"] = "audio/mpeg" + pass # send back return entries