Improved handling of unavailable/deleted vidble videos

This commit is contained in:
2024-09-11 05:16:55 +02:00
parent a8ba7dc9f8
commit c39f2eda8c

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: [{