From 8ee0b67ec11d96358336ea58cee4b419725d20ab Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Mon, 2 Aug 2021 07:56:31 +0300 Subject: [PATCH] [~] Refactor --- python/tasks/mlb_player.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/python/tasks/mlb_player.py b/python/tasks/mlb_player.py index b15b5a1..9777dca 100644 --- a/python/tasks/mlb_player.py +++ b/python/tasks/mlb_player.py @@ -2298,3 +2298,17 @@ def kernel_37(): 1. https://www.youtube.com/channel/UCcTy8yBARva3WzrmIcaaWPA/about 2. https://www.play-cricket.com/website/results/4721802 ''' + +def kernel_38(video_path): + t1 = '/kaggle/working/video.mp4' + if not os.path.exists(t1): + subprocess.check_call( + [ + 'youtube-dl', + '-f', + '18', + video_path, + '-o', + t1, + ] + )