Skip to content

Commit f63d329

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e59c635 commit f63d329

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web_programming/fetch_anime_and_play.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,13 @@ def get_anime_episode(episode_endpoint: str) -> list:
154154

155155
return [f"{BASE_URL}{episode_url}", f"{BASE_URL}{download_url}"]
156156

157+
157158
def download_video(download_url: str, output_filename: str):
158159
"""Download video using ffmpeg."""
159-
command = ['ffmpeg', '-i', download_url, output_filename]
160+
command = ["ffmpeg", "-i", download_url, output_filename]
160161
subprocess.run(command, check=True)
161162

163+
162164
if __name__ == "__main__":
163165
anime_name = input("Enter anime name: ").strip()
164166
anime_list = search_scraper(anime_name)

0 commit comments

Comments
 (0)