Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search fails with 'missing field `runs' #19

Open
ralvapil opened this issue Jan 7, 2023 · 1 comment
Open

search fails with 'missing field `runs' #19

ralvapil opened this issue Jan 7, 2023 · 1 comment

Comments

@ralvapil
Copy link

ralvapil commented Jan 7, 2023

I'm trying to use the search function exposed by the library but I keep getting the following error:

thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: ParseError(ParseError { message: "missing field `runs`", to_parse_type: "SearchResult" })', src/commands/play.rs:145:14

I tried pulling the repo and running the search tests but they seem to fail with the same error. Is there something I'm doing wrong?

I'm doing the following:

let client_config = &default_client_config();

        let search_res = search("ltt".into(), "".into(), client_config)
            .await
            .unwrap();
@89Q12
Copy link
Owner

89Q12 commented Jan 8, 2023

Yeas thats because the parsing API is absolute dog shit the way I built it, it fails as soon as YT changes something in their API.
The complete lib needs to be rewritten and I sadly dont have the time for that right now. If you are interested in helping, I can share what I layed out for the rewrite which would allow for much greater parsing then this current mess.

@89Q12 89Q12 pinned this issue Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants