Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
add helping indicator to FPS mod; add 30fps
Browse files Browse the repository at this point in the history
  • Loading branch information
pannal committed May 5, 2017
1 parent b89c64a commit 1a4eb36
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Contents/Code/interface/sub_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,19 @@ def SubtitleFPSModMenu(**kwargs):

kwargs.pop("randomize")

for fps in ["23.976", "24.000", "25.000", "29.970", "50.000", "59.940", "60.000"]:
if fps == str(target_fps):
for fps in ["23.976", "24.000", "25.000", "29.970", "30.000", "50.000", "59.940", "60.000"]:
if float(fps) == float(target_fps):
continue

if float(fps) > float(target_fps):
indicator = "subs constantly getting faster"
else:
indicator = "subs constantly getting slower"

mod_ident = SubtitleModifications.get_mod_signature("change_FPS", **{"from": fps, "to": target_fps})
oc.add(DirectoryObject(
key=Callback(SubtitleSetMods, mods=mod_ident, mode="add", randomize=timestamp(), **kwargs),
title="%s fps -> %s fps" % (fps, target_fps)
title="%s fps -> %s fps (%s)" % (fps, target_fps, indicator)
))

return oc
Expand Down

0 comments on commit 1a4eb36

Please sign in to comment.