[vignettes] Pour la radio et pour la tv (en utilisant vlc)

This commit is contained in:
Valentin Samir 2013-09-05 10:04:32 +02:00
parent 20fc077b5b
commit 2dfcc35dfe
2 changed files with 25 additions and 0 deletions

9
tv/radio/vignettes.py Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env python
from config import multicast
import os
for (name, value) in multicast['Radio'].items():
try: os.symlink('/var/www/sound.jpg', '/var/www/images/%s.jpg' % value[1])
except OSError: pass
try: os.symlink('/var/www/sound_petites.jpg', '/var/www/images/%s_petites.jpg' % value[1])
except OSError: pass