IPB

Welcome Guest ( Log In | Register )

6 Pages V   1 2 3 > »   
Reply to this topicStart new topic
foo_tradersfriend, Live Show Tagger
billcow
post Aug 6 2003, 06:36
Post #1





Group: Members
Posts: 141
Joined: 26-February 03
Member No.: 5194



Small suggestion - make it work with files that have 2 digits in the track number in the filename. Right now it only does this when the disc number is present. With etree files I don't think this is an issue, but the Further standard allows two-digit track numbers, and such files don't work.
Go to the top of the page
+Quote Post
foosion
post Aug 6 2003, 09:49
Post #2





Group: FB2K Moderator (Donating)
Posts: 4336
Joined: 24-February 03
Member No.: 5153



Good to know there's actually somebody who uses this plugin.

Thanks for finding this bug. It's fixed now.

Perhaps I should say something about how the plugin guesses things:

Date: the plugin looks for YYYY-MM-DD or YY-MM-DD in the filename, where Y, M, and D are digits. I found this to work better than extracting the date from the text files, as dates occur in text files in a wide variety of formats.

Tracknumber and discnumber: taken from the filename. The filename must be in one of the following formats for this to work:
{artist}{date}{sth}d{discnumber}t{tracknumber}{sth else}
{artist}{date}{sth}d{discnumber}{tracknumber}{sth else}
{artist}{date}{sth}t{tracknumber}{sth else}
The discnumber is always only one digit, the tracknumber must be at least one digit. {artist} may be arbitrary text that does not contain a digit. {date} should be in YYYY-MM-DD or YY-MM-DD format. {sth} may be anything not looking like a discnumber or tracknumber. {sth else} may be arbitrary text.

The rest of the information is extracted from a text file as follows:

Artist and venue: These are extracted from the header, which should be in one of the following forms:

1)
artist: 1 line
date: 1 line
venue: 1 or more lines

2)
artist: 1 line
venue: 1 or more lines
date: 1 line

The plugin uses heuristics to recognize the line containing the date (the plugin can detect purely numerical formats as well as semi-textual formats like June 1, 2003). The first empty line terminates the header.

Title: Track titles are found by looking at all lines following the header. Lines describing tracks are have to start with X, tX, dytX, dYX, where X is the tracknumber and Y is the discnumber. This may be followed by '.', ')', '.)', ':', ' - ', or just whitespace.
If Y is not given, it is deduced as follows: If this is the first track found, Y is 1. If X is greater than the previously found tracknumber, Y is the same as there. Otherwise, Y is one more than the previous discnumber.

I hope this helps in case you run into problems with the plugin.


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
upNorth
post Aug 6 2003, 10:26
Post #3





Group: Members
Posts: 1099
Joined: 18-March 03
From: Oslo, Norway
Member No.: 5569



Could you add the option to change where it looks for a text file? It would like it to look in the same directory, not one level up.
Go to the top of the page
+Quote Post
foosion
post Aug 6 2003, 14:17
Post #4





Group: FB2K Moderator (Donating)
Posts: 4336
Joined: 24-February 03
Member No.: 5153



QUOTE (upNorth @ Aug 6 2003, 11:26 AM)
Could you add the option to change where it looks for a text file? It would like it to look in the same directory, not one level up.

It should actually look in both directories. It then chooses the text file that shares the longest common prefix with your music file.
If the plugin uses the wrong text file, please tell me the name of (one of) the music files and of all text files in the same and in the parent directory.


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
upNorth
post Aug 6 2003, 14:28
Post #5





Group: Members
Posts: 1099
Joined: 18-March 03
From: Oslo, Norway
Member No.: 5569



I probably got the use of this plugin wrong. Is it for albums that has a text file for every track or albums that has a text file for the whole album? I guess the first, but I was hoping the second. It would be a nice addition when using the masstagger and you have a text file with all the correct info. Making copy and paste easier.
Go to the top of the page
+Quote Post
foosion
post Aug 6 2003, 14:35
Post #6





