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