thedave42 / f1tv-dl

Watch videos from f1tv locally
48 stars 5 forks source link

Running into this error with login #240

Closed theyota closed 2 years ago

theyota commented 2 years ago

I've set the environment variables correctly on my machine. I wonder if there has been a change to the F1TV node selectors. This is the error message when I run the following command f1tv-dl https://f1tv.formula1.com/detail/1000005120/2022-australian-gp-practice-3

Error: No node found for selector: input.txtLogin

thedave42 commented 2 years ago

LMK if v0.25.13 fixes it. I just published it to npm too as: @thedave42/f1tv-dl@0.25.13. The change I applied is working for me, but I'm testing on a codebase that also has a lot of other changes to deal with the new DRM that I haven't released yet.

The login page is dynamic so it loads those text boxes after you agree to the cookie disclaimer. It looks like that wasn't loaded in the DOM when the code was trying to fill it, so I put in a delay before it attempts to fill the input. This fixed it for me.