From 66c57e566e88eaef4a4ab1d65361206189f55f58 Mon Sep 17 00:00:00 2001 From: wryk Date: Mon, 27 Jan 2020 17:05:47 +0100 Subject: [PATCH] add support to mobile youtube subdomain --- src/services/misc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/misc.js b/src/services/misc.js index 0264382..767b4c0 100644 --- a/src/services/misc.js +++ b/src/services/misc.js @@ -123,7 +123,7 @@ function mkData(status) for (const urlAsString of urls) { const url = new URL(urlAsString) - if (['youtube.com', 'music.youtube.com'].includes(url.hostname) && url.searchParams.has('v')) { + if (['youtube.com', 'm.youtube.com', 'music.youtube.com'].includes(url.hostname) && url.searchParams.has('v')) { return { url: urlAsString, id: url.searchParams.get('v') } } else if (url.hostname === 'youtu.be') { return { url: urlAsString, id: url.pathname.substring(1) }