Improved handling of unavailable/deleted vidble videos
This commit is contained in:
parent
ec6182e747
commit
3a724d1b37
|
@ -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: [{
|
||||
|
|
Loading…
Reference in New Issue