[REQUEST] TuneIn Radio Plugin?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
s7mx1 Offline
Senior Member
Posts: 259
Joined: Dec 2007
Reputation: 3
Post: #31
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.
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):
find quote
espe Offline
Junior Member
Posts: 1
Joined: Dec 2012
Reputation: 0
Post: #32
(2012-11-21 15:20)s7mx1 Wrote:  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.

Thank you! This fix works perfect on my Hannspad.

espe
find quote
teresa Offline
Member
Posts: 83
Joined: Feb 2007
Reputation: 0
Post: #33
The station that I would like to stream WZID is marked unsupported, but it works fine in the android version of TuneIn Radio. Any thoughts on streaming this station?
find quote
Keinoom Offline
Junior Member
Posts: 1
Joined: Apr 2013
Reputation: 0
Post: #34
This is great app and works perfect in XBMCbuntu but i have one question.
How can i record/download radio streams ConfusedConfused
Is there icon or keyboard shortcut to do that ?
There is download option In TuneIn settings and I can set up place to download streams but ... HOW TO START RECORDING ConfusedConfusedConfusedConfused?
On iPad or iPhone recording in TuneIn works great. Here on XBMC is mystery.
find quote
Post Reply