diff --git a/internetarchive_youtube/create_collection.py b/internetarchive_youtube/create_collection.py index e68da93..728cba6 100644 --- a/internetarchive_youtube/create_collection.py +++ b/internetarchive_youtube/create_collection.py @@ -147,9 +147,13 @@ def create_collection(self): cmd = self.info_cmd(self.channel_url) p = subprocess.run(shlex.split(cmd), shell=False, - check=True, + check=False, capture_output=True, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, text=True) + print(p.stdout) + print(p.stderr) data = json.loads(f'[{p.stdout.strip()[:-1]}]') data = self.append_data(data)