use current location for channel download url

pull/23/head v0.2.0
Simon 8 months ago
parent ad2a6f3693
commit fd87615cdc
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

@ -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 => {

Loading…
Cancel
Save