Lecture range: Tried blank, 1:3, 1. Also tried the second option "only_new" radio button.
Additional context
I've tried several combinations of input (like changing video quality / both-left-right / different correct ranges). I've also tried running from the command line as well which leads to the same bug.
In the logs I went to downloader.py and I'm printing out cmd and sp_args just before line# 187. If you need any further information please let me know.
Describe the bug
On the cmd prompt (runnning with /without admin privileges : poetry run python ilc_scrape.py
Context
Additional context I've tried several combinations of input (like changing video quality / both-left-right / different correct ranges). I've also tried running from the command line as well which leads to the same bug.
In the logs I went to downloader.py and I'm printing out cmd and sp_args just before line# 187. If you need any further information please let me know.
Describe the bug
Screenshots If applicable, add screenshots to help explain your problem.
Program output
Click to see output
``` Saving to "Impartus Lectures\S2-20_DSECL_MFDS_SEC_2 WILP Session" Downloading lecture numbers: 1 2 Processing 01. MFDS 2021-05-01.mkv Extracting encryption keys for angle 1 Extracting encryption keys for angle 2 Downloading using ffmpeg cmd = ['ffmpeg', '-loglevel', 'error', '-cookies', 'Bearer=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MzI4NDk0MSwiZXVsYSI6MSwiaW5zdGl0dXRlSWQiOjEyMDQsInVzZXJUeXBlIjo2LCJpYXQiOjE2MjA1MjQyNjMsImV4cCI6MTYyMTEyOTA2M30.0OH8U7Kag7Ph9jHNhwlyFTMWFQJkM_DaZTKp6xR7nn4; path=/', '-allowed_extensions', 'key,m3u8,ts', '-protocol_whitelist', 'file,http,https,tcp,tls,crypto', '-i', 'http://localhost:64637/tmpwuq4k7bm.m3u8', '-cookies', 'Bearer=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MzI4NDk0MSwiZXVsYSI6MSwiaW5zdGl0dXRlSWQiOjEyMDQsInVzZXJUeXBlIjo2LCJpYXQiOjE2MjA1MjQyNjMsImV4cCI6MTYyMTEyOTA2M30.0OH8U7Kag7Ph9jHNhwlyFTMWFQJkM_DaZTKp6xR7nn4; path=/', '-allowed_extensions', 'key,m3u8,ts', '-protocol_whitelist', 'file,http,https,tcp,tls,crypto', '-i', 'http://localhost:64637/tmpe0i_wdqj.m3u8', '-map', '0:v:0', '-map', '1:v:0', '-map', '0:a:0', '-c', 'copy', 'Impartus Lectures\\S2-20_DSECL_MFDS_SEC_2 WILP Session\\01. MFDS 2021-05-01.mkv'] **sp_args = {'close_fds': True, 'stdin': -1, 'stderr': -1, 'stdout': -1, 'startupinfo':, 'env': environ({'ALLUSERSPROFILE': 'C:\\ProgramData', 'ANDROID_SDK_HOME': 'C:\\Android', 'ANT_HOME': 'D:\\Training\\Selenium TestNG\\Selenium Files\\Selenium Files\\apache-ant-1.9.6\\', 'APPDATA': 'C:\\Users\\user1\\AppData\\Roaming', 'ASL.LOG': 'Destination=file', 'CHOCOLATEYINSTALL': 'C:\\ProgramData\\chocolatey', 'CHOCOLATEYLASTPATHUPDATE': '132470617036555666', 'CLASSPATH': '.;', 'COMMONPROGRAMFILES': 'C:\\Program Files (x86)\\Common Files', 'COMMONPROGRAMFILES(X86)': 'C:\\Program Files (x86)\\Common Files', 'COMMONPROGRAMW6432': 'C:\\Program Files\\Common Files', 'COMPOSE_CONVERT_WINDOWS_PATHS': 'true', 'COMPUTERNAME': 'user12-LAP', 'COMSPEC': 'C:\\windows\\system32\\cmd.exe', 'DEFLOGDIR': 'C:\\ProgramData\\McAfee\\Endpoint Security\\Logs', 'DRIVERDATA': 'C:\\Windows\\System32\\Drivers\\DriverData', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Users\\user1', 'JAVA_HOME': 'C:\\Program Files\\Java\\jdk1.8.0_251\\', 'KUBECONFIG': '$HOME/.kube/config', 'LOCALAPPDATA': 'C:\\Users\\user1\\AppData\\Local', 'LOGONSERVER': '\\\\ENG-P-DC-SLC-01', 'MOZ_PLUGIN_PATH': 'C:\\Program Files (x86)\\Foxit Software\\Foxit Reader\\plugins\\', 'NUMBER_OF_PROCESSORS': '8', 'OPENSSL_IA32CAP': ':~0x20000000', 'OS': 'Windows_NT', 'PATH': 'C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7\\Scripts;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\Program Files\\Common Files\\user1\\Java\\javapath;C:\\Program Files (x86)\\Cuminas\\Document Express DjVu Plug-in\\;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\PuTTY\\;C:\\ProgramData\\chocolatey\\bin;c:\\php7\\;C:\\ffmpeg\\bin\\;C:\\Program Files (x86)\\nodejs\\;C:\\IEDriverServer\\;C:\\geckoserver\\;C:\\chromedriver\\;C:\\Program Files (x86)\\AOMEI Backupper;C:\\windows\\System32\\OpenSSH\\;D:\\Training\\Selenium TestNG\\Selenium Files\\Selenium Files\\apache-ant-1.9.6\\bin;C:\\Android;C:\\Windows\\System32;C:\\Program Files\\Git\\cmd;c:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;c:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\windows\\System32\\OpenSSH\\;C:\\Program Files\\PuTTY\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Java\\jdk1.8.0_211\\bin;C:\\Program Files\\Google\\Chrome\\Application\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Users\\user1\\.poetry\\bin;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32\\;C:\\Users\\user1\\.poetry\\bin;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\user1\\bin;C:\\Users\\user1\\scoop\\apps\\python37\\current\\scripts;C:\\Users\\user1\\scoop\\shims;C:\\Users\\user1\\AppData\\Local\\Microsoft\\WindowsApps;C:\\tools\\mysql\\current\\bin;C:\\Users\\user1\\AppData\\Roaming\\npm;C:\\tools\\ruby24\\bin\\;C:\\geckoserver\\;C:\\Program Files\\Mozilla Firefox\\;C:\\Program Files (x86)\\Graphviz2.38\\bin\\;C:\\Users\\user1\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Gradle\\gradle-6.8.3\\bin;D:\\automation2\\CHANGELATER\\mapi-restassured;%IntelliJ IDEA Community Edition%;C:\\Program Files (x86)\\Git\\bin;C:\\Users\\user1\\AppData\\Local\\Microsoft\\WindowsApps;C:\\apache-maven-3.6.3\\bin;;D:\\Training\\Bits\\ilc-scraper-master2;C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7\\Scripts\\python37.zip;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32\\DLLs;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32\\lib;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32;C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7;C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7\\lib\\site-packages;D:\\Training\\Bits\\ilc-scraper-master2;C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7\\Scripts\\python37.zip;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32\\DLLs;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32\\lib;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32;C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7;C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7\\lib\\site-packages', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW;.RB;.RBW', 'PROCESSOR_ARCHITECTURE': 'x86', 'PROCESSOR_ARCHITEW6432': 'AMD64', 'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 142 Stepping 12, GenuineIntel', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '8e0c', 'PROGRAMDATA': 'C:\\ProgramData', 'PROGRAMFILES': 'C:\\Program Files (x86)', 'PROGRAMFILES(X86)': 'C:\\Program Files (x86)', 'PROGRAMW6432': 'C:\\Program Files', 'PROMPT': '$P$G', 'PSMODULEPATH': 'C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules', 'PUBLIC': 'C:\\Users\\Public', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\windows', 'TEMP': 'C:\\Users\\user1\\AppData\\Local\\Temp', 'TMP': 'C:\\Users\\user1\\AppData\\Local\\Temp', 'USERDNSDOMAIN': 'workgroup', 'USERDOMAIN': 'workgroup', 'USERDOMAIN_ROAMINGPROFILE': 'workgroup', 'USERNAME': 'user1', 'USERPROFILE': 'C:\\Users\\user1', 'VSTO_LOGALERTS': '1', 'WINDIR': 'C:\\windows', 'PLAT': 'win32', 'VIRTUAL_ENV': 'C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7', 'GOOEY': '1', 'PYTHONIOENCODING': 'utf-8'})}
Processing 02. MFDS 2021-05-08.mkv
Extracting encryption keys for angle 1
Extracting encryption keys for angle 2
Downloading using ffmpeg
cmd =
['ffmpeg', '-loglevel', 'error', '-cookies', 'Bearer=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MzI4NDk0MSwiZXVsYSI6MSwiaW5zdGl0dXRlSWQiOjEyMDQsInVzZXJUeXBlIjo2LCJpYXQiOjE2MjA1MjQyNjMsImV4cCI6MTYyMTEyOTA2M30.0OH8U7Kag7Ph9jHNhwlyFTMWFQJkM_DaZTKp6xR7nn4; path=/', '-allowed_extensions', 'key,m3u8,ts', '-protocol_whitelist', 'file,http,https,tcp,tls,crypto', '-i', 'http://localhost:64637/tmp77kbszsy.m3u8', '-cookies', 'Bearer=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MzI4NDk0MSwiZXVsYSI6MSwiaW5zdGl0dXRlSWQiOjEyMDQsInVzZXJUeXBlIjo2LCJpYXQiOjE2MjA1MjQyNjMsImV4cCI6MTYyMTEyOTA2M30.0OH8U7Kag7Ph9jHNhwlyFTMWFQJkM_DaZTKp6xR7nn4; path=/', '-allowed_extensions', 'key,m3u8,ts', '-protocol_whitelist', 'file,http,https,tcp,tls,crypto', '-i', 'http://localhost:64637/tmpv2w6hh49.m3u8', '-map', '0:v:0', '-map', '1:v:0', '-map', '0:a:0', '-c', 'copy', 'Impartus Lectures\\S2-20_DSECL_MFDS_SEC_2 WILP Session\\02. MFDS 2021-05-08.mkv']
{'close_fds': True, 'stdin': -1, 'stderr': -1, 'stdout': -1, 'startupinfo': , 'env': environ({'ALLUSERSPROFILE': 'C:\\ProgramData', 'ANDROID_SDK_HOME': 'C:\\Android', 'ANT_HOME': 'D:\\Training\\Selenium TestNG\\Selenium Files\\Selenium Files\\apache-ant-1.9.6\\', 'APPDATA': 'C:\\Users\\user1\\AppData\\Roaming', 'ASL.LOG': 'Destination=file', 'CHOCOLATEYINSTALL': 'C:\\ProgramData\\chocolatey', 'CHOCOLATEYLASTPATHUPDATE': '132470617036555666', 'CLASSPATH': '.;', 'COMMONPROGRAMFILES': 'C:\\Program Files (x86)\\Common Files', 'COMMONPROGRAMFILES(X86)': 'C:\\Program Files (x86)\\Common Files', 'COMMONPROGRAMW6432': 'C:\\Program Files\\Common Files', 'COMPOSE_CONVERT_WINDOWS_PATHS': 'true', 'COMPUTERNAME': 'user12-LAP', 'COMSPEC': 'C:\\windows\\system32\\cmd.exe', 'DEFLOGDIR': 'C:\\ProgramData\\McAfee\\Endpoint Security\\Logs', 'DRIVERDATA': 'C:\\Windows\\System32\\Drivers\\DriverData', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Users\\user1', 'JAVA_HOME': 'C:\\Program Files\\Java\\jdk1.8.0_251\\', 'KUBECONFIG': '$HOME/.kube/config', 'LOCALAPPDATA': 'C:\\Users\\user1\\AppData\\Local', 'LOGONSERVER': '\\\\ENG-P-DC-SLC-01', 'MOZ_PLUGIN_PATH': 'C:\\Program Files (x86)\\Foxit Software\\Foxit Reader\\plugins\\', 'NUMBER_OF_PROCESSORS': '8', 'OPENSSL_IA32CAP': ':~0x20000000', 'OS': 'Windows_NT', 'PATH': 'C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7\\Scripts;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\Program Files\\Common Files\\user1\\Java\\javapath;C:\\Program Files (x86)\\Cuminas\\Document Express DjVu Plug-in\\;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\PuTTY\\;C:\\ProgramData\\chocolatey\\bin;c:\\php7\\;C:\\ffmpeg\\bin\\;C:\\Program Files (x86)\\nodejs\\;C:\\IEDriverServer\\;C:\\geckoserver\\;C:\\chromedriver\\;C:\\Program Files (x86)\\AOMEI Backupper;C:\\windows\\System32\\OpenSSH\\;D:\\Training\\Selenium TestNG\\Selenium Files\\Selenium Files\\apache-ant-1.9.6\\bin;C:\\Android;C:\\Windows\\System32;C:\\Program Files\\Git\\cmd;c:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;c:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\windows\\System32\\OpenSSH\\;C:\\Program Files\\PuTTY\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Java\\jdk1.8.0_211\\bin;C:\\Program Files\\Google\\Chrome\\Application\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Users\\user1\\.poetry\\bin;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32\\;C:\\Users\\user1\\.poetry\\bin;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\user1\\bin;C:\\Users\\user1\\scoop\\apps\\python37\\current\\scripts;C:\\Users\\user1\\scoop\\shims;C:\\Users\\user1\\AppData\\Local\\Microsoft\\WindowsApps;C:\\tools\\mysql\\current\\bin;C:\\Users\\user1\\AppData\\Roaming\\npm;C:\\tools\\ruby24\\bin\\;C:\\geckoserver\\;C:\\Program Files\\Mozilla Firefox\\;C:\\Program Files (x86)\\Graphviz2.38\\bin\\;C:\\Users\\user1\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Gradle\\gradle-6.8.3\\bin;D:\\automation2\\CHANGELATER\\mapi-restassured;%IntelliJ IDEA Community Edition%;C:\\Program Files (x86)\\Git\\bin;C:\\Users\\user1\\AppData\\Local\\Microsoft\\WindowsApps;C:\\apache-maven-3.6.3\\bin;;D:\\Training\\Bits\\ilc-scraper-master2;C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7\\Scripts\\python37.zip;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32\\DLLs;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32\\lib;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32;C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7;C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7\\lib\\site-packages;D:\\Training\\Bits\\ilc-scraper-master2;C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7\\Scripts\\python37.zip;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32\\DLLs;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32\\lib;C:\\Users\\user1\\AppData\\Local\\Programs\\Python\\Python37-32;C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7;C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7\\lib\\site-packages', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW;.RB;.RBW', 'PROCESSOR_ARCHITECTURE': 'x86', 'PROCESSOR_ARCHITEW6432': 'AMD64', 'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 142 Stepping 12, GenuineIntel', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '8e0c', 'PROGRAMDATA': 'C:\\ProgramData', 'PROGRAMFILES': 'C:\\Program Files (x86)', 'PROGRAMFILES(X86)': 'C:\\Program Files (x86)', 'PROGRAMW6432': 'C:\\Program Files', 'PROMPT': '$P$G', 'PSMODULEPATH': 'C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules', 'PUBLIC': 'C:\\Users\\Public', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\windows', 'TEMP': 'C:\\Users\\user1\\AppData\\Local\\Temp', 'TMP': 'C:\\Users\\user1\\AppData\\Local\\Temp', 'USERDNSDOMAIN': 'workgroup', 'USERDOMAIN': 'workgroup', 'USERDOMAIN_ROAMINGPROFILE': 'workgroup', 'USERNAME': 'user1', 'USERPROFILE': 'C:\\Users\\user1', 'VSTO_LOGALERTS': '1', 'WINDIR': 'C:\\windows', 'PLAT': 'win32', 'VIRTUAL_ENV': 'C:\\Users\\user1\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\ilc-scraper-JTk9lEXG-py3.7', 'GOOEY': '1', 'PYTHONIOENCODING': 'utf-8'})}
**sp_args =
[WinError 87] The parameter is incorrect
Traceback (most recent call last):
File "ilc_scrape.py", line 347, in
main()
File "ilc_scrape.py", line 337, in main
pool.starmap(download_stream, task_args)
File "C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\multiprocessing\pool.py", line 276, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\multiprocessing\pool.py", line 657, in get
raise self._value
File "C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\multiprocessing\pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\multiprocessing\pool.py", line 47, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "D:\Training\Bits\ilc-scraper-master2\downloader.py", line 188, in download_stream
proc = sp.run(cmd, text=True, **sp_args)
File "C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 453, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 756, in __init__
restore_signals, start_new_session)
File "C:\Users\user1\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1155, in _execute_child
startupinfo)
OSError: [WinError 87] The parameter is incorrect
```