2012-11-21, 15:20
The addon seems to hard coded ifconfig to get mac address which always fails on android platform.
Here is the quick fix to make it work on android platform.
Here is the quick fix to make it work on android platform.
Code:
--- a/resources/lib/tunein.py
+++ b/resources/lib/tunein.py
@@ -74,11 +74,14 @@
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
+ try:
+ proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,)
+ for line in proc.stdout:
+ if line.find('Ether') > -1:
+ mac = line.split()[4]
+ break
+ except:
+ pass
return mac
def __add_params_to_url(self, method, fnparams=None, addrender=True, addserial=True):