[Release] TuneIn Radio & xmanRadio

Requests, suggestions, support, and everything else python / plugin related.
Post Reply
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

[Release] TuneIn Radio & xmanRadio

Post by Kozz »

Announcing 2 new Radio addons on the block: Install them from the Addons4Xbox Installer, instructions HERE

TuneIn Radio v1.0.7 : Has been adapted to work on our xbox
Image
Description: TuneIn Radio is a free service that lets you listen to anything in the world from wherever you are. Whether you want to hear music, sports, news or current events. TuneIn Radio offers over 50,000 stations for you to choose from. From finding local stations to discovering new stations from around the world, TuneIn Radio brings you to where you want to be.



xmanRadio : A little addon I've made for xman with a few of his favourate local (Australian) radio stations, More stations will be added in future releases
Image
Description:Listen to xmans favourite local Aussie stations
Image
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: [Release] TuneIn Radio & xmanRadio

Post by skatulskijean »

:D

Nice that you have it adapted to a little older version was on one from my first jan'sxbmc4xbox builds!

regards jan
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

Re: [Release] TuneIn Radio & xmanRadio

Post by Kozz »

yeah it was giving an error for our missing msvcrt lib, then I looked closer and realized it only needed it for the function to get the xbox MAC address

If you look in: plugin.audio.tuneinradio > resources > lib > tunein.py

The original had:

Code: Select all

def __get_mac_address(self):
		mac = ''
 
		if sys.platform == 'win32': 
			command = "ipconfig /all"
			proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE,)
			for line in proc.stdout:
				if line.lstrip().startswith('Physical Address'): 
					mac = line.split(':')[1].strip().replace('-',':') 
					break 
		else: 
			command = "/sbin/ifconfig"
			proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,)
			for line in proc.stdout:
				if line.find('Ether') > -1: 
					mac = line.split()[4] 
					break 
		return mac
I changed it to use the xbmc builtin function not msvcrt

Code: Select all

def __get_mac_address(self):
		mac = xbmc.getInfoLabel("network.macaddress")
		return mac
If you have a newer version just apply this fix and add it to the repo if you like
Image
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: [Release] TuneIn Radio & xmanRadio

Post by skatulskijean »

i say it better !
i hate Tunin adapted for log time and it was on one from my first jan's xbmc4xbox builds !
It give a thread here and i think so the the download link to the adapted Version from me!
But nice is better you look on the code self and change this what not works!

Gruss Jan

Ich hatte das Tuninn radio addon schon vor geraumer Zeit für xbmc4xbox adapted es war auf einer meiner ersten Jan'sxbmc4xbox Versionen!
Wenn ich mich richtig erinnere gibt es hier auch einen Thread!
Hast Du das alte shoutcast addon schon hochgeladen!
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

Re: [Release] TuneIn Radio & xmanRadio

Post by Kozz »

Ahhh ok I get it now :)

I did not remember you adapted it before
Image
Post Reply