Ticket #4534: mythburn-fixchapters.diff

File mythburn-fixchapters.diff, 646 bytes (added by thrantastic@…, 13 years ago)

Patch to fix fixed length chapter markings in mythburn.py

  • mythburn.py

    old new  
    762762    if lengthofvideo < segment:
    763763        return "00:00:00"
    764764
    765     numofchapters = lengthofvideo / segment;
    766     chapters = ""
     765    numofchapters = lengthofvideo / segment + 1;
     766    chapters = "00:00:00"
    767767    starttime = 0
    768     count = 1
     768    count = 2
    769769    while count <= numofchapters:
    770         chapters += time.strftime("%H:%M:%S", time.gmtime(starttime)) + ","
    771770        starttime += segment
     771        chapters += "," + time.strftime("%H:%M:%S", time.gmtime(starttime))
    772772        count += 1
    773773
    774774    return chapters