Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Is it possible to convert the database? (Read 4419 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Is it possible to convert the database?

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.
INTERNETS: SERIOUS BUSINESS.

Is it possible to convert the database?

Reply #1
Quote
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.
[a href="index.php?act=findpost&pid=339918"][{POST_SNAPBACK}][/a]


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.

Is it possible to convert the database?

Reply #2
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: [Select]
<?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: [Select]
  <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: [Select]
    </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

Is it possible to convert the database?

Reply #3
Quote
: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
[a href="index.php?act=findpost&pid=339949"][{POST_SNAPBACK}][/a]

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.
INTERNETS: SERIOUS BUSINESS.

 

Is it possible to convert the database?

Reply #4
Quote
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.
[{POST_SNAPBACK}][/a]

according to [a href="http://appdb.winehq.org/appview.php?versionId=2355]http://appdb.winehq.org/appview.php?versionId=2355[/url] :

"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?
Om jag var söt som jocke thå,
skulle du tycka om mig då?