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

ytools-recommend only prints "No recommendations found." recently #6

Closed
codesoap opened this issue Jul 5, 2020 · 2 comments
Closed

Comments

@codesoap
Copy link
Owner

codesoap commented Jul 5, 2020

At first it appeared sporadic, but now I'm not getting any results from ytools-recommend anymore. All I get is the No videos found. message. YouTube seemingly changed the structure of the HTML it returns and ytools should adapt to these changes.

VideoIDs can be retrieved like this:

ytools-pick 1 | \
grep 'window..ytInitialData.. =' | \
sed -e 's/^[^=]*. *//' -e 's/; *$//' | \
jq '.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.results[].compactVideoRenderer.videoId'

And video titles like this:

ytools-pick 1 | \
grep 'window..ytInitialData.. =' | \
sed -e 's/^[^=]*. *//' -e 's/; *$//' | \
jq '.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.results[].compactVideoRenderer.title.simpleText'
@codesoap
Copy link
Owner Author

codesoap commented Jul 5, 2020

Should be fixed with 7d2e014, but I'll test it for some time before closing this issue.

@codesoap
Copy link
Owner Author

codesoap commented Aug 8, 2020

Seems to work. Closing.

@codesoap codesoap closed this as completed Aug 8, 2020
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

1 participant