MrBrax / LiveStreamDVR

An automatic livestream recorder
MIT License
330 stars 25 forks source link

Error on vod download #468

Open qsor27 opened 11 months ago

qsor27 commented 11 months ago

I'm getting an error when I try to download a vod.

192.168.1.1 - - [10/Oct/2023:20:35:46 +0000] "POST /api/v0/tools/vod_download HTTP/1.1" 400 65 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.43" 2023-10-10T20:35:46.886Z | helper.execAdvanced Process 77 for download_vod_1943167440 exited with code 1 2023-10-10T20:35:45.507Z | vod.downloadVideo Download VOD 1943167440 2023-10-10T20:35:45.614Z | vod.downloadVideo Downloading VOD 1943167440... 2023-10-10T20:35:45.640Z | job.save Save job download_vod_1943167440 with PID 77 to /usr/local/share/twitchautomator/data/cache/pids/download_vod_1943167440.json 2023-10-10T20:35:45.630Z | helper.execAdvanced Spawned process 77 for download_vod_1943167440 2023-10-10T20:35:45.643Z | helper.execAdvanced Attached to all streams for process 77 for download_vod_1943167440 2023-10-10T20:35:46.884Z | job.clear Job download_vod_1943167440 removed from jobs list 2023-10-10T20:35:46.881Z | job.clear Clear job download_vod_1943167440 with PID 77 2023-10-10T20:35:46.888Z | http.api API error 400 returned: {"status":"ERROR","message":"Error downloading video: undefined"}

MrBrax commented 11 months ago

i'm guessing this is because it's a subscriber only vod

qsor27 commented 11 months ago

I've added my token to /config/twitch_oauth.txt is that supposed to allow it to work? I'm of course subscribed to the twitch channel as well.

MrBrax commented 11 months ago

it is never applied to the vod download feature, but i should be able to implement that

MrBrax commented 11 months ago

I just pushed an update to the dev branch, when that's done compiling there's a new config option "Enable VOD download auth" that needs to be enabled.