linux version
This commit is contained in:
parent
a4db9ab8fd
commit
75607128b4
2 changed files with 1 additions and 11 deletions
10
.env.sample
10
.env.sample
|
|
@ -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)
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue