PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : html playlists erstellen?



stokedfish
09.03.04, 23:42
also, das "problem" ist folgendes: wir haben ein kleines internetradio (ogg und mp3 stream) wo ich regelmässig on air bin. nach der sendung stelle ich die playlists jeweils in ein typo3-portal, das sieht dann etwa so aus...

http://www.dachboden-wg.de/radio/index.php?id=56

nun meine frage: wie kann ich nach dem ende der sendung eine html playlist erstellen, damit ich das ganze nicht immer von hand abtippen muss, ist langsam mühsam. hey, höre ich jemanden lachen? ja, habe das ganze bis jetzt von hand gemacht... :-/

bei winamp gibts ja diese funktion "html playlist" erstellen, dann ein copy'n'paste - fertig! da sind dann sogar noch die spielzeiten der einzelnen songs drin, die brauche ich aber nicht unbedingt.

wie mache ich das am besten unter linux? irgendein tool? auf konsole? komplett anders?

ich streame mit oddcastv2 in kombination mit xmms oder mit djplay, je nach sendung. beide programme haben leider keine funktion zur erstellung von html playlists. wie mache ich es also am besten?

bin linux-only, also nix dual-boot oder so, suche also nach einer lösung auf linux!

geht ja bestimmt ganz einfach, wenn man wüsste wie, oder? danke schon mal für eure tipps! :-)

ach ja, die playlists erstelle ich mit xmms im format *.m3u - falls das relevant sein sollte!

edit: ja, ich habe die suchfunktion benutzt, aber leider nichts gefunden...

noch was, dass es nur bei korrekt getaggten files geht, ist mir auch klar. aber alle meine files sind getaggt, was anderes läuft mir nicht über den äther! ;-)

und wenn ich schon dabei bin, gleich noch ne' schleichwerbung für meine nächste sendung...

http://www.dachboden-wg.de/radio/index.php?id=96

man möge mir verzeihen! :D

fs111
10.03.04, 11:56
Besorg Dir xmmsctrl von hier: http://user.it.uu.se/~adavid/utils/ und mach dann etwas wie:


#!/bin/sh

echo '<html><body><ul>'

for track in $(xmmsctrl playlist); do echo '<li>'$track'</li>'; done

echo '</ul></body><html>'


HTH

fs111

stokedfish
11.03.04, 10:50
danke schonmal! :)

leider habe ich aber (noch) keinen plan von skripten, sorry...

naja, ich habe mal einen editor geöffnet, den text dort reinkopiert, das ganze unter /usr/bin als "playlist" gespeichert und dann ein "chmod u+x playlist" gemacht - ist das richtig?

xmmsctrl ist installiert!

auf jeden fall kommt dann für eine playlist, die so aussehen sollte...


01. [Big Beatz] The Chemical Brothers - Block Rockin' Beats

02. [Big Beatz] The Prodigy - Voodoo people (Chemical Brothers remix)

03. [Big Beatz] Noel Gallagher - Setting sun (Chemical Brothers remix)

04. [Big Beatz] Apollo 440 - Can't stop the rock

05. [Big Beatz] Rone Size - Strictly social

06. [Big Beatz] Freddy Fresh - Badder badder schwing (Fatboy Slim remix)

07. [Big Beatz] Past Present Organization - Itchy feet (Metrophonics remix)

08. [Big Beatz] The Crystal Method - Busy Child

09. [Big Beatz] Rob D - Clubbed to death

10. [Big Beatz] Mint Royale - Shake me (vocal edit)
folgendes raus...


