FallingLights / Teachable-dl

Course downloader for teachable platform written in python3 using selenium and yt-dlp
GNU Lesser General Public License v3.0
106 stars 27 forks source link

[BUG] Error while disabling autoplay maybe? #33

Closed mr-wh1tehat closed 8 months ago

mr-wh1tehat commented 8 months ago

I login with --manual-url option, it logs in, no problem with cloudflare, script finds course, script says downloading course content, but then this happens:

INFO: Downloading lecture: Special-Thanks-&-Credits INFO: Disabling autoplay ERROR: Could not download course: [courselinkhere] cause: Message: javascript error: Cannot read properties of null (reading 'checked') (Session info: chrome=119.0.6045.159) Stacktrace:

0 0x564078918723

https://github.com/FallingLights/Teachable-dl/issues/1 0x5640785e7047 https://github.com/FallingLights/Teachable-dl/discussions/2 0x5640785ed205 https://github.com/FallingLights/Teachable-dl/issues/3 0x5640785ef901 https://github.com/FallingLights/Teachable-dl/pull/4 0x56407867741f https://github.com/FallingLights/Teachable-dl/pull/5 0x56407865aeb2 https://github.com/FallingLights/Teachable-dl/issues/6 0x564078676a40 https://github.com/FallingLights/Teachable-dl/issues/7 0x56407865ac83 https://github.com/FallingLights/Teachable-dl/pull/8 0x564078626533 https://github.com/FallingLights/Teachable-dl/issues/9 0x5640786274de https://github.com/FallingLights/Teachable-dl/issues/10 0x5640788e1eea https://github.com/FallingLights/Teachable-dl/issues/11 0x5640788e68a4 https://github.com/FallingLights/Teachable-dl/issues/12 0x5640788d0d22 https://github.com/FallingLights/Teachable-dl/pull/13 0x5640788e72c0 https://github.com/FallingLights/Teachable-dl/issues/14 0x5640788b70be https://github.com/FallingLights/Teachable-dl/issues/15 0x564078907848 https://github.com/FallingLights/Teachable-dl/issues/16 0x564078907a3a https://github.com/FallingLights/Teachable-dl/pull/17 0x564078917849 https://github.com/FallingLights/Teachable-dl/pull/18 0x7fe83f1ddac3

INFO: Cleaning up

so i guess javascript error here while disabling autoplay or what? any idea how can i fix this please

mr-wh1tehat commented 8 months ago

Yeah, I was right, it is because of disabling autoply. So anyway I commented out the code which disables autoplay and everything is working! Thank you for creating such script!