Active Topics

 


Reply
Thread Tools
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#11
Originally Posted by seadog View Post
Hi,
Yes I will add greek localization to the app,asap. thnx for the link.
Perfect (Τέλεια! )
 
Posts: 18 | Thanked: 18 times | Joined on Oct 2009 @ Barcelona, Spain
#12
I thought ill share this. I use the following to inject my own list of stations to the player by clearing the whole list and inserting the ones i want. I prefer this so it can run again and edit it in console.

Just run it with python. I copied the methods from the initial topic post and fixed it up so it can run standalone. Kudos go to seadog.

Code:
import sqlite3

stationId = 0

def buildBlob(string):
	""" Builds the needed blob for value column """
	return sqlite3.Binary(chr(1) + chr(0) * 3 + '@' + chr(0) * 3 + string + chr(0) )

def insertIntoDB(cursor, title, uri):
    """ inserts station in db"""
    global stationId
    stationId = stationId + 1

    cursor.execute('INSERT INTO iradiobookmarks VALUES (?, "title", ?)', (stationId, buildBlob(title),))
    cursor.execute('INSERT INTO iradiobookmarks VALUES (?, "mime-type", ?)', (stationId, buildBlob("audio"),))
    cursor.execute('INSERT INTO iradiobookmarks VALUES (?, "uri", ?)', (stationId, buildBlob(uri),))
    print 'inserted station %s' % title

conn = sqlite3.connect("/home/user/.mafw.db")
cursor = conn.cursor()

cursor.execute('DELETE FROM iradiobookmarks')
print 'database cleared'

insertIntoDB(cursor, 'Radio 1', 'http://shoutcast.omroep.nl:8100/listen.pls')
insertIntoDB(cursor, 'Radio 3', 'http://shoutcast.omroep.nl:8104/listen.pls')

conn.commit()
print 'commited!'
 

The Following 6 Users Say Thank You to kwek For This Useful Post:
Posts: 6 | Thanked: 11 times | Joined on Mar 2010 @ NL
#13
For the less experienced users (like me) this is another way:

With the web browser, go to the site of the radiostation.

Open the .pls/.m3u file from the site, the mediaplayer starts playing the stream. Go to "Now Playing" next to the back button and press "Add radio bookmark"

Another way is to create a .pls or .m3u file and get it on the device via USB. Put it in documents for example and then use file manager to open the file. Bookmark and you're done.
 

The Following 2 Users Say Thank You to Queste For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 12:22.