best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
7.6.1: fixed numbers in metadata and file names
wukkob093bf33bd44
diff --git a/package.json b/package.jsonindex 06fb1b73..04a81ef8 100644--- a/package.json+++ b/package.json@@ -1,7 +1,7 @@{"name": "cobalt","description": "save what you love",- "version": "7.6",+ "version": "7.6.1","author": "wukko","exports": "./src/cobalt.js","type": "module",diff --git a/src/front/updateBanners/meowthcenter.png b/src/front/updateBanners/meowthcenter.pngdeleted file mode 100644index 2dc39e2e..00000000Binary files a/src/front/updateBanners/meowthcenter.png and /dev/null differdiff --git a/src/front/updateBanners/meowthcenter.webp b/src/front/updateBanners/meowthcenter.webpnew file mode 100644index 00000000..8690882bBinary files /dev/null and b/src/front/updateBanners/meowthcenter.webp differdiff --git a/src/modules/changelog/changelog.json b/src/modules/changelog/changelog.jsonindex 9ea24d64..47f0a177 100644--- a/src/modules/changelog/changelog.json+++ b/src/modules/changelog/changelog.json@@ -4,11 +4,11 @@"date": "October 15, 2023","title": "customizable file names, instagram stories, and first cobalt sponsor!","banner": {- "file": "meowthcenter.png",+ "file": "meowthcenter.webp","width": 851,"height": 640},- "content": "as many have (very) often requested, cobalt now lets you pick between several file name format styles!\ngo to <span class=\"text-backdrop\">settings > other</span> and change it to whichever you like! there's a preview of each style, so you know how exactly files are gonna look like.\n\nif you liked file names the way they were before, don't worry: classic style is still the default :)\n\non a different but not any less important note: cobalt is now sponsored by <a class=\"text-backdrop link\" href=\"https://royalehosting.net/\" target=\"_blank\">royalehosting.net</a>!\noverall service performance and stability is gonna be better, but also more content will be possible to download thanks to geniuine server locations. and yes, still no ads or trackers.\n\nthis update also includes a bunch of other changes, check them out:\n\nservice improvements:\n*; added support for instagram stories thanks to <a class=\"text-backdrop link\" href=\"https://github.com/wukko/cobalt/pull/194\" target=\"_blank\">#194</a>.\n*; fixed reddit support thanks to <a class=\"text-backdrop link\" href=\"https://github.com/wukko/cobalt/pull/221\" target=\"_blank\">#221</a>.\n*; added support for rich file names for youtube, vimeo, soundcloud, rutube, and vk.\n*; mute and audio dub file name tags don't appear together anymore.\n*; youtube: dub file name tag doesn't appear anymore if audio track is default.\n\ninterface improvements:\n*; added a list of sponsors to about tab. if you host an instance, it's disabled by default, but can be enabled with showSponsors env variable.\n*; about button now opens about tab when no new changelog is available.\n*; fixed download button thickness on ios.\n\nyou now can reach out to cobalt via email for support! it's located in the about tab along with other socials, such as discord.\n\ni hope you enjoy this long-awaited update and have a blissful day :D"+ "content": "as many have (very) often requested, cobalt now lets you pick between several file name format styles!\ngo to <span class=\"text-backdrop\">settings > other</span> and change it to whichever you like! there's a preview of each style, so you know how exactly files are gonna look like.\n\nif you liked file names the way they were before, don't worry: classic style is still the default :)\n\non a different but not any less important note: cobalt is now sponsored by <a class=\"text-backdrop link\" href=\"https://royalehosting.net/\" target=\"_blank\">royalehosting.net</a>!\noverall service performance and stability is gonna be better, but also more content will be possible to download thanks to geniuine server locations. and yes, still no ads or trackers.\n\nthis update also includes a bunch of other changes, check them out:\n\nservice improvements:\n*; added support for instagram stories thanks to <a class=\"text-backdrop link\" href=\"https://github.com/wukko/cobalt/pull/194\" target=\"_blank\">#194</a>.\n*; fixed reddit support thanks to <a class=\"text-backdrop link\" href=\"https://github.com/wukko/cobalt/pull/221\" target=\"_blank\">#221</a>.\n*; added support for rich file names for youtube, vimeo, soundcloud, rutube, and vk.\n*; numbers and emoji no longer disappear from file metadata and title.\n*; mute and audio dub file name tags don't appear together anymore.\n*; youtube: dub file name tag doesn't appear anymore if audio track is default.\n\ninterface improvements:\n*; added a list of sponsors to about tab. if you host an instance, it's disabled by default, but can be enabled with showSponsors env variable.\n*; about button now opens about tab when no new changelog is available.\n*; fixed download button thickness on ios.\n\nyou now can reach out to cobalt via email for support! it's located in the about tab along with other socials, such as discord.\n\ni hope you enjoy this long-awaited update and have a blissful day :D"},"history": [{"version": "7.5",diff --git a/src/modules/processing/services/soundcloud.js b/src/modules/processing/services/soundcloud.jsindex dc9e2e25..fcc6de02 100644--- a/src/modules/processing/services/soundcloud.js+++ b/src/modules/processing/services/soundcloud.js@@ -70,8 +70,8 @@ export default async function(obj) {if (!file) return { error: 'ErrorCouldntFetch' };let fileMetadata = {- title: cleanString(json.title.replace(/\p{Emoji}/gu, '').trim()),- artist: cleanString(json.user.username.replace(/\p{Emoji}/gu, '').trim()),+ title: cleanString(json.title.trim()),+ artist: cleanString(json.user.username.trim()),}return {diff --git a/src/modules/processing/services/vimeo.js b/src/modules/processing/services/vimeo.jsindex dc300f7c..b60a1c39 100644--- a/src/modules/processing/services/vimeo.js+++ b/src/modules/processing/services/vimeo.js@@ -34,8 +34,8 @@ export default async function(obj) {if (!obj.forceDash && JSON.stringify(api).includes('"progressive":[{')) downloadType = "progressive";let fileMetadata = {- title: cleanString(api.video.title.replace(/\p{Emoji}/gu, '').trim()),- artist: cleanString(api.video.owner.name.replace(/\p{Emoji}/gu, '').trim()),+ title: cleanString(api.video.title.trim()),+ artist: cleanString(api.video.owner.name.trim()),}if (downloadType !== "dash") {diff --git a/src/modules/processing/services/vk.js b/src/modules/processing/services/vk.jsindex b10a4c0d..30d05f29 100644--- a/src/modules/processing/services/vk.js+++ b/src/modules/processing/services/vk.js@@ -34,8 +34,8 @@ export default async function(o) {url = js.player.params[0][`url${quality}`];let fileMetadata = {- title: cleanString(js.player.params[0].md_title.replace(/\p{Emoji}/gu, '').trim()),- artist: cleanString(js.player.params[0].md_author.replace(/\p{Emoji}/gu, '').trim()),+ title: cleanString(js.player.params[0].md_title.trim()),+ artist: cleanString(js.player.params[0].md_author.trim()),}if (url) return {diff --git a/src/modules/processing/services/youtube.js b/src/modules/processing/services/youtube.jsindex 71a617b2..71783fa0 100644--- a/src/modules/processing/services/youtube.js+++ b/src/modules/processing/services/youtube.js@@ -61,8 +61,8 @@ export default async function(o) {}}let fileMetadata = {- title: cleanString(info.basic_info.title.replace(/\p{Emoji}/gu, '').trim()),- artist: cleanString(info.basic_info.author.replace("- Topic", "").replace(/\p{Emoji}/gu, '').trim()),+ title: cleanString(info.basic_info.title.trim()),+ artist: cleanString(info.basic_info.author.replace("- Topic", "").trim()),}if (info.basic_info.short_description && info.basic_info.short_description.startsWith("Provided to YouTube by")) {let descItems = info.basic_info.short_description.split("\n\n");