Hi,
i can't add songs with pytonectl in pytone 2.2.1
# pytonectl playlistaddsongs ~/foo.mp3
,----[ debug output ] | D [home/johannes/PyTone-2.2.1/src/network] starting handler | D [home/johannes/PyTone-2.2.1/src/network] server: request type received | D [home/johannes/PyTone-2.2.1/src/network] server: object received | D [home/johannes/PyTone-2.2.1/src/network] unpickling requests.queryregistersong | D [home/johannes/PyTone-2.2.1/src/network] server receive: type=REQUEST object=(-1216173268, <requests.queryregistersong instance at 0xb72c1cec>) | D [home/johannes/PyTone-2.2.1/src/network] server: requesting <requests.queryregistersong instance at 0xb72c1cec> for client | D [home/johannes/PyTone-2.2.1/src/hub] request: queryregistersong(/home/johannes/foo.mp3)->main (priority -50) | D [home/johannes/PyTone-2.2.1/src/hub] event: requestresponse(<requests.queryregistersong instance at 0xb72c1cec> -> None) (priority -50) | D [home/johannes/PyTone-2.2.1/src/hub] request: queryregistersong(/home/johannes/foo.mp3)->main (priority 0) | D [home/johannes/PyTone-2.2.1/src/hub] event: requestresponse(<requests.queryregistersong instance at 0xb72c1cec> -> None) (priority 0) | D [home/johannes/PyTone-2.2.1/src/hub] got result None for <requests.queryregistersong instance at 0xb72c1cec> | D [home/johannes/PyTone-2.2.1/src/hub] got result None for <requests.queryregistersong instance at 0xb72c1cec> | D [home/johannes/PyTone-2.2.1/src/network] server: got answer None | D [home/johannes/PyTone-2.2.1/src/network] server send: type=RESULT object=(-1216173268, None) | D [home/johannes/PyTone-2.2.1/src/network] server: request type received | D [home/johannes/PyTone-2.2.1/src/network] server: object received | D [home/johannes/PyTone-2.2.1/src/network] unpickling events.playlistaddsongs | D [home/johannes/PyTone-2.2.1/src/network] server receive: type=EVENT object=<events.playlistaddsongs instance at 0xb72c506c> | D [home/johannes/PyTone-2.2.1/src/hub] event: playlistaddsongs([None]) (priority -50) | D [home/johannes/PyTone-2.2.1/src/hub] event: playlistchanged([playlistitem: id=0, playlistitem: id=1, playlistitem: id=2, playlistitem: id=3, playlistitem: id=4, playlistitem: id=5, playlistitem: id=6, playlistitem: id=7, playlistitem: id=8, playlistitem: id=9, playlistitem: id=10, playlistitem: id=11, playlistitem: id=12, playlistitem: id=13, playlistitem: id=14, playlistitem: id=15, playlistitem: id=16, playlistitem: id=17, playlistitem: id=18, playlistitem: id=19, playlistitem: id=20, playlistitem: id=21, playlistitem: id=22, playlistitem: id=23, playlistitem: id=24, playlistitem: id=25, playlistitem: id=26, playlistitem: id=27, playlistitem: id=28, playlistitem: id=29, playlistitem: id=30, playlistitem: id=31, playlistitem: id=32, playlistitem: id=33, playlistitem: id=34],254/17102,repeat,song(new/The Pharcyde/The Best Of The Pharcyde/The Pharcyde - Cydeways - The Best Of The Pharcyde - [13] - Devil Music.mp3) in main database) (priority 0) | D [home/johannes/PyTone-2.2.1/src/network] server: request type received | D [home/johannes/PyTone-2.2.1/src/network] exception 'unpack list of wrong size' occured during _receiveobject | D [home/johannes/PyTone-2.2.1/src/network] terminating handler `----
In pytone 2.2.2 it's not possible to go back to previous song with 'b'
,----[ log ] | playlist service: caught exception: global name 'currentsong' is not defined `----
Apart from that its the best program for managing my mp3s ever (love ncurses interfaces with vim-like keybindings). Thank you for coding it (:
Regards, Johannes
Hi Johannes,
On 21.04.05, Johannes Segitz wrote:
i can't add songs with pytonectl in pytone 2.2.1
# pytonectl playlistaddsongs ~/foo.mp3
For me this works.
,----[ debug output ] | D [home/johannes/PyTone-2.2.1/src/network] starting handler | D [home/johannes/PyTone-2.2.1/src/network] server: request type received | D [home/johannes/PyTone-2.2.1/src/network] server: object received | D [home/johannes/PyTone-2.2.1/src/network] unpickling requests.queryregistersong | D [home/johannes/PyTone-2.2.1/src/network] server receive: type=REQUEST object=(-1216173268, <requests.queryregistersong instance at 0xb72c1cec>) | D [home/johannes/PyTone-2.2.1/src/network] server: requesting <requests.queryregistersong instance at 0xb72c1cec> for client | D [home/johannes/PyTone-2.2.1/src/hub] request: queryregistersong(/home/johannes/foo.mp3)->main (priority -50) | D [home/johannes/PyTone-2.2.1/src/hub] event: requestresponse(<requests.queryregistersong instance at 0xb72c1cec> -> None) (priority -50) | D [home/johannes/PyTone-2.2.1/src/hub] request: queryregistersong(/home/johannes/foo.mp3)->main (priority 0)
Is there a database with id "main" defined whose musicbasedir contains /home/johannes?
[ ... ]
| D [home/johannes/PyTone-2.2.1/src/network] server: request type received | D [home/johannes/PyTone-2.2.1/src/network] exception 'unpack list of wrong size' occured during _receiveobject
Looking at the code , I think that this error is not the reason for your problem.
| D [home/johannes/PyTone-2.2.1/src/network] terminating handler `----
In pytone 2.2.2 it's not possible to go back to previous song with 'b'
,----[ log ] | playlist service: caught exception: global name 'currentsong' is not defined `----
You're right. Fixed.
Apart from that its the best program for managing my mp3s ever (love ncurses interfaces with vim-like keybindings). Thank you for coding it (:
Thanks!
Jörg
On Thu, Apr 21, 2005 at 09:33:26PM +0200, Joerg Lehmann wrote:
On 21.04.05, Johannes Segitz wrote:
i can't add songs with pytonectl in pytone 2.2.1
# pytonectl playlistaddsongs ~/foo.mp3
For me this works.
I tried it again and it works only if i access files via the path specified in musicbasedir. It doesn't work if i access files in the same directory via another access path (i used a symlink to my musicbasedir). Would be nice if i could add arbitrary files (and with the "[Filesystem]/" entry too. E.g. by making .. available)
Is there a database with id "main" defined whose musicbasedir contains /home/johannes?
no i changed this information.
Regards, Johannes
Hi Johannes,
On 22.04.05, Johannes Segitz wrote:
On Thu, Apr 21, 2005 at 09:33:26PM +0200, Joerg Lehmann wrote:
On 21.04.05, Johannes Segitz wrote:
i can't add songs with pytonectl in pytone 2.2.1
# pytonectl playlistaddsongs ~/foo.mp3
For me this works.
I tried it again and it works only if i access files via the path specified in musicbasedir. It doesn't work if i access files in the same directory via another access path (i used a symlink to my musicbasedir).
This is how it is intended to be. In particular, all songs in a database are identified by their relative path (with respect to musicbasedir). Concerning the symlink issue: one could convert the path to its real path before querying the database (this requires, of course, "normalizing" musicbasedir, as well). However, I'm not sure whether this is really worthwhile doing...
Would be nice if i could add arbitrary files (and with the "[Filesystem]/" entry too. E.g. by making .. available)
That's somehow contrary to the concept of the musicbasedir. I'd rather not do this. Suppose, in particular, that this means that any remote instance of PyTone can access an arbitrary file in the filesystem.
Is there a database with id "main" defined whose musicbasedir contains /home/johannes?
no i changed this information.
Which information? The database id or the musicbasedir. In the former case, currently pytonectl does not work at all.
Jörg