Ticket #5246: typos.diff
File typos.diff, 3.0 KB (added by , 16 years ago) |
---|
-
mythburn.py
92 92 dvdPALD1="%sx%s" % (dvdPAL[0],dvdPAL[1]) 93 93 dvdNTSCD1="%sx%s" % (dvdNTSC[0],dvdNTSC[1]) 94 94 95 #Single and dual layer recordable DVD free space in M Bytes96 dvdrsize=(44 82,8964)95 #Single and dual layer recordable DVD free space in MebiBytes (2^20 bytes) 96 dvdrsize=(4478,8140) 97 97 98 98 frameratePAL=25 99 99 framerateNTSC=29.97 … … 1439 1439 top_element.appendChild(node) 1440 1440 1441 1441 # find the cut list end marks if available to use as chapter marks 1442 if file.attributes["usecutlist"].value == "0" and addCutlistChapters == False:1442 if file.attributes["usecutlist"].value == "0" and addCutlistChapters == True: 1443 1443 sqlstatement = """SELECT mark, type FROM recordedmarkup 1444 1444 WHERE chanid = '%s' AND starttime = '%s' 1445 1445 AND type = 0 ORDER BY mark""" % (chanid, starttime) … … 1951 1950 # Run a file though the lossless encoder optionally removing commercials 1952 1951 1953 1952 def runMythtranscode(chanid, starttime, destination, usecutlist, localfile): 1954 """Use mythtran code to cut commercials and/or clean up an mpeg2 file"""1953 """Use mythtranscode to cut commercials and/or clean up an mpeg2 file""" 1955 1954 1956 1955 if localfile != "": 1957 1956 localfile = quoteFilename(localfile) … … 4649 4648 localfile = file.attributes["localfilename"].value 4650 4649 else: 4651 4650 localfile = "" 4652 write("File has a cut list - running mythtran code to remove unwanted segments")4651 write("File has a cut list - running mythtranscode to remove unwanted segments") 4653 4652 chanid = getText(infoDOM.getElementsByTagName("chanid")[0]) 4654 4653 starttime = getText(infoDOM.getElementsByTagName("starttime")[0]) 4655 4654 if runMythtranscode(chanid, starttime, os.path.join(folder,'newfile.mpg'), True, localfile): … … 4672 4671 if runMythtranscode(chanid, starttime, os.path.join(folder, 'newfile.mpg'), False, localfile): 4673 4672 mediafile = os.path.join(folder, 'newfile.mpg') 4674 4673 else: 4675 write("Failed to run mythtran code to fix any errors")4674 write("Failed to run mythtranscode to fix any errors") 4676 4675 else: 4677 4676 #does the user always want to run mpeg2 files through mythtranscode? 4678 4677 #may help to fix any errors in the file … … 4692 4691 if runMythtranscode(chanid, starttime, os.path.join(folder, 'newfile.mpg'), False, localfile): 4693 4692 mediafile = os.path.join(folder, 'newfile.mpg') 4694 4693 else: 4695 write("Failed to run mythtran code to fix any errors")4694 write("Failed to run mythtranscode to fix any errors") 4696 4695 4697 4696 #do we need to re-encode the file to make it DVD compliant? 4698 4697 if not isFileOkayForDVD(file, folder):