black check
This commit is contained in:
parent
f8cbf40e1d
commit
2202d76d3a
1 changed files with 1 additions and 2 deletions
|
@ -42,7 +42,6 @@ def main():
|
||||||
logging.basicConfig(level=logging.DEBUG, format=log_format)
|
logging.basicConfig(level=logging.DEBUG, format=log_format)
|
||||||
base = os.path.dirname(os.path.abspath(__file__))
|
base = os.path.dirname(os.path.abspath(__file__))
|
||||||
os.chdir(base)
|
os.chdir(base)
|
||||||
|
|
||||||
player = get_player(font=config.font, font_size=config.font_size)
|
player = get_player(font=config.font, font_size=config.font_size)
|
||||||
player.register_key_binding('q', q_binding)
|
player.register_key_binding('q', q_binding)
|
||||||
|
|
||||||
|
@ -69,7 +68,7 @@ def main():
|
||||||
player.pause = True
|
player.pause = True
|
||||||
pause_next = False
|
pause_next = False
|
||||||
play_lights = False
|
play_lights = False
|
||||||
elif player.path.decode().endswith('black.mp4'):
|
elif player.path and player.path.decode().endswith('black.mp4'):
|
||||||
pause_next = True
|
pause_next = True
|
||||||
play_lights = False
|
play_lights = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue