handling "/" in title tag and associated problems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pytagsfs |
Fix Released
|
Undecided
|
Forest Bond |
Bug Description
Hi,
I have a pytagsfs filesystem mounted:
/usr/bin/pytagsfs -o allow_other,
An mp3 file in /data has a title with a '/' character:
$ id3info '01. Great Expectations - Orange Lady.mp3' | grep TIT2
=== TIT2 (Title/
Under the pytagfs mount, this shows up as:
$ tree -p
.
|-- [drwxr-xr-x] 01-Great Expectations
| `-- [-rw-r--r--] Orange Lady.mp3
The '/' is being interpreted as a directory.
I was under the impression that retagging the file would solve the problem, but the filesystem doesn't get updated:
$ pytags --set="title=Great Expectations - Orange Lady" 01.\ Great\ Expectations\ -\ Orange\ Lady.mp3
01. Great Expectations - Orange Lady.mp3
$ pytags 01.\ Great\ Expectations\ -\ Orange\ Lady.mp3 | grep ^title
title=Great Expectations - Orange Lady
$ tree -p
.
|-- [drwxr-xr-x] 01-Great Expectations
| `-- [-rw-r--r--] Orange Lady.mp3
Renaming the file in the pytagsfs mount doesn't work either:
$ mv 01-Great\ Expectations\ /\ Orange\ Lady.mp3 '01-Great Expectations - Orange Lady.mp3'
mv: cannot move `01-Great Expectations / Orange Lady.mp3' to a subdirectory of itself, `01-Great Expectations - Orange Lady.mp3'
$ tail -1 ../../.log
[08:51:57,360] get_values_
Thanks for the report.
I have a fix for this committed locally that is pending a larger refactoring that I am almost done with. I hope to push these changes to the launchpad bzr repository today.
-Forest