ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Count my jazz albums

<< < (2/2)

superboyac:
This sounds interesting.  I would suggest buying MP3 Collector, and using it's exporting features.    I haven't exported for a while, but last time I remember, it would export all the mp3 files into one big long grid (you can tweak how it appears).  The only problem I had with it is that sometimes, I'd want to just see a list of the albums, and not any of the tracks.  But there was no way (at the time) to export a list of albums without tracks.

Nod5:
given a folder structure like this,

--- ---x:\cds\ARTIST1\ALBUM1\file.mp3
x:\cds\ARTIST1\ALBUM2\file.mp3
x:\cds\ARTIST2\ALBUM1\file.mp3
x:\cds\ARTIST2\ALBUM2\CD1\file.mp3
x:\cds\ARTIST2\ALBUM2\CD2\file.mp3
x:\cds\ARTIST2\OTHERFOLDER\no .mp3/.ogg/.wma/.wav files
...the AHK script below takes a folder as input, counts the total number of artists, counts the total number of albums and output a list with this format:

--- ---total albums = XX
total artists = YY
-----------

ARTIST1
  ALBUM1
  ALBUM2
ARTIST2
  ALBUM1
  ALBUM2
...script:

--- ---FileSelectFolder, xroot,,3, Select root CD folder. Example:
C:\rootCD`nThen click OK to run script
if xroot =
 exitapp
Loop, %xroot%\*.* , 2, 0
{
xartist = %A_LoopFileName%
xtext = %xtext%%xartist%`n
xartistcount += 1

Loop, %xroot%\%xartist%\*.* , 2, 0
{
xalbum = %A_LoopFileName%
Loop, %xroot%\%xartist%\%xalbum%\*.*,,1     ;recursive file loop
{
if A_LoopFileExt not in mp3,ogg,wma,wav             ;add ext. for other music file formats if needed
 continue
xtext = %xtext%%A_space%%A_space%%xalbum%`n
xalbumcount += 1
break
}
}
}
xout = total albums = %xalbumcount%`ntotal artists = %xartistcount%`n-----------`n%xtext%
xfile = %A_Temp%\%A_Now%.txt
FileAppend, %xout%, %xfile%
run, %xfile%

Navigation

[0] Message Index

[*] Previous page

Go to full version