Skip to content

Commit

Permalink
Updated Navahang to v2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
xmha97 committed Nov 14, 2020
1 parent 62a1dec commit 0859ba8
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion addons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</assets>
</extension>
</addon>
<addon id="plugin.audio.navahang" name="Navahang" version="2.5" provider-name="Muhammad Hussein Ammari">
<addon id="plugin.audio.navahang" name="Navahang" version="2.6" provider-name="Muhammad Hussein Ammari">
<requires>
<import addon="xbmc.python" version="2.26.0"/>
<import addon="script.module.beautifulsoup4" version="4.3.2"/>
Expand Down
2 changes: 1 addition & 1 deletion addons.xml.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
573e9a8a6fbab82915c65d6d9c86850b *addons.xml
2d70edd929cef8a7ba8808fc539f6835 *addons.xml
2 changes: 1 addition & 1 deletion plugin.audio.navahang/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.audio.navahang" name="Navahang" version="2.5" provider-name="Muhammad Hussein Ammari">
<addon id="plugin.audio.navahang" name="Navahang" version="2.6" provider-name="Muhammad Hussein Ammari">
<requires>
<import addon="xbmc.python" version="2.26.0"/>
<import addon="script.module.beautifulsoup4" version="4.3.2"/>
Expand Down
8 changes: 0 additions & 8 deletions plugin.audio.navahang/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@ def addLink(self, name, url, image = '', info = {}, totalItems = 0):
return addDirectoryItem(int(argv[1]), url, item, False, totalItems)

def buildIndex(self):
rdLink = 'http://173.236.47.154:2199/rpc/radionavahang/streaminfo.get'
request = urllib.request.Request(rdLink, headers={'User-Agent' : 'Kodi'})
response = urllib.request.urlopen(request)
json_text = response.read()
loaded_json = json.loads(json_text)
otext = loaded_json['data'][0]['track']
self.addLink('Play Radio Navahang[CR][B]' + otext['title'] + "[/B] by " + otext['artist'], loaded_json['data'][0]['tuneinurl'], otext['imageurl'], {'Artist': otext['artist'],'Title': otext['title'],'Album': otext['album'] if otext['album']!='' else 'Single'})

request = urllib.request.Request(DataLink, headers={'User-Agent' : 'Kodi'})
response = urllib.request.urlopen(request)
json_text = response.read()
Expand Down
Binary file not shown.

0 comments on commit 0859ba8

Please sign in to comment.