Group: FB2K Moderator (Donating)
Posts: 4336
Joined: 24-February 03
Member No.: 5153



It is intended for albums/concerts with one text file for the whole album/concert. If you want to use it for single tracks with one text file each, you could set tracknumber (and discnumber, if present) to 1 before applying "guess values from text file". If the plugin can find the correct text file using the "longest common prefix" rule, then this should work as well.


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
upNorth
post Aug 6 2003, 14:55
Post #7





Group: Members
Posts: 1099
Joined: 18-March 03
From: Oslo, Norway
Member No.: 5569



Sorry, don't know what I did before, but it works now.

I have a problem when I try to edit a text file though.
A "\.\" directory is added like this:
D:\Music\Fugazi - 13 Songs\.\13 Songs.txt
When it should have been:
D:\Music\Fugazi - 13 Songs\13 Songs.txt
Go to the top of the page
+Quote Post
ssamadhi97
post Aug 6 2003, 15:03
Post #8





Group: Developer (Donating)
Posts: 1203
Joined: 10-February 02
From: Endless Water
Member No.: 1305



QUOTE (upNorth @ Aug 6 2003, 03:55 PM)
I have a problem when I try to edit a text file though.
A "\.\" directory is added like this:
D:\Music\Fugazi - 13 Songs\.\13 Songs.txt
When it should have been:
D:\Music\Fugazi - 13 Songs\13 Songs.txt

That's the same actually, so it shouldn't be a problem.


--------------------
A riddle is a short sword attached to the next 2000 years.
Go to the top of the page
+Quote Post
foosion
post Aug 6 2003, 15:05
Post #9





Group: FB2K Moderator (Donating)
Posts: 4336
Joined: 24-February 03
Member No.: 5153



QUOTE (upNorth @ Aug 6 2003, 03:55 PM)
I have a problem when I try to edit a text file though.
A "\.\" directory is added like this:
D:\Music\Fugazi - 13 Songs\.\13 Songs.txt
When it should have been:
D:\Music\Fugazi - 13 Songs\13 Songs.txt

I suppose you're using Win2k/XP? ssamadhi97 already mentioned this to me. Strangely enough, it works on Win98 with either Notepad or SciTE as default editor.


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
ssamadhi97
post Aug 6 2003, 15:12
Post #10





Group: Developer (Donating)
Posts: 1203
Joined: 10-February 02
From: Endless Water
Member No.: 1305



QUOTE (ssamadhi97 @ Aug 6 2003, 04:03 PM)
That's the same actually, so it shouldn't be a problem.

..note though that it seems to break direct file opening in programs - while using this kind of directory name works nicely in Windows' Common Dialogs.. rolleyes.gif


--------------------
A riddle is a short sword attached to the next 2000 years.
Go to the top of the page
+Quote Post
upNorth
post Aug 6 2003, 15:25
Post #11





Group: Members
Posts: 1099
Joined: 18-March 03
From: Oslo, Norway
Member No.: 5569



Yes I use WinXP.

I have a feature request that I could make use of, but I guess it's not really in the scope of this plugin in the first place:
An option in preferences, to set the file types to look for. A custom line like the one for "Album list" and "Core".
Go to the top of the page
+Quote Post
foosion
post Aug 6 2003, 15:37
Post #12





Group: FB2K Moderator (Donating)
Posts: 4336
Joined: 24-February 03
Member No.: 5153



QUOTE (upNorth @ Aug 6 2003, 04:25 PM)
I have a feature request that I could make use of, but I guess it's not really in the scope of this plugin in the first place:
An option in preferences, to set the file types to look for. A custom line like the one for "Album list" and "Core".

I'm not sure what you mean here. Do you propose to have a format string that evaluates to the name of the text file to be used? Or restrict the effects of "guess values from text file" to certain types of music files?


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
upNorth
post Aug 6 2003, 15:55
Post #13





Group: Members
Posts: 1099
Joined: 18-March 03
From: Oslo, Norway
Member No.: 5569



