class M3u(VPProxyPlugin):
- handlers = ('m3u', 'm3ut', 'm3uw', 'list', 'play', 'index')
+ handlers = ('m3u', 'm3ut', 'm3uw', 'm3uo', 'list', 'play', 'index')
logger = logging.getLogger('plugin_m3u')
playlist = None
prefix='ogg'
elif self.splitted_path[1]=='m3ut':
prefix='mp4'
+ elif self.splitted_path[1]=='m3uo':
+ prefix='ogv'
elif self.splitted_path[1] in ("list","play","index"):
None
else:
elif qtype=='ogg':
command = command + 'transcode{vcodec=theora,acodec=vorbis,vb=800,ab=128}:'
muxer='ogg'
+ elif qtype=='ogv':
+ command = command + 'transcode{vcodec=theora,acodec=vorbis}:'
+ muxer='ogg'
# elif qtype=='webm':
# command = command + 'transcode{vcodec=VP80,acodec=vorbis,vb=512,ab=64}:'
# muxer='ffmpeg{mux=ogg}'
self.reqtype = self.splittedpath[1].lower()
# If first parameter is 'pid' or 'torrent' or it should be handled
# by plugin
- if not (self.reqtype in ('get','mp4','ogg') or self.reqtype in VPStuff.pluginshandlers):
+ if not (self.reqtype in ('get','mp4','ogg','ogv') or self.reqtype in VPStuff.pluginshandlers):
self.dieWithError(400) # 400 Bad Request
return
except IndexError:
"Sending fake headers for " + useragent)
self.send_response(200)
self.send_header('Cache-Control','no-cache');
- if self.reqtype=="ogg":
+ if self.reqtype in ("ogg","ogv"):
self.send_header("Content-Type", "video/ogg")
else:
self.send_header("Content-Type", "video/mpeg")