From 75607128b4570bac77a2bef79e7658acc78718d3 Mon Sep 17 00:00:00 2001 From: piero0920 Date: Sat, 3 Dec 2022 14:20:02 -0500 Subject: [PATCH] linux version --- .env.sample | 10 ---------- twitch-archive.py | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 .env.sample diff --git a/.env.sample b/.env.sample deleted file mode 100644 index cc8dfba..0000000 --- a/.env.sample +++ /dev/null @@ -1,10 +0,0 @@ -#twitch config -CLIENT-ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # If you don't have client id then register new app: https://dev.twitch.tv/console/apps -CLIENT-SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # Manage application -> new secret -OAUTH-PRIVATE-TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # if you dont want ads or to download sub-only vods, there's a tutorial here: https://youtu.be/1MBsUoFGuls -#rclone remote path -remote=dest:path -#email notification -SENDER=example@gmail.com #your gmail, from where the messages are going to be sended -PWD=xxxxxxxxxxxxxxxx #password for your gmail, regular password doenst work here, here's how to get to generate a password to use: https://stackoverflow.com/a/73214197 -RECEIVER=example@gmail.com #gmail to who you want to send notifications (your own gmail works) \ No newline at end of file diff --git a/twitch-archive.py b/twitch-archive.py index bd95cc3..3c6e2c4 100644 --- a/twitch-archive.py +++ b/twitch-archive.py @@ -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)