Improved handling of unavailable/deleted vidble videos
This commit is contained in:
parent
a8ba7dc9f8
commit
c39f2eda8c
|
@ -18,6 +18,10 @@ function vidbleVideo(post) {
|
||||||
const source = resource.attr('src');
|
const source = resource.attr('src');
|
||||||
const type = resource.attr('type');
|
const type = resource.attr('type');
|
||||||
|
|
||||||
|
if(!source || !type) {
|
||||||
|
throw new Error(`Failed to retrieve (likely removed) vidble video '${post.host.id}'`);
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
album: null,
|
album: null,
|
||||||
items: [{
|
items: [{
|
||||||
|
|
Loading…
Reference in New Issue