Skip to main content
Topic: External Tags (Read 27717 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: External Tags

Reply #300
It comes from foo_midi's own tag database system, which I don't know if it supports tag removal properly.

Re: External Tags

Reply #301
Ah, okay. Thank you.
It's because i've had some problems with metadata like title and artist not following correctly when synchronizing my music folders across computers. That makes sense, if the tags are stored in a database seperate from the music folder.
I do not have a portable install, but a local install on both computers, which then both have the synchronized folder added in the media library.

Re: External Tags

Reply #302
HI,I have some trouble creating my own .tag file outside fb2k(v1.5.2):
this is the python code:
#############################################
import mutagen
from mutagen import apev2
import io
a = apev2.APEv2()
a['Album'] = 'Rain'
a['Artist'] = 'BlaBla'
buf = io.BytesIO()
a.save(buf)
# the audio file name is test.mp3
with open('test.mp3.tag', 'wb') as f:
    # mutagen's apev2 header don't have 'TAGFILE'
    # so add it in front and since header's `size` field
    # only count TAGS ITEM and footer, so no need to hack into
    # the original implementation to update the header's `size` field
    f.write(b'TAGFILE'+ buf.getvalue())
#############################################
and the external tag's configure is:
* Use only APE TAGS
* Take over all tagging
and it can't be recognized by fb2k. and something weird happened:
when i right click on the file > Taggging > Edit External Tags and add some other field.
suddenly it can be recognized and the fields tagged by python is in there.
I've checked a python created ape tag file and the one created totally by external tags and found no difference.
so I wonder it's trigger problem in external tags?

Re: External Tags

Reply #303
Have you tried reloading info from files? Generally speaking foobar2000 doesn't ask for new tag info if the file timestamps don't change from the last time the metadata was read.

 

Re: External Tags

Reply #304
It works! Thanks! I didn't even know there is a 'reload info' button. Sorry, I didn't read through all the comments in this thread due to difficulty  in reading English :(
but is there a convenient way to let fb2k reload all the info?

that's pretty weird. I remove it from playlist and add it back why fb2k doesn't reload the info. It stores all the file access info in somewhere?

Re: External Tags

Reply #305
foobar2000 caches metadata pretty aggressively. You can force reload info for all track in the media library for example with Album List (Library -> Album List). Hold shift while right clicking "All Music" entry at the top and select Tagging -> Reload info from file(s). Note that it can take a while with large library.

Re: External Tags

Reply #306
Thanks again. Now I know that simply `touch` the files works.
And here is the python code:
############################
from pathlib import Path
Path('path/to/test.mp3').touch()
############################

 
SimplePortal 1.0.0 RC1 © 2008-2020