Ticket #2151: mythburn-createVideoChapters-collide.diff

File mythburn-createVideoChapters-collide.diff, 1.5 KB (added by spin667@…, 15 years ago)
  • mytharchive/mythburn/scripts/mythburn.py

     
    411411
    412412    return chapters
    413413
    414 def createVideoChapters(segment, lengthofvideo):
     414def createVideoChaptersFixedLength(segment, lengthofvideo):
    415415    """Returns chapter marks spaced segment seconds through the file"""
    416416    if lengthofvideo < segment:
    417417        return "00:00:00"
     
    16971697            if wantChapterMenu:
    16981698                vob.setAttribute("chapters",createVideoChapters(itemnum,chapters,getLengthOfVideo(itemnum),False) )
    16991699            else:
    1700                 vob.setAttribute("chapters", createVideoChapters(chapterLength, getLengthOfVideo(itemnum)))
     1700                vob.setAttribute("chapters", createVideoChaptersFixedLength(chapterLength, getLengthOfVideo(itemnum)))
    17011701
    17021702            vob.setAttribute("file",os.path.join(getItemTempPath(itemnum),"final.mpg"))
    17031703            pgc.appendChild(vob)
     
    18351835
    18361836        vob = dvddom.createElement("vob")
    18371837        vob.setAttribute("file", os.path.join(getItemTempPath(itemNum), "final.mpg"))
    1838         vob.setAttribute("chapters", createVideoChapters(chapterLength, getLengthOfVideo(itemNum)))
     1838        vob.setAttribute("chapters", createVideoChaptersFixedLength(chapterLength, getLengthOfVideo(itemNum)))
    18391839        pgc.appendChild(vob)
    18401840        del vob
    18411841