Ticket #5246: typos.diff

File typos.diff, 3.0 KB (added by myth@…, 16 years ago)

diff

  • mythburn.py

     
    9292dvdPALD1="%sx%s" % (dvdPAL[0],dvdPAL[1])
    9393dvdNTSCD1="%sx%s" % (dvdNTSC[0],dvdNTSC[1])
    9494
    95 #Single and dual layer recordable DVD free space in MBytes
    96 dvdrsize=(4482,8964)
     95#Single and dual layer recordable DVD free space in MebiBytes (2^20 bytes)
     96dvdrsize=(4478,8140)
    9797
    9898frameratePAL=25
    9999framerateNTSC=29.97
     
    14391439                    top_element.appendChild(node)
    14401440
    14411441                # 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:
    14431443                    sqlstatement  = """SELECT mark, type FROM recordedmarkup
    14441444                                    WHERE chanid = '%s' AND starttime = '%s'
    14451445                                    AND type = 0 ORDER BY mark""" % (chanid, starttime)
     
    19511950# Run a file though the lossless encoder optionally removing commercials
    19521951
    19531952def runMythtranscode(chanid, starttime, destination, usecutlist, localfile):
    1954     """Use mythtrancode to cut commercials and/or clean up an mpeg2 file"""
     1953    """Use mythtranscode to cut commercials and/or clean up an mpeg2 file"""
    19551954
    19561955    if localfile != "":
    19571956        localfile = quoteFilename(localfile)
     
    46494648                    localfile = file.attributes["localfilename"].value
    46504649                else:
    46514650                    localfile = ""
    4652                 write("File has a cut list - running mythtrancode to remove unwanted segments")
     4651                write("File has a cut list - running mythtranscode to remove unwanted segments")
    46534652                chanid = getText(infoDOM.getElementsByTagName("chanid")[0])
    46544653                starttime = getText(infoDOM.getElementsByTagName("starttime")[0])
    46554654                if runMythtranscode(chanid, starttime, os.path.join(folder,'newfile.mpg'), True, localfile):
     
    46724671                    if runMythtranscode(chanid, starttime, os.path.join(folder, 'newfile.mpg'), False, localfile):
    46734672                        mediafile = os.path.join(folder, 'newfile.mpg')
    46744673                    else:
    4675                         write("Failed to run mythtrancode to fix any errors")
     4674                        write("Failed to run mythtranscode to fix any errors")
    46764675    else:
    46774676        #does the user always want to run mpeg2 files through mythtranscode?
    46784677        #may help to fix any errors in the file
     
    46924691            if runMythtranscode(chanid, starttime, os.path.join(folder, 'newfile.mpg'), False, localfile):
    46934692                mediafile = os.path.join(folder, 'newfile.mpg')
    46944693            else:
    4695                 write("Failed to run mythtrancode to fix any errors")
     4694                write("Failed to run mythtranscode to fix any errors")
    46964695
    46974696    #do we need to re-encode the file to make it DVD compliant?
    46984697    if not isFileOkayForDVD(file, folder):