Use consistent extension icon URLs

Better caching between versions.
This commit is contained in:
arkon 2023-07-16 15:45:49 -04:00
parent 20d7820118
commit 37d231d66a

View File

@ -12,8 +12,7 @@ export default {
return "v" + this.item.version; return "v" + this.item.version;
}, },
iconUrl: function () { iconUrl: function () {
const pkgName = this.item.apk.substring(0, this.item.apk.lastIndexOf(".")); return `https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo/icon/${this.item.pkg}.png`;
return `https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo/icon/${pkgName}.png`;
}, },
apkUrl: function () { apkUrl: function () {
return `https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo/apk/${this.item.apk}`; return `https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo/apk/${this.item.apk}`;