linux version

This commit is contained in:
piero0920 2022-12-03 14:20:02 -05:00
commit 75607128b4
2 changed files with 1 additions and 11 deletions

View file

@ -202,7 +202,7 @@ class TwitchArchive:
if self.downloadMETADATA == 1:
metadata_filename = "metadata_" + created_at + ".json"
with open(os.path.join(self.metadata_path, metadata_filename), 'w', encoding='utf-8') as f:
json.dump(vodsinfodic["data"]["0"], f, ensure_ascii=False, indent=4)
json.dump(vodsinfodic["data"][0], f, ensure_ascii=False, indent=4)
try:
os.rename(recorded_filename,os.path.join(self.recorded_path, live_filename))
recorded_filename = os.path.join(self.recorded_path, live_filename)