Menu

#3 dynamic playlists not shown

open
mbedouet
None
5
2007-05-05
2006-12-14
glenneroo
No

When working with dynamic playlists, no playlist is visible yet all controls work like normal (next track, volume, etc).

Looking at the packets, the query "method=getPlaylist" is not returning anything to the client...???

Discussion

  • mbedouet

    mbedouet - 2006-12-14

    Logged In: YES
    user_id=1624767
    Originator: NO

    that's weird, It works fine here.
    some track(s) in your playlist may have characters in the filenames or in the tags that trigger the problem.

    do you see some errors in the script log?
    it's visible from the amarok script manager (right-click on the script name, then "show output log")

     
  • glenneroo

    glenneroo - 2006-12-15

    Logged In: YES
    user_id=261226
    Originator: YES

    That's right, it occurs after adding some files with Umlauts ("Die Ärzte").
    Backtrace attached.
    PS: Date/Time in Output Log would be nice to see when new entries are appended at the end :)

    [XUL remote] starting readStdin
    [XUL remote] starting HTTPD
    [XUL remote HTTPD] XUL remote: New connexion from 172.22.89.33
    Traceback (most recent call last):
    File "/usr/lib/python2.5/SocketServer.py", line 222, in handle_request
    self.process_request(request, client_address)
    File "/usr/lib/python2.5/SocketServer.py", line 241, in process_request
    self.finish_request(request, client_address)
    File "/usr/lib/python2.5/SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File "/usr/lib/python2.5/SocketServer.py", line 521, in __init__
    self.handle()
    File "/usr/lib/python2.5/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
    File "/usr/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one_request
    method()
    File "/home/markus/.kde/share/apps/amarok/scripts/xulremote/AmarokHTTPServer.py", line 131, in do_POST
    response=getattr(self.server.amarok, method)(*params)
    File "/home/markus/.kde/share/apps/amarok/scripts/xulremote/Amarok.py", line 124, in getPlaylist
    return parse(plFile)
    File "/usr/lib/python2.5/xml/dom/minidom.py", line 1913, in parse
    return expatbuilder.parse(file)
    File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 924, in parse
    result = builder.parseFile(fp)
    File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
    ExpatError: reference to invalid character number: line 700, column 16
    Traceback (most recent call last):
    File "/usr/lib/python2.5/SocketServer.py", line 222, in handle_request
    self.process_request(request, client_address)
    File "/usr/lib/python2.5/SocketServer.py", line 241, in process_request
    self.finish_request(request, client_address)
    File "/usr/lib/python2.5/SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File "/usr/lib/python2.5/SocketServer.py", line 521, in __init__
    self.handle()
    File "/usr/lib/python2.5/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
    File "/usr/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one_request
    method()
    File "/home/markus/.kde/share/apps/amarok/scripts/xulremote/AmarokHTTPServer.py", line 131, in do_POST
    response=getattr(self.server.amarok, method)(*params)
    File "/home/markus/.kde/share/apps/amarok/scripts/xulremote/Amarok.py", line 124, in getPlaylist
    return parse(plFile)
    File "/usr/lib/python2.5/xml/dom/minidom.py", line 1913, in parse
    return expatbuilder.parse(file)
    File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 924, in parse
    result = builder.parseFile(fp)
    File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
    ExpatError: reference to invalid character number: line 700, column 16

     
  • glenneroo

    glenneroo - 2006-12-15

    Logged In: YES
    user_id=261226
    Originator: YES

    just a thought: instead of erroring out on the server side, maybe you should send a string containing the error message to the client so we don't have to debug on the server side :)

    Then we could report the error to you directly... e.g.
    ExpatError: reference to invalid character number: line 700, column 16
    One of the filenames in the list has characters that are not readable....

    or something like that :)

     
  • Markus Gaugusch

    Markus Gaugusch - 2007-01-18

    Logged In: YES
    user_id=245149
    Originator: NO

    Hi,
    Any news on this bug?

     
  • mbedouet

    mbedouet - 2007-01-19

    Logged In: YES
    user_id=1624767
    Originator: NO

    well, the problem here is that the python xml parser fails to parse the xml given by Amarok.
    that may be a bug from Amarok, or from python.

    I cannot reproduce it with files from my collection, could you post the xml file for a playlist that triggers the bug please?

    the file path is given by this command:
    dcop amarok playlist saveCurrentPlaylist

    thanks

     
  • mbedouet

    mbedouet - 2007-05-05

    Logged In: YES
    user_id=1624767
    Originator: NO

    Hi
    It is probably a problem with the playlist xml generated by Amarok, that in some cases was not valid.
    I saw some time ago it was fixed in Amarok.
    do you still have this issue?

     
  • mbedouet

    mbedouet - 2007-05-05
    • assigned_to: nobody --> mbedouet
     

Log in to post a comment.

MongoDB Logo MongoDB