1- # HDHR Viewer V2 v0.9.11
1+ # HDHR Viewer V2 v0.9.13
22
33import time
44import string
88from lxml import etree
99
1010DEBUGMODE = True
11- TITLE = 'HDHR Viewer 2 (0.9.12 )'
11+ TITLE = 'HDHR Viewer 2 (0.9.13 )'
1212PREFIX = '/video/hdhrv2'
13- VERSION = '0.9.12 '
13+ VERSION = '0.9.13 '
1414
1515
1616#GRAPHICS
@@ -916,15 +916,15 @@ def AddChannelObjectContainer(oc, tuneridx, title, channels, search=False):
916916# This function is taken straight (well, almost) from the HDHRViewer V1 codebase
917917###################################################################################################
918918@route (PREFIX + '/CreateVO' )
919- def CreateVO (tuneridx , url , title , year = None , tagline = '' , summary = '' , thumb = R (ICON_DEFAULT_CHANNEL ), starRating = 0 , include_container = False , checkFiles = 0 , videoCodec = 'mpeg2video' ,audioCodec = 'ac3' ,transcode = 'default' ):
919+ def CreateVO (tuneridx , url , title , year = None , tagline = '' , summary = '' , thumb = R (ICON_DEFAULT_CHANNEL ), starRating = 0 , include_container = False , checkFiles = 0 , videoCodec = 'mpeg2video' ,audioCodec = 'ac3' ,transcode = 'default' , includeBandwidths = 1 ):
920920
921921 uniquekey = str (tuneridx )+ url
922922
923923 if transcode == 'auto' :
924924 #AUTO TRANSCODE
925925 vo = VideoClipObject (
926926 rating_key = uniquekey ,
927- key = Callback (CreateVO , tuneridx = tuneridx , url = url , title = title , year = year , tagline = tagline , summary = summary , thumb = thumb , starRating = starRating , include_container = True , checkFiles = checkFiles , videoCodec = videoCodec ,audioCodec = audioCodec ,transcode = transcode ),
927+ key = Callback (CreateVO , tuneridx = tuneridx , url = url , title = title , year = year , tagline = tagline , summary = summary , thumb = thumb , starRating = starRating , include_container = True , checkFiles = checkFiles , videoCodec = videoCodec ,audioCodec = audioCodec ,transcode = transcode , includeBandwidths = includeBandwidths ),
928928 rating = float (starRating ),
929929 title = xstr (title ),
930930 year = xint (year ),
@@ -981,7 +981,7 @@ def CreateVO(tuneridx, url, title, year=None, tagline='', summary='', thumb=R(IC
981981 elif transcode == 'default' :
982982 vo = VideoClipObject (
983983 rating_key = uniquekey ,
984- key = Callback (CreateVO , tuneridx = tuneridx , url = url , title = title , year = year , tagline = tagline , summary = summary , thumb = thumb , starRating = starRating , include_container = True , checkFiles = checkFiles , videoCodec = videoCodec , audioCodec = audioCodec , transcode = transcode ),
984+ key = Callback (CreateVO , tuneridx = tuneridx , url = url , title = title , year = year , tagline = tagline , summary = summary , thumb = thumb , starRating = starRating , include_container = True , checkFiles = checkFiles , videoCodec = videoCodec , audioCodec = audioCodec , transcode = transcode , includeBandwidths = includeBandwidths ),
985985 rating = float (starRating ),
986986 title = xstr (title ),
987987 year = xint (year ),
@@ -1007,7 +1007,7 @@ def CreateVO(tuneridx, url, title, year=None, tagline='', summary='', thumb=R(IC
10071007 else :
10081008 vo = VideoClipObject (
10091009 rating_key = uniquekey ,
1010- key = Callback (CreateVO , tuneridx = tuneridx , url = url , title = title , year = year , tagline = tagline , summary = summary , thumb = thumb , starRating = starRating , include_container = True , checkFiles = checkFiles , videoCodec = videoCodec , audioCodec = audioCodec , transcode = transcode ),
1010+ key = Callback (CreateVO , tuneridx = tuneridx , url = url , title = title , year = year , tagline = tagline , summary = summary , thumb = thumb , starRating = starRating , include_container = True , checkFiles = checkFiles , videoCodec = videoCodec , audioCodec = audioCodec , transcode = transcode , includeBandwidths = includeBandwidths ),
10111011 rating = float (starRating ),
10121012 title = xstr (title ),
10131013 year = xint (year ),
0 commit comments