This repository was archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
[BUG] [Video is not downloaded properly] #59
Copy link
Copy link
Open
Description
Context
- OS: [Windows 10]
- Install method: [Manual method]
- Your location: [outside campus]
- Course URL: [https://a.impartus.com/ilc/#/course/1429338/706]
- Lecture range: ["ALL"]
Additional context
Describe the bug
Only the first video got downloaded. But it was incomplete.
- The length of video was 1 hr, while infact it should be 2 hrs
- Video was not visible.
- Only 9 minutes of audio was playable post which it stopped and jumped direct to end of video.
- Rest of videos did not get downloaded. Pasted the program output below.
Screenshots
If applicable, add screenshots to help explain your problem.
Program output
Click to see output
Saving to "Impartus Lectures\S2-20_DSECL_DL_SEC_2 WILP Session"
Downloading lecture numbers: 1 2 3 4 5 6
Processing 01. Perceptron And MLP 2021-05-15.mkv
Extracting encryption keys for angle 1
Extracting encryption keys for angle 2
Downloading using ffmpeg
Downloaded 01. Perceptron And MLP 2021-05-15.mkv
Processing 02. No Topic Entered 2021-05-22.mkv
Processing 03. MLP Numericals 2021-05-29.mkv
Processing 05. No Topic Entered 2021-06-12.mkv
<class 'requests.exceptions.ConnectionError'> HTTPSConnectionPool(host='a.impartus.com', port=443): Max retries exceeded with url: /api/fetchvideo?ttid=5824083&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MTE1MDkzNiwiZXVsYSI6MSwiaW5zdGl0dXRlSWQiOjEyMDQsInVzZXJUeXBlIjo2LCJpYXQiOjE2MjQ2MzAxNjYsImV4cCI6MTYyNTIzNDk2Nn0.VzzMWZXDrkbdoujWaCEQC1LvrZ-6_DoDdD33CZpQoBk&type=index.m3u8 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002712276D948>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) <traceback object at 0x000002712276D1C8>
Traceback (most recent call last):
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\urllib3\connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\urllib3\util\connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "c:\users\Admin User\appdata\local\programs\python\python37\lib\socket.py", line 752, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\urllib3\connectionpool.py", line 677, in urlopen
chunked=chunked,
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\urllib3\connectionpool.py", line 978, in _validate_conn
conn.connect()
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\urllib3\connection.py", line 309, in connect
conn = self._new_conn()
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\urllib3\connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000002712276D948>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\urllib3\connectionpool.py", line 727, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\urllib3\util\retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='a.impartus.com', port=443): Max retries exceeded with url: /api/fetchvideo?ttid=5824083&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MTE1MDkzNiwiZXVsYSI6MSwiaW5zdGl0dXRlSWQiOjEyMDQsInVzZXJUeXBlIjo2LCJpYXQiOjE2MjQ2MzAxNjYsImV4cCI6MTYyNTIzNDk2Nn0.VzzMWZXDrkbdoujWaCEQC1LvrZ-6_DoDdD33CZpQoBk&type=index.m3u8 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002712276D948>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "ilc_scrape.py", line 347, in <module>
main()
File "ilc_scrape.py", line 337, in main
pool.starmap(download_stream, task_args)
File "c:\users\Admin User\appdata\local\programs\python\python37\lib\multiprocessing\pool.py", line 276, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "c:\users\Admin User\appdata\local\programs\python\python37\lib\multiprocessing\pool.py", line 657, in get
raise self._value
File "c:\users\Admin User\appdata\local\programs\python\python37\lib\multiprocessing\pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "c:\users\Admin User\appdata\local\programs\python\python37\lib\multiprocessing\pool.py", line 47, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "D:\Study\ilc-scraper-master\downloader.py", line 164, in download_stream
variant_pls = get_variant_playlist(stream_url, quality)
File "D:\Study\ilc-scraper-master\downloader.py", line 81, in get_variant_playlist
variants = get_variants(stream_url)
File "D:\Study\ilc-scraper-master\downloader.py", line 71, in get_variants
resp = requests.get(stream_url)
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\requests\sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\requests\sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Admin User\AppData\Local\pypoetry\Cache\virtualenvs\ilc-scraper-HTX1gs7S-py3.7\lib\site-packages\requests\adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='a.impartus.com', port=443): Max retries exceeded with url: /api/fetchvideo?ttid=5824083&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MTE1MDkzNiwiZXVsYSI6MSwiaW5zdGl0dXRlSWQiOjEyMDQsInVzZXJUeXBlIjo2LCJpYXQiOjE2MjQ2MzAxNjYsImV4cCI6MTYyNTIzNDk2Nn0.VzzMWZXDrkbdoujWaCEQC1LvrZ-6_DoDdD33CZpQoBk&type=index.m3u8 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002712276D948>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels