IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

> Mass Tag/Filename Conversion
bd59903
post Mar 4 2011, 04:43
Post #1


Member


Group: Full Members
Posts: 9
Joined: 27-February 11
Member No.: 13913
Mp3tag Version: 2.47b



I use mp3tag for my HUGE audiobook collection
at the moment I do the following steps 1 at a time:
1. tag track #s
2. rename file according to directory (track # - directory)
3. get tag values from file name (title, author, album(series name) etc)
4. change title to "title - track #"

I think i can do this all in one step using "actions" but i cannot figure out how to handle the fact that in mass processing, some books have album values (series name) while others are "stand alone" books



any ideas?
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
DetlevD
post Mar 6 2011, 12:45
Post #2


Member


Group: Full Members
Posts: 5031
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.63



QUOTE (bd59903 @ Mar 4 2011, 04:43) *
I use mp3tag for my HUGE audiobook collection at the moment I do the following steps 1 at a time:
1. tag track #s
2. rename file according to directory (track # - directory)
3. get tag values from file name (title, author, album(series name) etc)
4. change title to "title - track #"
...

Is the sequence of step 2 and 3 correct?
If so ... does it mean, that ...
"tag values from file name (title, author, album(series name) etc)"
... are part of the directory name?
That sounds rather confusing. You should check your procedure.

For working on files with different structure of the file name it is recommended to simply use the Mp3tag Filter.

This filter expression reduces the amount of files in the list view to those files which are constructed of 3 parts divided by 2 times ' - ', that means the filter expression detects the number of delimiter strings.
"$div($sub($len(%_filename%),$len($replace(%_filename%,' - ',))),$len(' - '))" IS 2

This filter expression reduces the amount of files in the list view to those files which are constructed of 4 parts divided by 3 times ' - ', that means the filter expression detects the number of delimiter strings.
"$div($sub($len(%_filename%),$len($replace(%_filename%,' - ',))),$len(' - '))" IS 3

If you like to put the importance on the parts, then you can modify the filter expression to detect the number of value parts, in this case 4 parts.
"$add(1,$div($sub($len(%_filename%),$len($replace(%_filename%,' - ',))),$len(' - ')))" IS 4

DD.20110306.1302.CET

This post has been edited by DetlevD: Mar 6 2011, 13:00


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
bd59903
post Mar 8 2011, 02:03
Post #3


Member


Group: Full Members
Posts: 9
Joined: 27-February 11
Member No.: 13913
Mp3tag Version: 2.47b



QUOTE (DetlevD @ Mar 6 2011, 12:45) *
Is the sequence of step 2 and 3 correct?
If so ... does it mean, that ...
"tag values from file name (title, author, album(series name) etc)"
... are part of the directory name?
That sounds rather confusing. You should check your procedure.


I have to do it that way because most of the time the mp3 do not come with tag values i want/find useful, and the file names are the same
so i rename the folder as "'Author' - 'Series' # - 'Title'" then do from there



so what you are saying is that i can create action group to apply filter to use only those with 2 parts in filename, do everything i want
then apply filter to use files with 3 parts, etc?
Go to the top of the page
 
+Quote Post
DetlevD
post Mar 8 2011, 05:24
Post #4


Member


Group: Full Members
Posts: 5031
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.63



QUOTE (bd59903 @ Mar 8 2011, 02:03) *
I have to do it that way because most of the time the mp3 do not come with tag values i want/find useful, and the file names are the same so i rename the folder as "'Author' - 'Series' # - 'Title'" then do from there ...

Do you know that you can create user defined tag fields as you wish? ... and remove ... and use for all the things you want to do? You can use tag fields like temporary variables. You do not have to misuse folder names to store data. The filesystem does not support all characters and so there is loss of spelling accuracy to be expected.

QUOTE (bd59903 @ Mar 8 2011, 02:03) *
... so what you are saying is that i can create action group to apply filter to use only those with 2 parts in filename, do everything i want
then apply filter to use files with 3 parts, etc?

Yes, divide and conquer, that's the strategy.
The filter is part of the interactive interface of Mp3tag, the actions are part of the batch automatiion interface of Mp3tag. Both together makes tagging life easy.

DD.20110308.0528.CET


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
pone
post Mar 8 2011, 10:45
Post #5


Member


Group: Full Members
Posts: 1688
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.59b



my 4 step solution has the filter inbuilt to the formatstring by using a $if function and works fine. but do as you want
Go to the top of the page
 
+Quote Post
bd59903
post Mar 8 2011, 17:27
Post #6


Member


Group: Full Members
Posts: 9
Joined: 27-February 11
Member No.: 13913
Mp3tag Version: 2.47b



QUOTE (pone @ Mar 8 2011, 10:45) *
my 4 step solution has the filter inbuilt to the formatstring by using a $if function and works fine. but do as you want



i can figure out how to use the filters from the other guy in actions so i tried yours

it worked except for the TITLEs, it gets the track, artist, album, but does not get the title
from either the files with "track - artist - title.mp3"
or the ones that are "track - artist - album - title.mp3"
any ideas?
Go to the top of the page
 
+Quote Post
pone
post Mar 8 2011, 19:31
Post #7


Member


Group: Full Members
Posts: 1688
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.59b



ZITAT(bd59903 @ Mar 8 2011, 17:27) *
i can figure out how to use the filters from the other guy in actions so i tried yours

it worked except for the TITLEs, it gets the track, artist, album, but does not get the title
from either the files with "track - artist - title.mp3"
or the ones that are "track - artist - album - title.mp3"
any ideas?


ah yes, there was a little mistake caused by the forum's unability to display two following spaces.

that's the way:
QUELLTEXT
3. get tag values from file name (title, author, album(series name) etc)
Action: Guess Values
Guessing  Pattern: $if($eql($regexp($regexp(%_filename%,.*?( - ).*?,$1),(.* - ).*,$1), -  - ),$regexp(%_filename%,(.*) - (.*),$1 -  - $2),%_filename%)
Formatstring: %track% - %artist% - %album% - %title%


but already it should have worked for the ones which are written "track - artist - album - title.mp3"

This post has been edited by pone: Mar 8 2011, 19:35
Go to the top of the page
 
+Quote Post
bd59903
post Mar 9 2011, 00:24
Post #8


Member


Group: Full Members
Posts: 9
Joined: 27-February 11
Member No.: 13913
Mp3tag Version: 2.47b



QUOTE (pone @ Mar 8 2011, 19:31) *
ah yes, there was a little mistake caused by the forum's unability to display two following spaces.

that's the way:
CODE
3. get tag values from file name (title, author, album(series name) etc)
Action: Guess Values
Guessing  Pattern: $if($eql($regexp($regexp(%_filename%,.*?( - ).*?,$1),(.* - ).*,$1), -  - ),$regexp(%_filename%,(.*) - (.*),$1 -  - $2),%_filename%)
Formatstring: %track% - %artist% - %album% - %title%


but already it should have worked for the ones which are written "track - artist - album - title.mp3"


nope, i dont know if i am doing something wrong but the TITLE is still not being grabbed from the filename

guess value,
Source Format: %track% - %artist% - %album% - %title%
Guessing Pattern:
CODE
$if($eql($regexp($regexp(%_filename%,.*?( - ).*?,$1),(.* - ).*,$1), -  - ),$regexp(%_filename%,(.*) - (.*),$1 -  - $2),%_filename%)
Go to the top of the page
 
+Quote Post
pone
post Mar 9 2011, 01:23
Post #9


Member


Group: Full Members
Posts: 1688
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.59b



ZITAT(bd59903 @ Mar 9 2011, 00:24) *
nope, i dont know if i am doing something wrong but the TITLE is still not being grabbed from the filename

guess value,
Source Format: %track% - %artist% - %album% - %title%
Guessing Pattern:
QUELLTEXT
$if($eql($regexp($regexp(%_filename%,.*?( - ).*?,$1),(.* - ).*,$1), -  - ),$regexp(%_filename%,(.*) - (.*),$1 -  - $2),%_filename%)


I'm sorry. I'm using Mp3Tag in German and I've messed up the terms Source Format & Guessing Pattern.
It's:
Source Format:
QUELLTEXT
$if($eql($regexp($regexp(%_filename%,.*?( - ).*?,$1),(.* - ).*,$1), -  - ),$regexp(%_filename%,(.*) - (.*),$1 -  - $2),%_filename%)
Guessing Pattern: %track% - %artist% - %album% - %title%

This post has been edited by pone: Mar 9 2011, 01:29
Go to the top of the page
 
+Quote Post

Posts in this topic


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: 30th October 2014 - 16:54