Improved handling of unavailable/deleted vidble videos

This commit is contained in:
DebaucheryLibrarian 2024-09-11 05:16:55 +02:00
parent a8ba7dc9f8
commit c39f2eda8c
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@ function vidbleVideo(post) {
const source = resource.attr('src');
const type = resource.attr('type');
if(!source || !type) {
throw new Error(`Failed to retrieve (likely removed) vidble video '${post.host.id}'`);
}
return {
album: null,
items: [{