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)