Fix title

This commit is contained in:
the1812 2018-12-30 22:02:20 +08:00
parent f13ce5249a
commit b03f543248

View File

@ -270,13 +270,17 @@
{
const [data] = downloadedData;
const blob = this.makeBlob(data);
const filename = document.title.replace("_哔哩哔哩 (゜-゜)つロ 干杯~-bilibili", "") + this.extension();
const filename = document.title
.replace("_哔哩哔哩 (゜-゜)つロ 干杯~-bilibili", "")
.replace("_番剧_bilibili_哔哩哔哩", "") + this.extension();
return [blob, filename];
}
async downloadMultiple(downloadedData)
{
const zip = new JSZip();
const title = document.title.replace("_哔哩哔哩 (゜-゜)つロ 干杯~-bilibili", "");
const title = document.title
.replace("_哔哩哔哩 (゜-゜)つロ 干杯~-bilibili", "")
.replace("_番剧_bilibili_哔哩哔哩", "");
if (downloadedData.length > 1)
{
downloadedData.forEach((data, index) =>