Comment 23 for bug 1483037

Revision history for this message
Bernd Dietzel (l-ubuntuone1104) wrote :

@Seth , you Comment 17 :

I had a look on audacious the db-file access :

    for collection in os.listdir(AUDACIOUS_DBFILE):
        dbfile = '%s/%s' % (AUDACIOUS_DBFILE, collection)
        database = open(dbfile, "r")
        database = database.read()
        if not database.startswith("title:Library"):
            records = database[14:]
            records = records.split("uri=")
        else:
            records = ""

What i can see are some bugs like this :

1) On my PC, the Database entry is not english "title:Library", but in my language "title=Sammlung" , notice it is written with "=" not with ":"
2) So "records = database[14:]" should be somewhat like "records = database[5:]"
3) There is no filter to use files with ".audpl" extension only.
4) There is a "//" in the dbfile Path

is it that what you mean ?