black check

This commit is contained in:
j 2021-12-29 11:47:17 +01:00
parent f8cbf40e1d
commit 2202d76d3a
1 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,6 @@ def main():
logging.basicConfig(level=logging.DEBUG, format=log_format)
base = os.path.dirname(os.path.abspath(__file__))
os.chdir(base)
player = get_player(font=config.font, font_size=config.font_size)
player.register_key_binding('q', q_binding)
@ -69,7 +68,7 @@ def main():
player.pause = True
pause_next = False
play_lights = False
elif player.path.decode().endswith('black.mp4'):
elif player.path and player.path.decode().endswith('black.mp4'):
pause_next = True
play_lights = False