ytools-recommend only prints "No recommendations found." recently
codesoap opened this issue · 2 comments
codesoap commented
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 commented
Should be fixed with 7d2e014, but I'll test it for some time before closing this issue.
codesoap commented
Seems to work. Closing.