bakapear / ytt

YouTubeTools
MIT License
6 stars 1 forks source link

Empty query answer #4

Closed laBecasse closed 3 years ago

laBecasse commented 3 years ago

Hello, First of all, thank you for this amazing package. I discover some problems using the query method. The following queries lead to empty result, which is not the case in YT:

  1. joy departed
  2. Marvin Gaye, 'What's Going On'

The case 1. is maybe related to the fact that an album is attached to the answer. The case 2. may be caused by the quotes.

bakapear commented 3 years ago
ytt.query('joy departed').then(r => console.log(r.items.length)) // 19 results
ytt.query('Marvin Gaye, \'What\'s Going On\'').then(r => console.log(r.items.length)) // 19 results

Both queries return results for me. Did you apply some filters or something?

laBecasse commented 3 years ago

Ok, you are right. Things are working now, but I did not change my code since this morning and I was sure that the answer set was empty. Does it possible that youtube have an evolving behaviour ?

bakapear commented 3 years ago

This ytt module is basically a site scraper. If the site changes its structure then this module breaks easily. So it's possible something changed for a short period of time that broke this module.