diff --git a/services/our/src/app.ts b/services/our/src/app.ts
index 706f868..2ece56c 100644
--- a/services/our/src/app.ts
+++ b/services/our/src/app.ts
@@ -180,6 +180,7 @@ export function buildApp() {
}
})
+ // @todo we are going to need to use redis or similar https://github.com/fastify/fastify-caching
app.register(fastifyCaching, {
expiresIn: 300,
privacy: 'private',
diff --git a/services/our/src/views/vod.hbs b/services/our/src/views/vod.hbs
index 3c0deab..6dd7d89 100644
--- a/services/our/src/views/vod.hbs
+++ b/services/our/src/views/vod.hbs
@@ -123,66 +123,70 @@
VOD
- {{#if vod.sourceVideo}}
-
- {{#if (hasRole "supporterTier1" user)}}
- {{icon "download" 24}} Download
-
- {{else}}
-
- {{icon "patreon" 24}}
-
- CDN Download
-
-
- {{/if}}
-
- {{#if vod.sha256sum}}sha256sum {{vod.sha256sum}}{{/if}}
- {{#if vod.cidv1}}
- IPFS cidv1 {{vod.cidv1}}
- {{else}}
- IPFS CID is processing.
+ {{#if vod.sourceVideo}}
+
+ {{#if (hasRole "supporterTier1" user)}}
+ {{icon "download" 24}} Download
+
+ {{else}}
+
+ {{icon "patreon" 24}}
+
+ CDN Download
+
+
+ {{/if}}
+
+ {{#if vod.sha256sum}}sha256sum {{vod.sha256sum}}{{/if}}
+ {{#if vod.cidv1}}
+ IPFS cidv1 {{vod.cidv1}}
+ {{else}}
+
+ IPFS CID is processing.
+
+ {{/if}}
+ {{#if vod.magnetLink}}
+ {{icon "magnet" 24}} Magnet Link
+ {{else}}
+
+ Magnet Link is processing.
+
+ {{/if}}
- {{/if}}
- {{#if vod.magnetLink}}
- {{icon "magnet" 24}} Magnet Link
- {{else}}
-
- Magnet Link is processing.
-
- {{/if}}
Raw Segments
- {{#if vod.segmentKeys}}
- {{#if (hasRole "supporterTier1" user)}}
-
- {{else}}
-
- {{icon "patreon" 24}}
-
- Raw Segments CDN Download
-
-
- {{/if}}
- {{else}}
-
- This VOD has no file segments.
-
- {{/if}} {{!-- end of raw segments --}}
+ {{#if vod.segmentKeys}}
+ {{#if (hasRole "supporterTier1" user)}}
+
+ {{else}}
+
+ {{icon "patreon" 24}}
+
+ Raw Segments CDN Download
+
+
+ {{/if}}
+ {{else}}
+
+ This VOD has no file segments.
+
+
+ {{/if}} {{!-- end of raw segments --}}
+
@@ -198,22 +202,24 @@
HLS Playlist
- {{#if vod.hlsPlaylist}}
- {{#if (hasRole "supporterTier1" user)}}
- {{signedHlsUrl vod.hlsPlaylist}}
- {{else}}
-
- {{icon "patreon" 24}}
-
- HLS Playlist CDN Download
-
-
- {{/if}}
- {{else}}
- HLS Playlist is processing.
+ {{#if vod.hlsPlaylist}}
+ {{#if (hasRole "supporterTier1" user)}}
+ {{signedHlsUrl vod.hlsPlaylist}}
+ {{else}}
+
+ {{icon "patreon" 24}}
+
+ HLS Playlist CDN Download
+
+
+ {{/if}}
+ {{else}}
+
+ HLS Playlist is processing.
+
+ {{/if}}
- {{/if}}
Thumbnail Image
{{#if vod.thumbnail}}
@@ -228,53 +234,54 @@
Funscripts (sex toy sync)
- {{#if vod.funscript}}
-
- {{#if (hasRole "supporterTier1" user)}}
-
- {{!-- @todo change this id to funscript-vibrate --}}
- {{icon "download" 24}}
- {{this.vtuber.displayName}}
- vibrate.funscript
-
-
- {{icon "download" 24}} thrust.funscript (coming soon)
-
- {{else}}
-
- {{icon "patreon" 24}}
-
- Funscripts
-
-
- {{/if}}
-
- {{else}}
- Funscript file is processing.
-
- {{/if}}
+ {{#if vod.funscript}}
+ {{#if (hasRole "supporterTier1" user)}}
+
+ {{!-- @todo change this id to funscript-vibrate --}}
+ {{icon "download" 24}}
+ {{this.vtuber.displayName}}
+ vibrate.funscript
+
+
+ {{icon "download" 24}} thrust.funscript (coming soon)
+
+ {{else}}
+
+ {{icon "patreon" 24}}
+
+ Funscripts
+
+
+ {{/if}}
+
+ {{else}}
+
+ Funscript file is processing.
+
+ {{/if}}
+
Closed Captions / Subtitles
+
-
- {{#if vod.asrVttKey}}
- {{#if (hasRole "supporterTier1" user)}}
- {{icon "download" 24}} Closed Captions
- {{else}}
-
- {{icon "patreon" 24}}
-
- Closed Captions / Subtitles
-
-
- {{/if}}
-
+ {{#if vod.asrVttKey}}
+ {{#if (hasRole "supporterTier1" user)}}
+ {{icon "download" 24}} Closed Captions
+ {{else}}
+
+ {{icon "patreon" 24}}
+
+ Closed Captions / Subtitles
+
+
+ {{/if}}
+
{{else}}