fish@x1-6-00-c0-9f-0e-08-bb:~> playlist
<html><body><ul>
<li>1</li>
<li>[Big</li>
<li>Beatz]</li>
<li>The</li>
<li>Chemical</li>
<li>Brothers</li>
<li>-</li>
<li>Block</li>
<li>Rockin'</li>
<li>Beats</li>
<li>2</li>
<li>[Big</li>
<li>Beatz]</li>
<li>The</li>
<li>Prodigy</li>
<li>-</li>
<li>Voodoo</li>
<li>People</li>
<li>(Chemical</li>
<li>Brothers</li>
<li>Remix)</li>
<li>3</li>
<li>[Big</li>
<li>Beatz]</li>
<li>Noel</li>
<li>Gallagher</li>
<li>-</li>
<li>Setting</li>
<li>Sun</li>
<li>(Chemical</li>
<li>Brothers</li>
<li>Remix)</li>
<li>4</li>
<li>[Big</li>
<li>Beatz]</li>
<li>Apollo</li>
<li>440</li>
<li>-</li>
<li>Can't</li>
<li>Stop</li>
<li>The</li>
<li>Rock</li>
<li>5</li>
<li>[Big</li>
<li>Beatz]</li>
<li>Roni</li>
<li>Size</li>
<li>-</li>
<li>Strictly</li>
<li>Social</li>
<li>6</li>
<li>[Big</li>
<li>Beatz]</li>
<li>Freddy</li>
<li>Fresh</li>
<li>-</li>
<li>Badder</li>
<li>Badder</li>
<li>Schwing</li>
<li>(Fatboy</li>
<li>Slim</li>
<li>Remix)</li>
<li>7</li>
<li>[Big</li>
<li>Beatz]</li>
<li>Past</li>
<li>Present</li>
<li>Organization</li>
<li>-</li>
<li>Itchy</li>
<li>Feet</li>
<li>(Metrophonics</li>
<li>Remix)</li>
<li>8</li>
<li>[Big</li>
<li>Beatz]</li>
<li>The</li>
<li>Crystal</li>
<li>Method</li>
<li>-</li>
<li>Busy</li>
<li>Child</li>
<li>9</li>
<li>[Big</li>
<li>Beatz]</li>
<li>Rob</li>
<li>D</li>
<li>-</li>
<li>Clubbed</li>
<li>To</li>
<li>Death</li>
<li>10</li>
<li>[Big</li>
<li>Beatz]</li>
<li>The</li>
<li>Wiseguys</li>
<li>-</li>
<li>Ooh</li>
<li>La</li>
<li>La</li>
<li>11</li>
<li>[Big</li>
<li>Beatz]</li>
<li>Mint</li>
<li>Royale</li>
<li>-</li>
<li>Shake</li>
<li>Me</li>
<li>(Vocal</li>
<li>Edit)</li>
</ul></body><html>

was dann im typo3 wie folgt aussieht!


test

<html><body>

* 1

* [Big

* Beatz]

* The

* Chemical

* Brothers

* -

* Block

* Rockin'

* Beats

* 2

* [Big

* Beatz]

* The

* Prodigy

* -

* Voodoo

* People

* (Chemical

* Brothers

* Remix)

* 3

* [Big

* Beatz]

* Noel

* Gallagher

* -

* Setting

* Sun

* (Chemical

* Brothers

* Remix)

* 4

* [Big

* Beatz]

* Apollo

* 440

* -

* Can't

* Stop

* The

* Rock

* 5

* [Big

* Beatz]

* Roni

* Size

* -

* Strictly

* Social

* 6

* [Big

* Beatz]

* Freddy

* Fresh

* -

* Badder

* Badder

* Schwing

* (Fatboy

* Slim

* Remix)

* 7

* [Big

* Beatz]

* Past

* Present

* Organization

* -

* Itchy

* Feet

* (Metrophonics

* Remix)

* 8

* [Big

* Beatz]

* The

* Crystal

* Method

* -

* Busy

* Child

* 9

* [Big

* Beatz]

* Rob

* D

* -

* Clubbed

* To

* Death

* 10

* [Big

* Beatz]

* The

* Wiseguys

* -

* Ooh

* La

* La

* 11

* [Big

* Beatz]

* Mint

* Royale

* -

* Shake

* Me

* (Vocal

* Edit)

</body><html>
nun zwei fragen...

1. war mein vorgehen richtig?
2. was muss ich ändern, um es als nummerierte liste wie oben - wenn möglich ohne aufzählungspunkte - darstellen zu lassen?

vielen vielen dank für eure hilfe! :)

AceTheFace
11.03.04, 13:01
Warum kompliziert wenns auch einfach geht?

Das xmms-extra Paket von hier http://www.xmms.org/plugins.php?details=5 runterladen und installieren und schon hat man xmms_playlist2html... ;)

Gruß,

Ace

stokedfish
11.03.04, 13:08
Daaaanke werde ich gleich angehen und dann hier berichten!

Sonst bin ich momentan sprachlos... soeben die news gehört... unfassbar... meine gedanken sind bei euch!

HEMIcuda
11.03.04, 13:15
Fehler im Skript:

#!/bin/sh

echo '<html><body><ul>'

for track in $(xmmsctrl playlist); do echo "<li>$track</li>"; done

echo '</ul></body><html>'


'cuda

stokedfish
11.03.04, 14:15
@HEMIcuda: dein skript gibt etwa das gleiche chaos aus wie der von fs111. wo ist da überhaupt der unterschied?

oder liegt es an mir und ich bin unfähig? auf jeden fall danke für die mühe! :)

zu xmms_playlist2html: klasse! ergebnis könnt ihr hier (http://www.dachboden-wg.de/radio/index.php?id=56) sehen!

dann wäre das problem also gelöst! *freu*

ihr seid spitze, danke!!! :)

HEMIcuda
11.03.04, 14:31
Original geschrieben von HEMIcuda
Fehler im Skript die 2.:

#!/bin/sh

echo '<html><body><ul>'

