Skip to content

Commit

Permalink
Update create_collection.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Alyetama authored Aug 20, 2024
1 parent 4cba39c commit e81f73f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internetarchive_youtube/create_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e81f73f

Please sign in to comment.