You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the following code via a Windows Command Prompt terminal. When I first started, I got around 658 videos downloaded from the camera specified. This number would include a small group (~9) of videos with random early dates much older than the consecutive videos it downloaded. After deleting the downloaded videos (except those random older ones) from my phone's Blink app, when I tried again, it would only download the exact same small group of videos with early dates. If I change the camera name, it started to work again for the new camera, but it did not download as much (~200-300 videos) from that camera before it started acting like the first camera and downloading a small group (~4-5) of random old videos.
Is there a video download limit for a certain timeframe perhaps? Has anyone else encountered this? Do I need to tweak my code below perhaps? I suspect this may be user error more because I am not familiar with Python yet or maybe it is a clash between versions of what I have installed. I would appreciate any help or guidance on how to get this working without the arbitrary download limit.
Local Setup
Windows 10 Pro
Python 3.12.3 (python3) / Python 3.9.6 (py)
blinkpy 0.22.77 (pip list / pip freeze / pip show blinkpy)
Code
Sensitive variables blanked out for privacy purposes. I discovered that the Auth approach was causing issues, so I commented it out and was able to get better results with some downloads. If I use Python 3.9.6 with the py command, then it crashes with similar errors as those shown in the Auth terminal output section. If I use Python 3.12.3 with the python3 command, then I get better results, but it still crashes.
If I paste the code above into the terminal window after running python, when the program stops I am left only with >>>.
If I run the code above with py code.py instead of pasting it into the terminal window, when the program stops, I see the following. Perhaps this yields some clues?
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x00000257EE351100>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x00000257EE351400>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x00000257EE38B5E0>, 10110.265)]']
connector: <aiohttp.connector.TCPConnector object at 0x00000257EE351430>
Fatal error on SSL transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x00000257EE382F40>
transport: <_ProactorSocketTransport fd=808 read=<_OverlappedFuture cancelled>>
Traceback (most recent call last):
File "C:\Python39\lib\asyncio\sslproto.py", line 684, in _process_write_backlog
self._transport.write(chunk)
File "C:\Python39\lib\asyncio\proactor_events.py", line 359, in write
self._loop_writing(data=bytes(data))
File "C:\Python39\lib\asyncio\proactor_events.py", line 395, in _loop_writing
self._write_fut = self._loop._proactor.send(self._sock, data)
AttributeError: 'NoneType' object has no attribute 'send'
Exception ignored in: <function _SSLProtocolTransport.__del__ at 0x00000257ED12C550>
Traceback (most recent call last):
File "C:\Python39\lib\asyncio\sslproto.py", line 321, in __del__
File "C:\Python39\lib\asyncio\sslproto.py", line 316, in close
File "C:\Python39\lib\asyncio\sslproto.py", line 593, in _start_shutdown
File "C:\Python39\lib\asyncio\sslproto.py", line 598, in _write_appdata
File "C:\Python39\lib\asyncio\sslproto.py", line 706, in _process_write_backlog
File "C:\Python39\lib\asyncio\sslproto.py", line 720, in _fatal_error
File "C:\Python39\lib\asyncio\proactor_events.py", line 151, in _force_close
File "C:\Python39\lib\asyncio\base_events.py", line 746, in call_soon
File "C:\Python39\lib\asyncio\base_events.py", line 510, in _check_closed
RuntimeError: Event loop is closed
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using the following code via a Windows Command Prompt terminal. When I first started, I got around 658 videos downloaded from the camera specified. This number would include a small group (~9) of videos with random early dates much older than the consecutive videos it downloaded. After deleting the downloaded videos (except those random older ones) from my phone's Blink app, when I tried again, it would only download the exact same small group of videos with early dates. If I change the camera name, it started to work again for the new camera, but it did not download as much (~200-300 videos) from that camera before it started acting like the first camera and downloading a small group (~4-5) of random old videos.
Is there a video download limit for a certain timeframe perhaps? Has anyone else encountered this? Do I need to tweak my code below perhaps? I suspect this may be user error more because I am not familiar with Python yet or maybe it is a clash between versions of what I have installed. I would appreciate any help or guidance on how to get this working without the arbitrary download limit.
Local Setup
Code
Sensitive variables blanked out for privacy purposes. I discovered that the Auth approach was causing issues, so I commented it out and was able to get better results with some downloads. If I use Python 3.9.6 with the
py
command, then it crashes with similar errors as those shown in the Auth terminal output section. If I use Python 3.12.3 with thepython3
command, then I get better results, but it still crashes.Terminal Output with Auth
If I paste the code above into the terminal window after running
python
, when the program stops I am left only with>>>
.If I run the code above with
py code.py
instead of pasting it into the terminal window, when the program stops, I see the following. Perhaps this yields some clues?Beta Was this translation helpful? Give feedback.
All reactions