From cfbb0f0bb568628afb9416650dff1e1a7a0d0841 Mon Sep 17 00:00:00 2001 From: Mohammad Alyetama <56323389+Alyetama@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:22:41 -0400 Subject: [PATCH] Update create_collection.py --- internetarchive_youtube/create_collection.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internetarchive_youtube/create_collection.py b/internetarchive_youtube/create_collection.py index 728cba6..5b10991 100644 --- a/internetarchive_youtube/create_collection.py +++ b/internetarchive_youtube/create_collection.py @@ -122,9 +122,13 @@ def create_collection(self): p_last_ten = subprocess.run(shlex.split(cmd_last_ten), shell=False, - check=True, + check=False, capture_output=True, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, text=True) + print(p_last_ten.stdout) + print(p_last_ten.stderr) data = json.loads(f'[{p_last_ten.stdout.strip()[:-1]}]') data = self.append_data(data)