Skip to content

Commit

Permalink
Multiple duration in DVD screenshot, use longest duration only
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Sep 11, 2024
1 parent 3f6ebc4 commit edda726
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,8 @@ def dvd_screenshots(self, meta, disc_num, num_screens=None):
sar = 1
for track in ifo_mi.tracks:
if track.track_type == "Video":
length = float(track.duration)/1000 # noqa F841
durations = [float(d) for d in track.duration.split(' / ')]
length = max(durations) / 1000 # noqa #F841
par = float(track.pixel_aspect_ratio)
dar = float(track.display_aspect_ratio)
width = float(track.width)
Expand Down

0 comments on commit edda726

Please sign in to comment.