Author
Topic: A way to display *.mp3 tags (Read 55658 times)

i'm unsure about understanding what you are proposing maverick.... have no new feature about it?

anyway, as i'm proposing, HFS would not detect any change about the mp3 files... it just can't! when i move a file, no "time field" is updated in the file system (AFAIK).if you change an mp3 folder, and you want your description to be updated, just delete it, and HFS will call mp3toIon.

Logged

xitsa

@echo offmp3ToIon.exefor /r /d %%a in (*) do ( pushd %%a %~dp0mp3ToIon.exe in %%a popd)Put mp3ToIon.exe and Update.bat in root directory and run Update.bat.It recursively walk through subfolders and run mp3ToIon.exe there

* If descript.ion file is not present in the mp3 folder, HFS calls Mp3ToIon.exe to generate one.

* If the file is already there, HFS checks if there is a descript.ion entry for each file listed in the files.lst--- If the lists match, HFS does nothing--- If they don't, call Mp3ToIon to generate new descript.ion

If someone does not want this kind on function and likes to update everything manually himself, he could just leave the Mp3ToIon.exe out of HFS folder

Fernando

To make everyone happy, I would suggest a plugin solution: HFS searches at startup for special DLL's having an entry point called RegisterPlugin, which returns a plugin name and the extension(s) that it handles.A voice could then be added on a plugin menu in HFS to enable plugins in sected dirs.Just before showing each file, HFS calls a method in the plugin that displays info.This way Rejetto can achieve the purpose without having to code himself and letting us do the work Also, with everybody's help we could have a lotta plugins for avi, mp4, ogg, mp3, flv etc.

because you think a plugin system would "open" hfs to any feature.it's not so, i have to open every single bit. it's a dirty long job. and that's the main reason i would like to see HFS made in python. it would open everything with no effort. (but it means to rewrite HFS from scratch, months of hard work)

@echo offmp3ToIon.exefor /r /d %%a in (*) do ( pushd %%a %~dp0mp3ToIon.exe in %%a popd)Put mp3ToIon.exe and Update.bat in root directory and run Update.bat.It recursively walk through subfolders and run mp3ToIon.exe there

I tried "update.bat" and it does not work in my directory-structure. I think that is because my starting "root-directory" for my MP3-files is a subdirectory of upper directories with spaces in it.If I start it from a root without spaces in the upper path, it does not work as wanted either:The descript.ion-files in the subdirectories don't get the descriptions I configurated in my ini-file. They contain only Interpreter and Songtitle. The descript.ion-file in the root is build in the correct way. The reason for this is obviously that mp3ToIon.exe doesn't read the ini-file, when working on subdirectories of the root. Instead of this it takes the constants in the exe. If I place the ini-file in the subdirectory too, all works as intentioned.

I have to admit that I don't really understand the code in the Batch-file.My understanding in batch-code is very basic.Can anybody tell me what I have to do, to make it work properly.

Thank You rejetto. I knew that but as I did not understand the batch-file (update.bat), I did not know where to place the quotes.Since yesterday I read a little about batch-files and now I know I have to put "%~dp0" in quotes.

But the main problem is still unsolved for me.Mp3toion.exe needs its ini-file in the directory in which it is working in. As this directory changes all the time in the loop it doesn't have the ini-file in the subdirectories in which it is executing. Without the ini-file to read the parameters it executes with the defaults in the program and that are only %2 and %1.

I don't know whether and how to resove this in an batch-file.Maybe it is necessary to change the program itself but I know even less about Delphi than about batch-files.

I like this solution with the detailed information from the ID-tag in the descript.ion very much, but without a working batch-solution for subdirectories would be far too much work to do. My MP3s are sorted:First directoty (root): MP3sFirst subdirectory: Initial letter of the artistSecond Subdirectory: Artist