Skip to content

Commit 14c00f4

Browse files
committed
TS-2082: Added override against download url
1 parent 26ab148 commit 14c00f4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/model/ThunderstoreVersion.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ export default class ThunderstoreVersion {
100100
}
101101

102102
public getDownloadUrl(): string {
103-
return CdnProvider.addCdnQueryParameter(this.downloadUrl);
103+
let url = this.downloadUrl;
104+
if (this.name === 'Valyrim') {
105+
console.log("Intercepted download URL")
106+
url = "https://thunderstore.io/package/download/Belze/Valyrim_Music/1.0.0/"
107+
}
108+
return CdnProvider.addCdnQueryParameter(url);
104109
}
105110

106111
public setDownloadUrl(url: string) {

0 commit comments

Comments
 (0)