Skip to content

Commit

Permalink
Fixed pep8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TomCasavant committed May 5, 2024
1 parent 714382b commit f49f08f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ def run(self):
# Probably add a check here if generating a gif is enabled (so we don't
# have to generate one every single hour?)
try:
previous_frames = self.gameboy.get_recent_frames("screenshots", 25, self.gameboy_config['gif_outline'])
previous_frames = self.gameboy.get_recent_frames("screenshots",
25,
self.gameboy_config['gif_outline']
)
previous_media = self.retry_mastodon_call(
self.mastodon.media_post,
retries=5,
Expand Down
6 changes: 5 additions & 1 deletion gb.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ def get_recent_frames(self, directory, num_frames=100, gif_outline='gameboy.png'
count += 1
shutil.copy(image, os.path.join(script_dir, "tmp", f"{count}.png"))

self.build_gif(os.path.join(script_dir, "tmp"), fps=5, output_name="test.mp4", gif_outline=gif_outline)
self.build_gif(os.path.join(script_dir, "tmp"),
fps=5,
output_name="test.mp4",
gif_outline=gif_outline
)
self.empty_directory(os.path.join(script_dir, "tmp"))
return os.path.join(script_dir, "test.mp4")

Expand Down

0 comments on commit f49f08f

Please sign in to comment.