bump soundcloud-scraper
This commit is contained in:
parent
f5a48bc433
commit
903bfaae46
3 changed files with 5 additions and 7 deletions
|
@ -51,7 +51,7 @@
|
||||||
"homepage": "https://github.com/Androz2091/discord-player#readme",
|
"homepage": "https://github.com/Androz2091/discord-player#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"discord-ytdl-core": "^5.0.3",
|
"discord-ytdl-core": "^5.0.3",
|
||||||
"soundcloud-scraper": "^4.0.3",
|
"soundcloud-scraper": "^4.0.4",
|
||||||
"spotify-url-info": "^2.2.0",
|
"spotify-url-info": "^2.2.0",
|
||||||
"youtube-sr": "^4.0.6",
|
"youtube-sr": "^4.0.6",
|
||||||
"ytdl-core": "^4.7.0"
|
"ytdl-core": "^4.7.0"
|
||||||
|
|
|
@ -65,8 +65,6 @@ export class Util {
|
||||||
* @returns {QueryType}
|
* @returns {QueryType}
|
||||||
*/
|
*/
|
||||||
static getQueryType(query: string): QueryType {
|
static getQueryType(query: string): QueryType {
|
||||||
// @todo: better validation
|
|
||||||
if (query.match(/soundcloud.app.goo.gl/)) return 'soundcloud_track';
|
|
||||||
if (SoundcloudValidateURL(query) && !query.includes('/sets/')) return 'soundcloud_track';
|
if (SoundcloudValidateURL(query) && !query.includes('/sets/')) return 'soundcloud_track';
|
||||||
if (SoundcloudValidateURL(query) && query.includes('/sets/')) return 'soundcloud_playlist';
|
if (SoundcloudValidateURL(query) && query.includes('/sets/')) return 'soundcloud_playlist';
|
||||||
if (spotifySongRegex.test(query)) return 'spotify_song';
|
if (spotifySongRegex.test(query)) return 'spotify_song';
|
||||||
|
|
|
@ -3917,10 +3917,10 @@ sort-array@^2.0.0:
|
||||||
object-get "^2.1.0"
|
object-get "^2.1.0"
|
||||||
typical "^2.6.0"
|
typical "^2.6.0"
|
||||||
|
|
||||||
soundcloud-scraper@^4.0.3:
|
soundcloud-scraper@^4.0.4:
|
||||||
version "4.0.3"
|
version "4.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/soundcloud-scraper/-/soundcloud-scraper-4.0.3.tgz#cd7ed1d7b6ed1d7729fd7580c011281f652b920f"
|
resolved "https://registry.yarnpkg.com/soundcloud-scraper/-/soundcloud-scraper-4.0.4.tgz#dfd6a45dc6e63fac7d6b31f2ba1d23a199ca4fb6"
|
||||||
integrity sha512-A0a6sVJ2wkkWIX8Ft3L63sfHBlFDRAaPFif+SWi07KCNLh8YTcylw45pts76pndxlupKwV2NgOTIYeF/F9tg8w==
|
integrity sha512-ei3KuPsVZRiq9j2GN580gQwVGZUWMdkmDAANSPm8qweUa4/UnKAnYiUsc/6volZsQiGsnJAP9+8HECDxNcTg6A==
|
||||||
dependencies:
|
dependencies:
|
||||||
cheerio "^1.0.0-rc.3"
|
cheerio "^1.0.0-rc.3"
|
||||||
m3u8stream "^0.8.0"
|
m3u8stream "^0.8.0"
|
||||||
|
|
Loading…
Reference in a new issue