Listing all songs ends too early

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey for Windows 4.

Moderators: Gurus, Addon Administrators

sebastiaankop
Posts: 9
Joined: Thu Sep 13, 2018 12:18 pm

Listing all songs ends too early

Post by sebastiaankop »

Hi all,

i'm trying to list all songs to a file using SDB.AllVisibleSongList. While I get the correct song count (31000+) the script generates an error on record 5201. Trying to start with that record works. but then it gives another error a lot of records later (not the same number, not incremental).

Code: Select all

    dim list, i
    set list = SDB.AllVisibleSongList
    oFile.WriteLine(list.Count)
    for i = 0 to list.Count-1
        oFile.WriteLine(i & " [" & list.item(i).Title & "]")
    next
Does anyone has an idea why this happens?

Regards,
Sebastiaan.