QUOTE (foosion @ Aug 6 2003, 04:37 PM)
QUOTE (upNorth @ Aug 6 2003, 04:25 PM)
I have a feature request that I could make use of, but I guess it's not really in the scope of this plugin in the first place:
An option in preferences, to set the file types to look for. A custom line like the one for "Album list" and "Core".

I'm not sure what you mean here. Do you propose to have a format string that evaluates to the name of the text file to be used? Or restrict the effects of "guess values from text file" to certain types of music files?

I'll try to explain it better.
For foobar's database you have the option to define the file types you want it to remember.
Restrict incoming file types to e.g. *.MPC;*.MP3;*.OGG;*.WMA

If you could add a feature like this, I would be able to open files like: *.log;*.nfo;*.m3u from within foobar to use with masstagger when renaming and fixing tags.

If you think this is way off target, just forget it. I like the foosion_pack anyway smile.gif
Go to the top of the page
+Quote Post
foosion
post Aug 6 2003, 19:18
Post #14





Group: FB2K Moderator (Donating)
Posts: 4336
Joined: 24-February 03
Member No.: 5153



QUOTE (upNorth @ Aug 6 2003, 04:55 PM)
If you could add a feature like this, I would be able to open files like: *.log;*.nfo;*.m3u from within foobar to use with masstagger when renaming and fixing tags.

If you think this is way off target, just forget it. I like the foosion_pack anyway  smile.gif

Ah, now I see whart you mean. Unfortunately, this plugin is geared towards text files describing concerts like on etree.org, which are in a semiformal format. So the parsing would fail for m3u files. I don't even know about the format used by the nfo and log files you mentioned.
Perhaps this would be a nice addition, but it is not what the plugin was intended for. So I won't add this, unless I get really, really bored. But don't count on that. tongue.gif


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
foosion
post Aug 14 2003, 20:08
Post #15





Group: FB2K Moderator (Donating)
Posts: 4336
Joined: 24-February 03
Member No.: 5153



Important bug fix!

Please redownload the plugin! Previously, the data read from the text file was not translated to utf8 (I somehow missed that dry.gif).
Most of those text files use only ASCII chars, so this wasn't a problem. But then again, someone might use ASCII 150 instead of - (ASCII 45). The two look identical with monospaced fonts.
Non-utf8 values in tags make your playlist look jerky, and opening Album List will block foobar (at least it does on my Win98SE). blink.gif


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
foosion
post Oct 12 2003, 02:10
Post #16





Group: FB2K Moderator (Donating)
Posts: 4336
Joined: 24-February 03
Member No.: 5153



foo_tradersfriend 0.4.0

Update for SDK 0.7.1. The plugin now integrates into the official masstagger rather than replacing it. The direct access to single masstagger actions is missing from this version. I'll put that functionality into a separate plugin.

download link: plugin, source code


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
ottar
post Oct 13 2003, 01:03
Post #17





Group: Members
Posts: 17
Joined: 7-August 02
Member No.: 2978



THANKS! This greatly improves my Foobar2000 experience. Some requests: give me a preview of what tradersfriend will parse from the file, and let me browse for the text file, if tradersfriend picks the wrong one.

This is great stuff. I saw this morning that 0.7.1 was out, got the special installer, got the latest foo_syfm and tradersfriend, and my life is very much improved.
Go to the top of the page
+Quote Post
Raymond
post Oct 13 2003, 04:18
Post #18





Group: Members
Posts: 127
Joined: 13-February 03
Member No.: 4983



This plugin remind me of something.
Generally I don't do any tagging thing, simply rename files into the format like
tracknum - title

I found this nice feather in another rename tool:
For example, there're 10 files here
file1
file2
...
file10

And there's a txt file, which content is 10 lines:
name1
name2
...
name10

Then the tool renames the 10 files according to the content of txt file, one file per line. It's very handy!

Can this plugin do this?
Go to the top of the page
+Quote Post
foosion
post Oct 13 2003, 09:55
Post #19





