diff --git a/lib/provider/soundcloud.js b/lib/provider/soundcloud.js index fb900ca..fa7bb06 100644 --- a/lib/provider/soundcloud.js +++ b/lib/provider/soundcloud.js @@ -22,7 +22,7 @@ module.exports = SoundCloud; SoundCloud.prototype.parseUrl = function(url, result) { var match = url.match( - /soundcloud\.com\/(?:([\w-]+)\/(sets\/)?)([\w-]+)/i + /(?:m\.)?soundcloud\.com\/(?:([\w-]+)\/(sets\/)?)([\w-]+)/i ); if (!match) { return result; diff --git a/lib/provider/soundcloud.test.js b/lib/provider/soundcloud.test.js index 11b4776..71b61d8 100644 --- a/lib/provider/soundcloud.test.js +++ b/lib/provider/soundcloud.test.js @@ -38,6 +38,7 @@ test('SoundCloud: track urls', () => { }, urls: [ 'https://soundcloud.com/julian-hangst-rfer/odsf0dif92w3j_adfw-edf-1-asdf-1', + 'https://m.soundcloud.com/julian-hangst-rfer/odsf0dif92w3j_adfw-edf-1-asdf-1', ], }); testUrls(newParser(), { @@ -56,6 +57,7 @@ test('SoundCloud: track urls', () => { }, urls: [ 'https://soundcloud.com/julian-hangst-rfer/odsf0dif92w3j_adfw-edf-1-asdf-1#t=00:30', + 'https://m.soundcloud.com/julian-hangst-rfer/odsf0dif92w3j_adfw-edf-1-asdf-1#t=00:30', ], }); });