Ticket #4534: mythburn-fixchapters.diff
File mythburn-fixchapters.diff, 646 bytes (added by , 16 years ago) |
---|
-
mythburn.py
old new 762 762 if lengthofvideo < segment: 763 763 return "00:00:00" 764 764 765 numofchapters = lengthofvideo / segment ;766 chapters = " "765 numofchapters = lengthofvideo / segment + 1; 766 chapters = "00:00:00" 767 767 starttime = 0 768 count = 1768 count = 2 769 769 while count <= numofchapters: 770 chapters += time.strftime("%H:%M:%S", time.gmtime(starttime)) + ","771 770 starttime += segment 771 chapters += "," + time.strftime("%H:%M:%S", time.gmtime(starttime)) 772 772 count += 1 773 773 774 774 return chapters