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.

 
Reply to this topicStart new topic
> CREATE DIRECTORY IF
faisdlair
post Jan 7 2018, 16:04
Post #1


Member


Group: Full Members
Posts: 57
Joined: 2-March 16
From: CANADA
Member No.: 21833
Mp3tag Version: 2.75b



Hi

One more action i'de like to set

If files are MP3 then transfer them to "X:\Shared Music\MP3"
or
If files are FLAC then transfer them to"X:\Shared Music\FLAC"
or
If files are DSD then transfer them to"X:\Shared Music\DSD"

thank you

Martin
Go to the top of the page
 
+Quote Post
ohrenkino
post Jan 7 2018, 16:20
Post #2


Member


Group: Full Members
Posts: 9465
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.85k



ZITAT(faisdlair @ Jan 7 2018, 16:04) *
Hi

One more action i'de like to set

If files are MP3 then transfer them to "X:\Shared Music\MP3"
or
If files are FLAC then transfer them to"X:\Shared Music\FLAC"
or
If files are DSD then transfer them to"X:\Shared Music\DSD"

thank you

Martin

I am not sure about those dsd files - but I think you can use the information variable %_tag_read%.
An action of the type "Format value" for _Filename:
Format string: X:\Shared Music\$replace(%_tag_read%,ID3V2.3,MP3,ID3V1,MP3,FLAC,FLAC,DSD,DSD)\%_filename%

As I said: check the dsd files and see what it says for %_tag_read% and then enter that for the first DSD in the replace-expression.


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
faisdlair
post Jan 7 2018, 16:32
Post #3


Member


Group: Full Members
Posts: 57
Joined: 2-March 16
From: CANADA
Member No.: 21833
Mp3tag Version: 2.75b



QUOTE (ohrenkino @ Jan 7 2018, 10:20) *
I am not sure about those dsd files - but I think you can use the information variable %_tag_read%.
An action of the type "Format value" for _Filename:
Format string: X:\Shared Music\$replace(%_tag_read%,ID3V2.3,MP3,ID3V1,MP3,FLAC,FLAC,DSD,DSD)\%_filename%

As I said: check the dsd files and see what it says for %_tag_read% and then enter that for the first DSD in the replace-expression.


ok look what i have

DSD is ID3V2.3


Go to the top of the page
 
+Quote Post
ohrenkino
post Jan 7 2018, 16:50
Post #4


Member


Group: Full Members
Posts: 9465
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.85k



ZITAT(faisdlair @ Jan 7 2018, 16:32) *
ok look what i have

DSD is ID3V2.3

drat!

Then we have to split the filename like:
An action of the type "Format value" for _Filename:
Format string: X:\Shared Music\$regexp(%_filename_ext%,.*\.(.*),$1)\%_filename%

The disadvantage of that solution is that you also get separate folders for MP4 files and all other types that manifest in the extension.


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
faisdlair
post Jan 7 2018, 17:10
Post #5


Member


Group: Full Members
Posts: 57
Joined: 2-March 16
From: CANADA
Member No.: 21833
Mp3tag Version: 2.75b



QUOTE (ohrenkino @ Jan 7 2018, 10:50) *
drat!

Then we have to split the filename like:
An action of the type "Format value" for _Filename:
Format string: X:\Shared Music\$regexp(%_filename_ext%,.*\.(.*),$1)\%_filename%

The disadvantage of that solution is that you also get separate folders for MP4 files and all other types that manifest in the extension.


Like you said , it creates many folders

dsf
flac
Heaven And Hell (DSD)
Kodama
mp3
Paranoid (DSD)
Wake Pig

No Artist folder, only albums and extensions




Go to the top of the page
 
+Quote Post
DetlevD
post Jan 7 2018, 17:15
Post #6


Member


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



QUOTE (faisdlair @ Jan 7 2018, 16:04) *
... action i'de like to set ...
If files are DSD then transfer them to"X:\Shared Music\DSD" ...

