Help - Search - Members - Calendar
Full Version: Is it possible to convert the database?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
Junx
Such as XSPF or something.

Followup: in an OS-independent way. File specs for the db work just as fine if there are no Linux methods to doing so.
gapetto
QUOTE(Junx @ Nov 5 2005, 11:12 PM)
Such as XSPF or something.

Followup: in an OS-independent way.  File specs for the db work just as fine if there are no Linux methods to doing so.
*



It would be possible through a plug-in component, and you could probably do it some other way. If you are interested in making a component to do so I would love to know more exactly what you would want to do, I would love to help.
kjoonlee
If you use foobar2000 0.9 beta 10, then there's foo_utils.

http://foosion.foobar2000.org/beta/

In Preferences -> Components -> Playlist tools:

Header:
CODE

<?xml version="1.0" encoding="UTF-8"?>$crlf()
<playlist version="1" xmlns="http://xspf.org/ns/0/">$crlf()
   <title>foobar2000 Generated XSPF Playlist</title>$crlf()
   <creator>Insert your name here</creator>$crlf()
   <info>Insert your homepage here</info>$crlf()
   <trackList>$crlf()


Body
CODE

 <track>$crlf()
     <location>file:///$replace(%_path%, ,%%20,\,/)</location>$crlf()
     [<creator>$replace(%track artist%,'',&apos;,",&quot;,<,&lt;,>,&gt;,&,&amp;)</creator>]$crlf()
     [<album>$replace(%album%,'',&apos;,",&quot;,<,&lt;,>,&gt;,&,&amp;)</album>]$crlf()
     [<trackNum>%_list_number%</trackNum>]$crlf()
     [<title>$replace(%title%,'',&apos;,",&quot;,<,&lt;,>,&gt;,&,&amp;)</title>]$crlf()
     [<annotation>$replace(%comment%,'',&apos;,",&quot;,<,&lt;,>,&gt;,&,&amp;)</annotation>]$crlf()
//Workaround applied, thanks to Mr_Rabid_Teddybear
//&apos; won't work with MSIE. Use "& # 3 9;" without the spaces or quotes if you use MSIE.
     [<duration>$mul(
$left($replace(%_length_seconds_fp%,.,),
$add($strchr(%_length_seconds_fp%,.),2))
$if($greater($len($insert(%_length_seconds_fp%,,
$strchr(%_length_seconds_fp%,.))),3),
$insert(%_length_seconds_fp%,.,
$add($strchr(%_length_seconds_fp%,.),3)),
$repeat(0,$sub(3,$len($insert(%_length_seconds_fp%,,
$strchr(%_length_seconds_fp%,.))))))
,1)</duration>]$crlf()
//Thanks to Silverbolt for coming up with millisecond calculation instead of $mul(%_length_seconds_fp%,1000)
 </track>$crlf()


Footer
CODE

   </trackList>$crlf()
</playlist>$crlf()


The above code might be buggy. Use at your own risk.

Bind a keyboard shortcut to Context -> Text tools -> Copy text / Save text...

(I recommend unbinding Context -> Copy name(s) if it exists and binding a new keyboard shortcut as shown above.)

Select all files that you want to be in a new XSPF playlist, and issue the Copy text / Save text... command. If you copied text, the XSPF playlist will now be in your clipboard. Paste it into a UTF-8-aware text-editor. If you chose to save text, save it as a new file.

--- --- ---

If you use foobar2000 0.8.3, then there's foo_playlist_output and foo_playlist_output_custom. It's fairly similar, but I don't know how well UTF-8 is supported in Windows 9x.

http://www.hydrogenaudio.org/forums/index....showtopic=33795
http://www.hydrogenaudio.org/forums/index....showtopic=33895
Junx
QUOTE(kjoonlee @ Nov 6 2005, 12:36 AM)
:words:
If you use foobar2000 0.8.3, then there's foo_playlist_output and foo_playlist_output_custom. It's fairly similar, but I don't know how well UTF-8 is supported in Windows 9x.

http://www.hydrogenaudio.org/forums/index....showtopic=33795
http://www.hydrogenaudio.org/forums/index....showtopic=33895
*


I guess I don't understand why Wine can't (or doesn't) use UTF-8 as it's definitely supported by the Linux kernel and whatnot.
Blippe
QUOTE(Junx @ Nov 6 2005, 01:52 PM)
I guess I don't understand why Wine can't (or doesn't) use UTF-8 as it's definitely supported by the Linux kernel and whatnot.
*


according to http://appdb.winehq.org/appview.php?versionId=2355 :

"If you want to install the Unicode version of foobar2000 with Wine, you must add a new string value in the Registry Editor. To access it, go to the terminal and type "wine regedit". The Registry Editor will open. On the left, there's a set of directories. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion to access the CurrentVersion folder. Right click on the right side, and go to New --> String Value. Name the value "CurrentVersion". Double click on it, and in the value data, type in 5.0, which is Windows 2000. Install foobar2000, and it should install the Unicode version now."

Doesn't this fix it?

Now, does anybody get foo_id3v2.dll to work?
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.