soraxas / echo360

Commandline tool for automated downloads of echo360 videos hosted by university
https://cs.tinyiu.com/echo360
MIT License
261 stars 51 forks source link

--after-date and --before-date don't work #61

Open Notnilc-N opened 2 years ago

Notnilc-N commented 2 years ago

The input I used was: .\run.bat --setup-credential --after-date "2022-03-15" --before-date "2022-05-01" [link] And I ran it on a windows laptop using both firefox and chrome. The first issue occurs after setting up the credentials where the driver would start loading lectures from the earliest date and wouldn't stop until it loaded every single lecture. The second issue occurs after all lectures have been loaded where the program wouldn't download any videos at all. Here's the output if that matters:

Retrieving echo360 Course Info... 5/5 videos Done!

Course: [[UNTITLED]] Total videos to download: 0 out of 5

================================================================= Course: [[UNTITLED]]

Successfully downloaded:

When running it on chrome it'd return comments that didn't show up when running it on firefox:

Type 'continue' and press [enter] [16212:11272:0417/201605.122:ERROR:device_event_log_impl.cc(214)] [20:16:05.122] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F) [16212:11272:0417/201605.125:ERROR:device_event_log_impl.cc(214)] [20:16:05.125] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F) [16212:11272:0417/201605.125:ERROR:device_event_log_impl.cc(214)] [20:16:05.125] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F) continue

Retrieving echo360 Course Info... 1/5 videos [16212:25160:0417/201658.028:ERROR:util.cc(126)] Can't create base directory: C:\Program Files\Google\GoogleUpdater [16520:23840:0417/201757.958:ERROR:gpu_init.cc(446)] Passthrough is not supported, GL is disabled, ANGLE is

Edit: I just tried this on my linux PC using firefox and it also had the same problems. I haven't tried it chrome on my linux PC because I'm too lazy to install it.

soraxas commented 2 years ago

Does the interactive mode works? (--interactive)

It always has to load every lecture before getting the info of its posted date.

Notnilc-N commented 2 years ago

Once each lecture is loaded the script exits without downloading anything

soraxas commented 2 years ago

What's the output (stdout) and log file content (with --debug flag)?

On 21 April 2022 19:20:35 Notnilc-N @.***> wrote:

Once each lecture is loaded the script exits without downloading anything — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Notnilc-N commented 2 years ago

Here's the output when I run the command .\run.bat --setup-credential --firefox --interactive --debug [url]

Retrieving echo360 Course Info... 5/5 videos Done! Traceback (most recent call last): File "echo360.py", line 7, in sys.exit(main()) File "C:\Users\cnguy\Desktop\echo360-master\echo360\main.py", line 365, in main downloader.download_all() File "C:\Users\cnguy\Desktop\echo360-master\echo360\downloader.py", line 238, in download_all min_selection_count=1, File "C:\Users\cnguy\Desktop\echo360-master_echo360venv\lib\site -packages\pick__init.py", line 197, in pick picker = Picker(*args, **kwargs) TypeError: init__() got an unexpected keyword argument 'multi_select'

Here's the log file. Not 100% sure if it's the right one, but it was created around the same time as when I ran the command and it has log at the end so I guess it's the one. echo360Downloader.log