As user 'ohrenkino' already has worked out, ...
do apply an action "Format value" on the pseudo tagfield _FILENAME ...
with the formatstring ...
$if($eql(%_extension%,'DSD'),'X:\Shared Music\DSD\'%_filename_ext%,%_path%)

You may create an action group to collect other filename extensions into one action, to move only dedicated files by one call of the action group, e. g. ...

$if($eql(%_extension%,'DSD'),'X:\Shared Music\DSD\'%_filename_ext%,%_path%)
$if($eql(%_extension%,'DSF'),'X:\Shared Music
\DSF\'%_filename_ext%,%_path%)
$if($eql(%_extension%,'MP3'),'X:\Shared Music
\MP3\'%_filename_ext%,%_path%)
$if($eql(%_extension%,'FLAC'),'X:\Shared Music
\FLAC\'%_filename_ext%,%_path%)

... or just simplified for all file extensions ...
Format value:
_FILENAME <== 'X:\Shared Music\'$upper(%_extension%)'\'%_filename_ext%

DD.20180107.1715.CET, DD.20180107.1843.CET

This post has been edited by DetlevD: Jan 7 2018, 18:43


--------------------
* 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
faisdlair
post Jan 7 2018, 17:40
Post #7


Member


Group: Full Members
Posts: 57
Joined: 2-March 16
From: CANADA
Member No.: 21833
Mp3tag Version: 2.75b



QUOTE (DetlevD @ Jan 7 2018, 11:15) *
As user 'ohrenkino' already has worked out, ...
do apply an action "Format value" on the pseudo tagfield _FILENAME ...
with the formatstring ...
$if($eql(%_extension%,'DSF'),'X:\Shared Music\DSD\'%_filename_ext%,%_path%)

You may create an action group to collect other filename extensions into one action, to move selected files all at once by one call of the action group, e. g.

$if($eql(%_extension%,'DSF'),'X:\Shared Music\DSD\'%_filename_ext%,%_path%)
$if($eql(%_extension%,'MP3'),'X:\Shared Music\MP3\'%_filename_ext%,%_path%)
$if($eql(%_extension%,'FLAC'),'X:\Shared Music\FLAC\'%_filename_ext%,%_path%)


DD.20180107.1715.CET


Same thing , it creates too many folders

DSD, FLAC MP3, and creates album folders.

DSD FLAC AND MP3 are empty and album folders contains songs

What i want to create is

X\Shared Music\DSD\Journey\Greatest Hits (DSD)\Track - title
X\Shared Music\MP3\3\Wake Pig\Track - title
X\Shared Music\FLAC\Alcest\Kodama\Track - title

Martin


Go to the top of the page
 
+Quote Post
ohrenkino
post Jan 7 2018, 17:55
Post #8


Member


Group: Full Members
Posts: 9465
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.85k



ZITAT(faisdlair @ Jan 7 2018, 17:40) *
...What i want to create is

X\Shared Music\DSD\Journey\Greatest Hits (DSD)\Track - title
X\Shared Music\MP3\3\Wake Pig\Track - title
X\Shared Music\FLAC\Alcest\Kodama\Track - title

Martin

OK, but you did not say so in the first post.
I think we are all a little too complicated as the extension already exists - what about

Format value for %_filename%
Format string: X:\Shared Music\%_extension%\%albumartist%\$num(%track%,2) - %title%
(I wonder where the album is gone ... and I wonder where the "3" for the MP3 folder comes from)


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
faisdlair
post Jan 7 2018, 17:58
Post #9


Member


Group: Full Members
Posts: 57
Joined: 2-March 16
From: CANADA
Member No.: 21833
Mp3tag Version: 2.75b



QUOTE (ohrenkino @ Jan 7 2018, 11:55) *
OK, but you did not say so in the first post.
I think we are all a little too complicated as the extension already exists - what about

Format value for %_filename%
Format string: X:\Shared Music\%_extension%\%albumartist%\$num(%track%,2) - %title%
(I wonder where the album is gone ... and I wonder where the "3" for the MP3 folder comes from)


3 is the name of the band

CJOINT

Kodama, Wake Pig and Greatest Hits are Album Folders

This post has been edited by faisdlair: Jan 7 2018, 18:00
Go to the top of the page
 
+Quote Post
ohrenkino
post Jan 7 2018, 18:00
Post #10


Member


Group: Full Members
Posts: 9465
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.85k



ZITAT(faisdlair @ Jan 7 2018, 17:58) *
3 is the name of the band

Ah, ok.
then I have to append my suggestion for a
format string: X:\Shared Music\%_extension%\%albumartist%\%album%\$num(%track%,2) - %title%


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
faisdlair
post Jan 7 2018, 18:04
Post #11


Member


Group: Full Members
Posts: 57
Joined: 2-March 16
From: CANADA
Member No.: 21833
Mp3tag Version: 2.75b



QUOTE (ohrenkino @ Jan 7 2018, 12:00) *
Ah, ok.
then I have to append my suggestion for a
format string: X:\Shared Music\%_extension%\%albumartist%\%album%\$num(%track%,2) - %title%


PERFECT, but one more thing

It creates folder like

dsf
mp3
flac

Can they be like that (capitalize)

DSD (if not DSF)
MP3
FLAC

thank you

Martin
Go to the top of the page
 
+Quote Post
ohrenkino
post Jan 7 2018, 18:07
Post #12


Member


Group: Full Members
Posts: 9465
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.85k



ZITAT(faisdlair @ Jan 7 2018, 18:04) *
PERFECT, but one more thing

It creates folder like
...

DSD (if not DSF)
MP3
FLAC

thank you

Martin

format string: X:\Shared Music\$upper(%_extension%)\%albumartist%\%album%\$num(%track%,2) - %title%


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
faisdlair
post Jan 7 2018, 18:11
Post #13


Member


Group: Full Members
Posts: 57
Joined: 2-March 16
From: CANADA
Member No.: 21833
Mp3tag Version: 2.75b



QUOTE (ohrenkino @ Jan 7 2018, 12:07) *
format string: X:\Shared Music\$upper(%_extension%)\%albumartist%\%album%\$num(%track%,2) - %title%


Perfect

thank you again

Martin
Go to the top of the page
 
+Quote Post
DetlevD
post Jan 7 2018, 18:19
Post #14


Member


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



QUOTE (faisdlair @ Jan 7 2018, 17:40) *
Same thing , it creates too many folders ...

The given actions can only do what they should do, which is to apply the programmatic given file extensions.
It seems that you did something wrong.

DD.20180107.1819.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
faisdlair
post Jan 7 2018, 18:25
Post #15


Member


Group: Full Members
Posts: 57
Joined: 2-March 16
From: CANADA
Member No.: 21833
Mp3tag Version: 2.75b



What ohrenkino writes in his last quote was perfect for me

It is working like i want now

Sorry

Martin
Go to the top of the page
 
+Quote Post

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: 18th January 2018 - 12:52