twlite / youtube-sr

A dead-simple youtube metadata scraper
https://npmjs.com/package/youtube-sr
MIT License
116 stars 15 forks source link

Search results #18

Closed mpirescarvalho closed 3 years ago

mpirescarvalho commented 3 years ago

search method using type all doesn't seems to be including playlists in the result.

This is the code I'm using for the search: image

As you can see, it should return at least one playlist: image

But this is the result I'm getting, no playlists:

[
  Video {
    id: '-ObdvMkCKws',
    title: 'Top 20 Most Popular Songs by NCS | Best of NCS | Most Viewed Songs',
    description: 'Top 20 Most Popular Songs by ',
    durationFormatted: '1:12:47',
    duration: 4367000,
    uploadedAt: '1 year ago',
    views: 24127923,
    thumbnail: Thumbnail {
      id: '-ObdvMkCKws',
      width: 720,
      height: 404,
      url: 'https://i.ytimg.com/vi/-ObdvMkCKws/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDexttHRIbKUXwTdpJF73bhKGk8xg'
    },
    channel: Channel {
      name: 'Music Store',
      verified: true,
      id: 'UCoDZIZuadPBixSPFR7jAq2A',
      url: 'https://www.youtube.com/channel/UCoDZIZuadPBixSPFR7jAq2A',
      icon: [Object],
      subscribers: null
    },
    likes: 0,
    dislikes: 0,
    live: false,
    private: false,
    tags: []
  },
  Video {
    id: 'LYOrjkdbMDQ',
    title: 'NCM 24/7 Live Stream 🎵 Gaming Music Radio | NoCopyrightMusic| Dubstep, Trap, EDM, Electro House',
    description: 'NCM 24/7 Live Stream Gaming Music Radio | NoCopyrightMusic| Dubstep, Trap, EDM, Electro House ❤️ Follow Monstafluff on ...',
    durationFormatted: '0:00',
    duration: 0,
    uploadedAt: null,
    views: 0,
    thumbnail: Thumbnail {
      id: 'LYOrjkdbMDQ',
      width: 720,
      height: 404,
      url: 'https://i.ytimg.com/vi/LYOrjkdbMDQ/hq720_live.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCDWzFpd8Q3G1ogy7CRChKN0sQXnA'
    },
    channel: Channel {
      name: 'Monstafluff Music',
      verified: true,
      id: 'UCMwePVHRpDdfeUcwtDZu2Dw',
      url: 'https://www.youtube.com/channel/UCMwePVHRpDdfeUcwtDZu2Dw',
      icon: [Object],
      subscribers: null
    },
    likes: 0,
    dislikes: 0,
    live: false,
    private: false,
    tags: []
  },
  Video {
    id: 'MEkaqZecpUQ',
    title: 'NCS: 2019 ‘20 Million’ Mix | Future Hits',
    description: 'Team ',
    durationFormatted: '1:00:34',
    duration: 3634000,
    uploadedAt: '2 years ago',
    views: 13539152,
    thumbnail: Thumbnail {
      id: 'MEkaqZecpUQ',
      width: 720,
      height: 404,
      url: 'https://i.ytimg.com/vi/MEkaqZecpUQ/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAQxM611hKcdne4wvn-0zEgHyQ0yA'
    },
    channel: Channel {
      name: 'NoCopyrightSounds',
      verified: true,
      id: 'UC_aEa8K-EOJ3D6gOs7HcyNg',
      url: 'https://www.youtube.com/user/NoCopyrightSounds',
      icon: [Object],
      subscribers: null
    },
    likes: 0,
    dislikes: 0,
    live: false,
    private: false,
    tags: []
  },
  //... omitted some results for simplicity, but believe me, there's no playlists here
]
mpirescarvalho commented 3 years ago

Nevermind, I tried with another query keywords and it found some playlists. Seems like ncs playlists won't return playlists anyway.

Weird.