diff --git a/src/templates/watch.eta b/src/templates/watch.eta index 3bd9672..2c579d1 100644 --- a/src/templates/watch.eta +++ b/src/templates/watch.eta @@ -33,7 +33,7 @@ [faq] - + <% if (it.transparency.length != 0) { %>
Somebody has complained about this video...
@@ -42,14 +42,14 @@ <% }) %>
<% } %> - + <% if (it.deletion_stage === 'pending_delete') { %>
Heads up — this video is scheduled for deletion.

Got questions or think this is a mistake? Drop me an email at admin@preservetube.com.

<% } %> - +
<% if (it.deletion_stage === 'soft_delete') { %>
@@ -61,28 +61,33 @@

This video has been removed.

Storage is limited, so I occasionally clear out things like 10-hour blank screens and similar content.

+ <% } else if (it.deletion_stage === 'cold_storage') { %> +
+

This video has been moved to cold-storage.

+

Videos that aren't watched often are moved to cold storage as a cost-saving measure.

They can still be retrieved. Please email me at admin@preservetube.com.

+
<% } else { %> <% } %>

<%= it.v_title %>

- +
- <%= it.channel %> + <%= it.channel %> <% if (it.channelVerified) { %>
<% } %>
- +

- Published on <%= it.published %> | Archived on <%= it.archived %> + Published on <%= it.published %> | Archived on <%= it.archived %> @@ -292,6 +297,11 @@ border: 2px dashed #dc3545; } + .video-placeholder.coldstorage { + background-color: #e8f4fd; + border: 2px dashed #4da3d9; + } + .video-placeholder p { font-size: 1.2rem; margin: 0.5rem 0; @@ -360,15 +370,15 @@ video.addEventListener('pointerdown', hide); video.addEventListener('error', () => { - hasTheVideoErrored = true + hasTheVideoErrored = true loading.innerHTML = 'Video failed to load.'; if (isIOSOrIPad) { loading.innerHTML += '

It looks like you\'re on an iOS or iPadOS device. Apple devices without a hardware decoder can\'t play the kind of video Preservetube serves.

' + '

Please try using a different device.

' } else { - loading.innerHTML += '

This is not supposed to happen. Please email me at admin@preservetube.com with as much debugging information.

' + - '

Please include your browser console logs. ' + + loading.innerHTML += '

This is not supposed to happen. Please email me at admin@preservetube.com with as much debugging information.

' + + '

Please include your browser console logs. ' + 'See here on how to access them. Please note you might have to refresh the page for anything to show up.

' } }); @@ -384,7 +394,7 @@ loading.innerHTML += '

This might be due one of multiple reasons:

' + '
  1. This video is large. Depending on your browser, it might try loading the full thing at one time, which will slow things down.
  2. ' + '
  3. Preservetube servers are overloaded. This happens once in a while, please be patient.
  4. You\'re in an unfavourable region, which has a bad connection to our servers.
' - + '

If this takes an unusual amount of time, even after considering the above mentioned reasons, please email me at admin@preservetube.com. Don\'t forget to include your aproximate region, your browser and OS.

'; + + '

If this takes an unusual amount of time, even after considering the above mentioned reasons, please email me at admin@preservetube.com. Don\'t forget to include your aproximate region, your browser and OS.

'; } }, FALLBACK_MS); diff --git a/src/types.ts b/src/types.ts index bc22a80..d52353c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -26,7 +26,7 @@ export interface VideosTable { playlist?: string | null disabled: boolean hasBeenReported: boolean, - deletion_stage: 'pending_delete' | 'soft_delete' | 'deleted' | null + deletion_stage: 'pending_delete' | 'soft_delete' | 'cold_storage' | 'deleted' | null } export type Video = Selectable