Help - Search - Members - Calendar
Full Version: Modify databasesearch for reconstructing old .m3u?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
Spirit_of_the_ocean
A user asked in a German forum if it is possible to make foobar search for missing songs in an .m3u .
He said there are some cases in which this application would be useful
1.some friends have send him m3u but he has other paths wherer the songs are
2. there are some people who did use winamp but they now use foobar.In the meantime they
changed the paths of the songs (before using foobar).

My idea to solve this problem is to modify the database search.
This modyfication must involve the following things:

- read the the first song of .m3u and copy it in the pattern field of Databasesearch:
- than search the Media Library with "filename" and "the exact text"
- the last thing is to copy the file to a new playlist

- Then start with the second song and so on until all songs send to the new Playlist.

This thing should do what the user wanted. But I think there must be some modifications because:
- Sometimes the song in the .m3u doesn't exist on your own computer
- Sometimes the song has another filename but the same content

There is the possibility to open the .m3u with a text-editor and copy the song names in the dbs pattern field and send the results to playlist, but it would be nicer that this would be automatic when you have playlists with a few hundred songs.

So I want to ask:

Is it possible to modify Databasesearch that way. Is it easy to programm such a thing?
I have never programmed so I have no imagination how much effort it is to do such a change.

@Foosion your the creator of Databasesearch and you wrote @ your HP

QUOTE
The Database Search SDK including the source code for the Database Search Toolbar Demo will be available when 1.4 final is released. In the meantime, it is only available on request.


So if it is possible for a newbie to do such a change, I will need the SDK.

I need your opinion
foosion
Using dbsearch in the way you describe would be like taking a plane to go from Wiesbaden to Mainz (around 15km). The same effect could be achieved using only the foobar2000 SDK in a much more straightforward way, and you would need to learn the foobar2000 SDK anyway before you could use the dbsearch SDK (and C++ before you could use either).
Spirit_of_the_ocean
QUOTE(foosion @ Sep 17 2006, 11:23) *

Using dbsearch in the way you describe would be like taking a plane to go from Wiesbaden to Mainz (around 15km). The same effect could be achieved using only the foobar2000 SDK in a much more straightforward way, and you would need to learn the foobar2000 SDK anyway before you could use the dbsearch SDK (and C++ before you could use either).

Okay I understand what you mean.

It seems to be a long way. But I am interessted in C++ and the Foobar SDK

So that means I have to get in touch with Visual Basic
foosion
I'm sorry, but Visual Basic is the wrong language, if you want to use the foobar2000 SDK. Even if you just want to use it to learn programming in general, it is not the right language in my opinion. I'd choose Pascal for that: it may not be the perfect programming language, but at least it was designed with teaching programming in mind.
Spirit_of_the_ocean
QUOTE(foosion @ Sep 17 2006, 16:11) *

I'm sorry, but Visual Basic is the wrong language, if you want to use the foobar2000 SDK. Even if you just want to use it to learn programming in general, it is not the right language in my opinion. I'd choose Pascal for that: it may not be the perfect programming language, but at least it was designed with teaching programming in mind.


Okay I searched @ Wikipedia for C++ and Visual Basic there was as a compiler
So I will look up Pascal und search for a turorial.
Programming is really a new field of activity for me.
Thanks for your answer smile.gif
It helps a lot.

EDIT: I am a bit confused because you told someoneHERE
that Visual C++ ist also okay (At least it seems to me in that post).No word abaout pascal.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.