plugin radiocol: fixed missing import

This commit is contained in:
Goffi 2012-03-24 17:46:42 +01:00
commit 1a329be228

View file

@ -35,7 +35,7 @@ from sat.tools.games import TarotCard
from time import time
import os.path
from mutagen.oggvorbis import OggVorbis
from mutagen.oggvorbis import OggVorbis, OggVorbisHeaderError
try:
from twisted.words.protocols.xmlstream import XMPPHandler
@ -224,6 +224,7 @@ class Radiocol():
which trigger after the song has been played to play next one"""
#TODO: need to check that there are still peoples in the room
# and clean the datas/stop the playlist if it's not the case
#TODO: songs need to be erased once played or found invalids
radio_data = self.radios[room_jid.userhost()]
queue = radio_data['queue']
if not queue: