Ticket #2472: mythburn.py.patch
File mythburn.py.patch, 1.9 KB (added by , 19 years ago) |
---|
-
mythburn.py
old new 31 31 #****************************************************************************** 32 32 33 33 # version of script - change after each update 34 VERSION="0.1.2006092 4-1"34 VERSION="0.1.20060926-1" 35 35 36 36 37 37 ##You can use this debug flag when testing out new themes … … 101 101 encodetoac3 = False 102 102 alwaysRunMythtranscode = False 103 103 copyremoteFiles = False 104 thumboffset = 10 105 usebookmark = True 104 106 105 107 #main menu aspect ratio (4:3 or 16:9) 106 108 mainmenuAspectRatio = "16:9" … … 460 462 while count<=numofchapters: 461 463 chapters+=time.strftime("%H:%M:%S",time.gmtime(starttime)) 462 464 463 thumbList+="%s," % starttime 465 if starttime==0: 466 thumbList+="%s," % thumboffset 467 else: 468 thumbList+="%s," % starttime 464 469 465 470 if numofchapters>1: 466 471 chapters+="," … … 2873 2878 return True 2874 2879 2875 2880 def processFile(file, folder): 2881 from shutil import copy 2882 2876 2883 """Process a single video/recording file ready for burning.""" 2877 2884 2878 2885 write( "*************************************************************") … … 3055 3062 assert doesFileExist(os.path.join(folder,'stream0.ac3')) 3056 3063 #assert doesFileExist(os.path.join(folder,'stream1.ac3')) 3057 3064 3058 extractVideoFrame(os.path.join(folder,"stream.mv2"), os.path.join(folder,"thumbnail.jpg"), 0) 3065 if file.attributes["type"].value == "recording" and usebookmark == True: 3066 copy(os.path.join(recordingpath, file.attributes["filename"].value + ".png"),os.path.join(folder,"thumbnail.jpg")) 3067 else: 3068 extractVideoFrame(os.path.join(folder,"stream.mv2"), os.path.join(folder,"thumbnail.jpg"), thumboffset) 3059 3069 3060 3070 write( "*************************************************************") 3061 3071 write( "Finished processing file " + file.attributes["filename"].value)