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
> filter for mp3’s that have more than one album name in the same folder?
bobbydriver
post Jan 19 2012, 12:17
Post #1


Member


Group: Full Members
Posts: 9
Joined: 28-July 11
Member No.: 14967
Mp3tag Version: 2.47b



Slightly obscure question I know but is there anyway I can script or filter for mp3’s that have more than one album name in the same folder?

My folder structure is

%Genre%\%artist%\%year% %album%\%track% - %title%

I seem to have a few stray albums folder where the album tag is inconsistent across the mp3s. With about 50,000 mp3s it gets hard to spot them all manually

I can’t figure out how to do it. Maybe that is because it’s impossible but worth asking you clever lot!
Go to the top of the page
 
+Quote Post
ohrenkino
post Jan 19 2012, 12:56
Post #2


Member


Group: Full Members
Posts: 3150
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.55a



ZITAT(bobbydriver @ Jan 19 2012, 12:17) *
Slightly obscure question I know but is there anyway I can script or filter for mp3’s that have more than one album name in the same folder?

My folder structure is

%Genre%\%artist%\%year% %album%\%track% - %title%

I seem to have a few stray albums folder where the album tag is inconsistent across the mp3s. With about 50,000 mp3s it gets hard to spot them all manually

I can’t figure out how to do it. Maybe that is because it’s impossible but worth asking you clever lot!

I doubt that you can do it within MP3tag as a) the filetype is not Mp3tag's domain and cool.gif MP3tag only looks at the current file but does not compare successive ones.

What you could do is to dump a list of filenames in a text-file and then check this text-file e.g. with Excel.
Open a command shell and navigate to the top folder of your music library
enter the command

dir *.jpg /b /s > covers.txt
Open the textfile in e.g. Excel, separate the filenames from the path and then enter a formula like
if(a1;b1;0;1)
and filter for the 1s.


--------------------
42 - wie war die Frage / what was the question / comment était la question
Go to the top of the page
 
+Quote Post
bobbydriver
post Jan 19 2012, 14:39
Post #3


Member


Group: Full Members
Posts: 9
Joined: 28-July 11
Member No.: 14967
Mp3tag Version: 2.47b



QUOTE (ohrenkino @ Jan 19 2012, 12:56) *
I doubt that you can do it within MP3tag as a) the filetype is not Mp3tag's domain and cool.gif MP3tag only looks at the current file but does not compare successive ones.

What you could do is to dump a list of filenames in a text-file and then check this text-file e.g. with Excel.
Open a command shell and navigate to the top folder of your music library
enter the command

dir *.jpg /b /s > covers.txt
Open the textfile in e.g. Excel, separate the filenames from the path and then enter a formula like
if(a1;b1;0;1)
and filter for the 1s.


You’ve put me along the right lines. I can export the folder name and the album tag (using the export facility) and then load them into a database and use SQL to identify the offending tags.

Thanks
Go to the top of the page
 
+Quote Post
DetlevD
post Jan 19 2012, 20:24
Post #4


Member


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



QUOTE (bobbydriver @ Jan 19 2012, 12:17) *
Slightly obscure question I know but is there anyway I can script or filter for mp3’s that have more than one album name in the same folder? ...

Maybe this export script can help ...

$filename($getEnv('USERPROFILE')'\Desktop\AlbumDiff.txt',UTF-8)
$loop(%_folderpath%,1)$loop(%ALBUM%,1)%_folderpath%' === '%ALBUM%
$loopend()$loopend()

DD.20120119.2025.CET


Possibly this report is a little bit more comfortable to read ...

1: $filename($getEnv('USERPROFILE')'\Desktop\AlbumDiff.txt',UTF-8)
2: $loop(0)$loop(%_folderpath%,1)$puts(MaxWidth1,$ifgreater($len(%_folderpath%),$get(MaxWidth1),$len(%_folderpath%),$get(MaxWidth1)))$loopend()
3: $loop(%_folderpath%,1)$loop(%ALBUM%,1)$left(%_folderpath%$repeat($char(32),$get(MaxWidth1)),$get(MaxWidth1))' ==> '%ALBUM%
4: $loopend()$loopend()$repeat('=',$get(MaxWidth1))$loopend()
5: $loop(0)$loop(%ALBUM%,1)$puts(MaxWidth2,$ifgreater($len(%ALBUM%),$get(MaxWidth2),$len(%ALBUM%),$get(MaxWidth2)))$loopend()
6: $loop(%ALBUM%,1)$loop(%_folderpath%,1)$left(%ALBUM%$repeat($char(32),$get(MaxWidth2)),$get(MaxWidth2))' ==> '%_folderpath%
7: $loopend()$loopend()$repeat('=',$get(MaxWidth2))$loopend()


DD.20110120.0640.CET

This post has been edited by DetlevD: Jan 20 2012, 06:41


--------------------
* 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

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: 20th May 2013 - 20:29