for track in "$(xmmsctrl playlist)"; do echo "<li>$track</li>"; done

echo '</ul></body><html>'


'cuda
Der Unterschied liegt zwischen echo und ; und zwischen in und ; (die " " ;))

'cuda

stokedfish
01.04.04, 18:46
Ja, funktionieren tut es trotzdem nicht gut, habs gerade nochmals versucht!

Aber xmms_playlist2html ist wirklich top!

Sonst geht es wohl auch in Noatun!

stokedfish
01.04.04, 20:24
Dachte, ich poste mal eine kleine "Anleitung" zur Erstellung von HTML-Playlists unter Linux als kleine Gegenleistung für eure super Hilfe! :-)

Also, ist eher so "von Newbie für Newbie" geschrieben, ich bin da nicht so der Profi, aber auf jeden Fall funzt es so und vielleicht ist es ja für jemanden nützlich.

Es gibt mehrere Möglichkeiten, die beste ist wohl diese hier:

1. xmms installieren (wohl bei jeder Distri dabei)
2. xmms-extra (http://www.xmms.org/plugins.php?details=5) installieren (kompiliert sich ohne Probs!)
3. ne' Playlist in xmms öffnen und das Proggy offenlassen
4. Konsole öffnen und dort den Befehl "xmms_playlist2html" eingeben

Jetzt wird ein Code generiert, der in etwa so aussieht: (Beispiel)


<html><title>XMMS Radio - Playlist</title>
<body bgcolor=#000000 text=#ffffff>
<div align=center><font size=6>Jack Johnson - Times Like These <small>2:22</small></font><br>[ 1/10 ]</div>
<div align=center><font size=6><a href=/xmms.pls>Listen to XMMS Radio!</a><table border=0 align=center cellspacing=2 cellpadding=5><tr><td align=right>#</td><td>Title</td><td>Time</td></tr>
<tr><td bgcolor=#666666 align=right>1</td><td bgcolor=#666666>Jack Johnson - Times Like These</td><td align=center bgcolor=#666666>2:22</td></tr>
<tr><td bgcolor=#333333 align=right>2</td><td bgcolor=#333333>Jack Johnson - The Horizon Has Been Defeated</td><td align=center bgcolor=#333333>2:33</td></tr>
<tr><td bgcolor=#333333 align=right>3</td><td bgcolor=#333333>Jack Johnson - Traffic In The Sky</td><td align=center bgcolor=#333333>2:50</td></tr>
<tr><td bgcolor=#333333 align=right>4</td><td bgcolor=#333333>Jack Johnson - Taylor</td><td align=center bgcolor=#333333>3:59</td></tr>
<tr><td bgcolor=#333333 align=right>5</td><td bgcolor=#333333>Jack Johnson - Gone</td><td align=center bgcolor=#333333>2:10</td></tr>
<tr><td bgcolor=#333333 align=right>6</td><td bgcolor=#333333>Jack Johnson - Cupid</td><td align=center bgcolor=#333333>1:05</td></tr>
<tr><td bgcolor=#333333 align=right>7</td><td bgcolor=#333333>Jack Johnson - Wasting Time</td><td align=center bgcolor=#333333>3:50</td></tr>
<tr><td bgcolor=#333333 align=right>8</td><td bgcolor=#333333>Jack Johnson - Holes To Heaven</td><td align=center bgcolor=#333333>2:54</td></tr>
<tr><td bgcolor=#333333 align=right>9</td><td bgcolor=#333333>Jack Johnson - Dreams Be Dreams</td><td align=center bgcolor=#333333>2:12</td></tr>
<tr><td bgcolor=#333333 align=right>10</td><td bgcolor=#333333>Jack Johnson - Tomorrow Morning</td><td align=center bgcolor=#333333>2:50</td></tr>
</table></body></html>

Wenn ihr wollt, könnt ihr den Code natürlich noch bearbeiten, bevor ihr ihn veröffentlich, aber eigentlich sieht der schon ganz fein aus so!


Alternative: Ihr öffnet die Playlist in "Noatun" und installiert folgendes Plugin:


HTML Playlist Export

This plugin will place your playlist in a nice HTML table. Its preferences page will allow you to set colors, background image, and enable the Hover mode, for changing colors when the cursor is over a link.

After setting options, the Actions menu's Export Playlist... will open a file dialog for you to select where to save the output.
Quelle: http://docs.kde.org/en/3.2/kdemultimedia/noatun/html-exporter.html

Da kann man dann sogar noch die Hintergrundfarbe etc. wählen, habe es aber so noch nie versucht.

Und sonst gibt es immernoch die HC-Variante: http://www.selfhtml.org/ :lol: :D

Wenn ihr noch weitere Möglichkeiten sieht oder ne' Anmerkung habt, bitte posten! :-)