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.

> Can't get total albums script to work
post Sep 17 2006, 19:43
Post #1


Group: Members
Posts: 4
Joined: 17-September 06
Member No.: 3689
Mp3tag Version: 2.36a

I've spent hours on this. :frustration: After I finally figured out that, for some un-Godly reason, %track% and %_total% return tracknumbers in different formats, I'm still running into problems. Basically, I want this loop to sort by album, and increment a counter variable everytime it finds a complete album, this telling me how many complete albums I have in any folder.

Here's my code (carriage returns are entered in for readability):
List compiled by %_app%

'['COLOR="Blue"']''['SIZE="5"']'MUSIC'['/COLOR']' - '['COLOR="Red"']'$get(no_albums) Albums'['/COLOR']' and change

For some reason, it outputs zero, even though when change $puts to $put it returns numbers other than zero. Even this is weird. I was testing it on an folder with 2 albums and a single track in it. The count it should have returned while looping was 1, 2. It returned 1, 2, 6. I have NO idea where that 6 is coming from, especially since no_albums can only be increased by one and that output occurs EVERYTIME that function is called.

So, not only is the function being magically called a 3rd time, it's also being increased magically by 4. Can anyone help?!? Argghghg.
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: 21st November 2017 - 20:12