Laure Tiblanche — 2012-11-21 15:23:10

j'ai regardé du coté de XSPF dernièrement
L'objectif était de pouvoir lire dans un lecteur genre rhythmnbox, etc des mp3s stockés sur un serveur WEB ( sans avoir à les stocker sur son ordinateur ).

http://fr.wikipedia.org/wiki/XSPF
Après plein de tests sous Linux, un seul logiciel remplit sa mission sans être trop austère
il s'agit de clementine http://www.clementine-player.org/fr/

j'ai pondu un code en python pour pouvoir créer les playlists facilement

from elementtree.SimpleXMLWriter import XMLWriter
import os,fnmatch
from mutagen.mp3 import MP3
# -*- coding: utf-8 -*-


w = XMLWriter("audioactivity.xspf","utf-8")
w.declaration()
playlist = w.start("playlist", version="1", xmlns="http://xspf.org/ns/0/")
w.start("trackList")
for dir in sorted(os.listdir("mp3")):
	for file in sorted(os.listdir("mp3/"+dir)):
		if fnmatch.fnmatch(file,"*.mp3"):
			audio = MP3("mp3/"+dir+"/"+file)
			w.start("track")
			print file
			w.element("location","http://www.antisocial.be/mp3/" + dir + "/" + file)
			w.element("creator",audio['TPE1'].text[0])
			w.element("album",audio['TALB'].text[0])
			w.element("title",audio['TIT2'].text[0])
			w.element("duration",str(int(audio.info.length)))
			w.element("image","http://www.antisocial.be/images/"+dir+".gif")
			w.element("info","http://www.audioactivity.net")
			w.end()
w.close(playlist)

et deux playlists concernant deux netlabels audioactivity et antisocial
http://www.antisocial.be/xspf/audioactivity.xspf
http://www.antisocial.be/xspf/antisocial.xspf

Laure Tiblanche — 2012-11-24 11:28:32

et hop
le xpsf du netlabel 8bitpeoples
http://www.antisocial.be/xspf/8bitpeoples.xspf

Laure Tiblanche — 2012-12-06 12:57:39

HAK http://www.antisocial.be/xspf/HAK.xspf
Earsheltering http://www.antisocial.be/xspf/earsheltering.xspf
Dataglitch http://www.antisocial.be/xspf/dataglitch.xspf
insubordinations http://antisocial.be/xspf/insubordinations.xspf
zymogen http://www.antisocial.be/xspf/zymogen.xspf
la ptitemaison netlabel http://antisocial.be/xspf/laptitemaison.xspf
testtube http://antisocial.be/xspf/testtube.xspf
impulsive habitat http://antisocial.be/xspf/impulsivehabitat.xspf ( sans les derniers qui sont en flac !!! )

Turboconnard — 2012-12-06 14:41:57

Moi j'utilise un serveur subsonic http://www.subsonic.org/pages/index.jsp et j'en suis pas mal content (ya des applis standalone, html5, ipad, android etc...)
parcontre je viens d'installer clémentine et je trouve pas ou configurer un répertoire distant ? les fichiers doivent être forcément publics ?

Laure Tiblanche — 2012-12-06 14:57:50

j'ai vu subsonic mais il faut un serveur complet pour l'utiliser :(

pour un répertoire public avec clémentine
peut etre tu peux t'en sortir avec un htaccess ne permettant l'accés qu'à ton ip

Laure Tiblanche — 2012-12-26 16:20:11

chase records
http://antisocial.be/xspf/chase-records.xspf