diff --git a/extension/script.js b/extension/script.js index 83971fc..bcb8b9e 100644 --- a/extension/script.js +++ b/extension/script.js @@ -280,10 +280,9 @@ function buildChannelDownloadButton() { channelDownloadButton.title = `TA download video: ${videoId}`; checkVideoExists(channelDownloadButton); } else { - let toDownload = urlObj.pathname.slice(1); - channelDownloadButton.setAttribute('data-id', toDownload); + channelDownloadButton.setAttribute('data-id', currentLocation); channelDownloadButton.setAttribute('data-type', 'channel'); - channelDownloadButton.title = `TA download channel ${toDownload}`; + channelDownloadButton.title = `TA download channel ${currentLocation}`; } channelDownloadButton.innerHTML = downloadIcon; channelDownloadButton.addEventListener('click', e => {