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)