Playlist to any format (foobar2000 tagz)

Amarok 1.x Scripts

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
I proud to present my implementation of Foobar2000 tagz in perl as Amarok script.

This script can format playlist from a given template and save it to file or put into clipboard (by using syntax of Foobar 2000 tagz: http://wiki.hydrogenaudio.org/index.php?title=Foobar2000%3ATitleformat_Reference)

Script has two implementations: with GUI (needs PerlQT) and without it (if you want to edit config manually). If you don't want to install PerlQt you can edit file $HOME/.pltaf and change properties. It will appear after first run of script. You can find some examples in archive.

Litle HOWTO: When running script (with gui), you can see a window with two text areas, some radiobuttons and four buttons in the bottom. In first text area you should enter the tagz. For example, this:


$ifequal(%list_index%,1,
'[spoiler="My playlist"]'$crlf())
''#%track%'' - 
['[color=grey]'%artist% - [%album% - ]'[/color]']
%title% 
'['%length%']'
$ifequal(%list_index%,%list_total%,
$crlf()'[/spoiler]')


In second text area you will see the preview of what you will get at last. In my case:


#05 - [color=grey]U2 - U218 Singles - [/color]Vertigo [3:10]


When you sure that your tagz is ready, press 'Run Script' button. The resulting playlist now in the clipboard!

Seven radiobuttons in the right are the seven presets that you can save and use. On the second tab you can find selector between file and klipper and 'browse' button to select file. This option take effect to currently selected preset. I move this selector to the second tab because it is used only once. Buttons in the bottom are:
'Run' script with enterd preferencies,
'save' preferences to config file,
'Ok' for save prefernces and exit,
'Cancel' to exit without doing anything.

Second implementation is mainly aimed to be run from commandline (but still it is nice to use it from amarok if you do not have PerlQt). It has some parameters:

[conf_file FILE] - use config FILE instead of /home/name_no/.pltaf
[template N] - number of template in config file. Use number from 1 to 7.
[store_file FILE] - file where to store result instead of specified in config
[to_klipper 1/0] - if you want to put result into buffer set 1. This will take effect over config.
[templ STRING] - you may give your template here instead of using stored
[playlist FILE] - use playlist FILE in amarok format instead of default.
[track N] - generate result only for specified tracks. Specify list here, e.g. 1,2,3,8-12,14-17,20.
[help] to see this message

You can find PerlQt in your packetmanager or on it's homepage:
http://perlqt.sourceforge.net/

For more, you can read the README file.
For license, look at the COPYING file.

For bugreport or featurerequest mail to zasada_shaman@list.ru

Known problems:
some foobar-specefic functions are not implemented yet. Also, there is no way to get some meta-info using amarok.

Todo:
1. I plan to make it amarok-independent for printing contents of directories.
2. Fix all bugs
3. To take over the world
Last changelog:

0.2.3
Stupid bug that forced people to vote my program 'bad' was detected and destroyed.

0.2.2
1. Interface. Now it does almost all I expect from it
2. Add 'track' cmdline attribute to process certain tracks
3. Interface now can show normal message if no PerlQt installed.

0.2.1
1. Improved initialization
2. Improved function finder (faster)
3. Some tiny bugs fixed

0.2.0
1. (almost) full implementation of tagz
2. added GUI (needs PerlQt)
3. added config file


Ratings & Comments

4 Comments

bugmenot1234

Hi, I'm now using Amarok 2 and like to use your skript again in this version. Is it possible to get your skript for the new version? Greets Kris

Kadai

Waaaah, this add-on is what I was looking for to create dumps in TXT for some playlists XD Thank you so much for it!

scottiale

Why Weidmuller tools?

NameNo

Really, why?

Pling
0 Affiliates
Details
license
version 0.2.3
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 3

Other Amarok 1.x Scripts:

Gnome Play Video in Totem
mwheatland
last update date: 19 years ago

Score 5.0

editLyrics-gnome
ZeeD
last update date: 19 years ago

Score 5.0

amarok Alarm
aroth
last update date: 16 years ago

Score 5.0

amaroK Web Collection V xmms
pti-jean
last update date: 16 years ago

Score 5.0

SongLogger
lucatnt
last update date: 17 years ago

Score 5.0

amaroK Web Collection
pti-jean
last update date: 16 years ago

Score 5.0



System Tags