Skip to content

Commit

Permalink
fix: avoid crash on bulk seek (seconds)
Browse files Browse the repository at this point in the history
fix #59
  • Loading branch information
vzhd1701 committed Jul 7, 2022
1 parent a599003 commit ef72d6a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gridplayer/player/managers/actions.py
Expand Up @@ -193,42 +193,42 @@
"title": translate("Actions", "+5s"),
"key": "Ctrl+Right",
"icon": "seek-plus-1",
"func": ("active", "manual_seek", "seek_shift", 5000),
"func": ("active", "manual_seek", "seek_shift_ms", 5000),
"show_if": "is_active_seekable",
},
"+15s": {
"title": translate("Actions", "+15s"),
"key": "Ctrl+]",
"icon": "seek-plus-5",
"func": ("active", "manual_seek", "seek_shift", 15000),
"func": ("active", "manual_seek", "seek_shift_ms", 15000),
"show_if": "is_active_seekable",
},
"+30s": {
"title": translate("Actions", "+30s"),
"key": "Ctrl+'",
"icon": "seek-plus-10",
"func": ("active", "manual_seek", "seek_shift", 30000),
"func": ("active", "manual_seek", "seek_shift_ms", 30000),
"show_if": "is_active_seekable",
},
"-5s": {
"title": translate("Actions", "-5s"),
"key": "Ctrl+Left",
"icon": "seek-minus-1",
"func": ("active", "manual_seek", "seek_shift", -5000),
"func": ("active", "manual_seek", "seek_shift_ms", -5000),
"show_if": "is_active_seekable",
},
"-15s": {
"title": translate("Actions", "-15s"),
"key": "Ctrl+[",
"icon": "seek-minus-5",
"func": ("active", "manual_seek", "seek_shift", -15000),
"func": ("active", "manual_seek", "seek_shift_ms", -15000),
"show_if": "is_active_seekable",
},
"-30s": {
"title": translate("Actions", "-30s"),
"key": "Ctrl+;",
"icon": "seek-minus-10",
"func": ("active", "manual_seek", "seek_shift", -30000),
"func": ("active", "manual_seek", "seek_shift_ms", -30000),
"show_if": "is_active_seekable",
},
"Random Loop": {
Expand Down

0 comments on commit ef72d6a

Please sign in to comment.