Ticket #2134: mythburn-offbyone.diff

File mythburn-offbyone.diff, 777 bytes (added by spin667@…, 19 years ago)
  • mytharchive/mythburn/scripts/mythburn.py

     
    18251825        if itemNum == numberofitems:
    18261826            post.appendChild(dvddom.createTextNode("exit;"))
    18271827        else:
    1828             post.appendChild(dvddom.createTextNode("jump title %d chapter 1;" % (itemNum + 1)))
     1828            if wantIntro:
     1829                post.appendChild(dvddom.createTextNode("jump title %d chapter 1;" % (itemNum + 2)))
     1830            else:
     1831                post.appendChild(dvddom.createTextNode("jump title %d chapter 1;" % (itemNum + 1)))
    18291832
    18301833        pgc.appendChild(post)
    18311834        fileCount +=1