Group: FB2K Moderator (Donating)
Posts: 4336
Joined: 24-February 03
Member No.: 5153



QUOTE (ottar @ Oct 13 2003, 02:03 AM)
THANKS! This greatly improves my Foobar2000 experience. Some requests: give me a preview of what tradersfriend will parse from the file, and let me browse for the text file, if tradersfriend picks the wrong one.

Nice features, that I already thought about myself, so they might be implemented eventually.


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
foosion
post Oct 13 2003, 10:07
Post #20





Group: FB2K Moderator (Donating)
Posts: 4336
Joined: 24-February 03
Member No.: 5153



@Raymond:
You can also do this with plain masstagger from 0.7.1 using the "Input data (one line per file)" tag editing action. Use "%temp%" as scheme and paste the contents of the text file in the text box titled "Input data...". After that, rename the files with masstagger; "Output filename format" should be set to "%temp%". Now you can now use masstagger again to get rid of the %temp% tag...

foo_tradersfriend can not simplify this process. In fact, it will most likely fail to parse the text files given the format you described. foo_tradersfriend relies on the presence of a header at the beginning of the file and on tracknumbers on each track's line.


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
Raymond
post Oct 13 2003, 12:54
Post #21





Group: Members
Posts: 127
Joined: 13-February 03
Member No.: 4983



QUOTE (foosion @ Oct 13 2003, 01:07 AM)
@Raymond:
You can also do this with plain masstagger from 0.7.1 using the "Input data (one line per file)" tag editing action. Use "%temp%" as scheme and paste the contents of the text file in the text box titled "Input data...". After that, rename the files with masstagger; "Output filename format" should be set to "%temp%". Now you can now use masstagger again to get rid of the %temp% tag...

emm...it's not so convenient to do it with masstagger. Then I wish masstagger can rename the files directly from txt file.
Go to the top of the page
+Quote Post
anza
post Oct 13 2003, 14:07
Post #22





Group: Members
Posts: 1317
Joined: 4-January 03
From: Finland
Member No.: 4418



oh well, forget that idea smile.gif

This post has been edited by anza: Oct 13 2003, 14:08
Go to the top of the page
+Quote Post
dev0
post Oct 31 2003, 14:41
Post #23





Group: Developer
Posts: 1679
Joined: 23-December 01
From: Germany
Member No.: 731



<edit>FLAC Fingerprint Writing would be a nice feature, but shouldn't be integrated into a Masstager component. Anyone up for foo_ffp?</edit>

dev0
Go to the top of the page
+Quote Post
Despite
post Nov 1 2003, 00:23
Post #24





Group: Members
Posts: 6
Joined: 1-November 03
Member No.: 9589



I noticed this plugin doesn't write tracknumber tags. Out of curiousity, what's the reasoning behind this, and is there another easy way to do it? I thought I had way with "Guess from filename" but my newness hasn't gotten it to work.

Any info appreciated.

Despite
Go to the top of the page
+Quote Post
foosion
post Nov 1 2003, 10:19
Post #25





Group: FB2K Moderator (Donating)
Posts: 4336
Joined: 24-February 03
Member No.: 5153



QUOTE (Despite @ Nov 1 2003, 01:23 AM)
I noticed this plugin doesn't write tracknumber tags.  Out of curiousity, what's the reasoning behind this, and is there another easy way to do it?  I thought I had way with "Guess from filename" but my newness hasn't gotten it to work.

Any info appreciated.

Despite

Easy ways to add tracknumber:
  • "Auto tracknumber" for single disc shows.
  • "Guess values from filename" for multi disc shows.
    For filenames like um2001-06-21dYrX.ext use the format "um%date%d%disc%t%tracknumber%". With filenames like these the plugin can also deduce disc and tracknumbers, even if it does not write the tracknumber.
I might add tracknumber writing later today. I don't really remember what was the reason for not doing it.


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post

6 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th April 2014 - 21:05