v0.2.3
New
Added support for mobile SoundCloud URLs. This allows the package to use URLs copied from SoundCloud's mobile web version, or their mobile app. There are two types:
- Regular mobile:
https://m.soundcloud.com/XXXXXX/XXXX(these are copied from a mobile browser) - Firebase URL:
https://soundcloud.app.goo.gl/XXXXXXXX(these are copied from the SoundCloud mobile app)
The SCDL class is configured to support these types of URLs by default.
Converting mobile URLs is an inexpensive process, but it may be favourable to disable conversion of Firebase links because they require an HTTP Get request and parsing of the HTML response to find the regular URL. If you wish to disable this behaviour, you may instantiate a custom SCDL class with the appropriate options object:
const scdlCreate = require('../').create
const scdl = scdlCreate({
stripMobilePrefix: false, // Will not convert mobile URLs to regular URLs
convertFirebaseLinks: false, // Will not convert Firebase URLs to regular URLs
})Additionally, you may configure an existing SCDL instance to disable this behaviour by modifying the SCDL.stripMobilePrefix and SCDL.convertFirebaseLinks properties:
const scdl = require('../').default
scdl.stripMobilePrefix = false
scdl.convertFirebaseLinks = false