Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Technical Support

Reply
Thread Tools Search this Thread Display Modes
Old 4th April 2022, 23:59   #1
drumskirun
Junior Member
 
Join Date: Apr 2022
Posts: 2
Can you inspect the Media Library database using just the main.dat file?

I lost some music recently in a botched drive migration but was hoping to maybe see what it was that I had lost by trying to inspect the Media Library database (located in AppData/Roaming/Winamp/Plugins/ml). From what I've read, the database consists of two files, a main.dat and a main.idx. It seems as though the database is some proprietary thing Nullsoft made
code:
http://wiki.winamp.com/wiki/Nullsoft_Database_Engine
.

Unfortunately, my database updated itself after the migration, so it no longer contains any of the songs that I lost. However, there's a backup copy of main.dat from a year ago in that directory (called something like main.dat.n3w00001A60 with a 40MB file size, so it seems valid) but, alas, there's no accompanying main.idx file.

I found a Node library
code:
https://github.com/Wiiseguy/node-nde
that's able to read my current database, but when I try to pass it the path to the old .dat file with the current .idx file, unsurprisingly it doesn't work.

Does anyone know if it would be possible to inspect that older copy of the database (the .dat file) without its associated index (.idx) file?

Thanks
drumskirun is offline   Reply With Quote
Old 6th April 2022, 13:00   #2
drumskirun
Junior Member
 
Join Date: Apr 2022
Posts: 2
Solved

The author of the node-nde library
code:
https://github.com/Wiiseguy/node-nde
has updated it to be able to read any .dat file without needing it's corresponding .idx file.

Problem solved!
drumskirun is offline   Reply With Quote
Old 20th April 2022, 14:54   #3
lorisaare
Junior Member
 
Join Date: Apr 2022
Posts: 6
You are the smrtest person I know
lorisaare is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Technical Support

Tags
database, media library

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump