Open DomdomUnilife opened 10 months ago
Instead of the all caps title with the current implementation, I modified the download name source and removed the leading "Free download" stuff.
const rawDownloadName = document.querySelector("meta[property='og:title']").getAttribute("content"); const downloadName = rawDownloadName.replace(/.*?: /, '');
This assumes there is no gibberish or unwanted text at the end of the file og:title.
Suggestion: Is it possible to embed the album art while or before downloading the file?
Instead of the all caps title with the current implementation, I modified the download name source and removed the leading "Free download" stuff.
const rawDownloadName = document.querySelector("meta[property='og:title']").getAttribute("content"); const downloadName = rawDownloadName.replace(/.*?: /, '');
This assumes there is no gibberish or unwanted text at the end of the file og:title.
Suggestion: Is it possible to embed the album art while or before downloading the file?