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 e81f73f commit cfbb0f0
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 @@ -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)

Expand Down

0 comments on commit cfbb0f0

Please # to comment.