Replies: 1 comment
-
Blink stuff is so janky that if it were me, I'd opt for option 3. It would be nice to figure out what's actually going on, obviously, but this feels like one of those whack-a-mole issues that will never end because we're chasing down a Blink server problem lol |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the
download_videos()
call, without adelay=
argument, so the default value ofdelay=1
should be in effect.I invoke it via a cronjob, daily, and there are typically tens or hundreds of files to download.
Since the .mp4 file appears in my directory, rerunning the command results in no changes. I just happened to notice that some files in my download directory were only 20 bytes, a suspiciously small size for a video file. A
cat
command confirms the content of every such file is406 Not Acceptable
, clearly an HTTP error code inside the file itself.I have been removing the 20-byte files with a rather crude
rm -f $(ll | grep ' 20 Feb' | cut -c48-)
command so that the next download command will retry those files. This works, mostly, but each time I seem to have a few new 20-byte error files.My options appear to be to:
delay=
argument and hope for the bestapi.http_get()
call to see if there's some way to detect the HTTP status code out-of-band (i.e. not inside the file itself)What say ye!?
Beta Was this translation helpful? Give feedback.
All reactions