Playlist to any format (foobar2000 tagz)

Amarok 1.x Scripts

Source (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
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:

11 years ago

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

bugmenot1234

10 years ago

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

Report

Kadai

10 years ago

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!

Report

scottiale

11 years ago

Why Weidmuller tools?

Report

C

NameNo

11 years ago

Really, why?

Report

11 years ago

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

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2.3
updated Jan 17 2009
added Aug 03 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1
System Tags addon