[Perl]Sky.FM listener 0.2

Stato
Discussione chiusa ad ulteriori risposte.

Robertof

Utente Silver
19 Giugno 2008
186
10
0
98
Nome: Sky.FM listener
Autore: Robertof (casa[dot]roberto [at] hotmail [dot] it)
Licenza: GNU/GPL v 3.0
Versione: 0.2
Descrizione: permette di ascoltare musica da sky.fm (radio) usando il proprio player preferito (default: vlc)
Codice:
Usage: perl /usr/bin/skyfmlistener [--update-list] [--player=player] [--player-params=params] [--channel=chan] [--bandwidth=good/low] [--autostart] [--closeafterstart]
Listen music from sky.fm using your favourite player.

  -h, --help          display this help and exit
  --update-list       update the list of the channels from sky.fm site and exit (needed for the first run)
  --player=...        run this player instead of vlc
  --player-params=... run the selected player with these parameters (the URI is placed at the end)
  --channel=...       run the player with this channel
  --bandwidth=...     set the listening bandwidth (good/low)
  --autostart         autostart without ask
  --closeafterstart   the name of the option says all

Codice sorgente:
http://sprunge.us/bTLE
Dipendenze: modulo URI::Escape, modulo IO::Socket
Piattaforma: Linux, ma con le dovute modifiche puo' funzionare tranquillamente anche su Windows.
 
RE: [Perl]Sky.FM listener 0.1

Ah giusto che ci sono, aggiungo un esempio di utilizzo.
Io uso il player 'totem', che non necessita' di parametri aggiuntivi per riprodurre flussi audio da Internet, e voglio ascoltare il canale 'uptemposmoothjazz', che si auto avvii e che si chiuda dopo aver avviato totem.
Per questo lancio:
Codice:
skyfmlistener --player=totem --autostart --closeafterstart --channel=uptemposmoothjazz
Sostituendo ovviamente skyfmlistener con perl path.pl parametri.
 
RE: [Perl]Sky.FM listener 0.1

UPDATE : Nuova versione rilasciata
Changelog:
- Ora compatibile con le nuove modifiche di sky.fm.

Topic principale aggiornato
 
Stato
Discussione chiusa ad ulteriori risposte.