Accounting for actualid_d.jpg imgur pattern. Added debug argument to print full stack trace on error.
This commit is contained in:
@@ -9,7 +9,7 @@ async function imgurAlbum(post) {
|
||||
const html = await res.text();
|
||||
|
||||
if (res.status !== 200) {
|
||||
throw new Error(`Could not fetch info for imgur image '${post.host.id}': '${res.data.error}'`);
|
||||
throw new Error(`Could not fetch info for imgur image '${post.host.id}': '${res.statusText}'`);
|
||||
}
|
||||
|
||||
const dataString = html.replace(/\s+/g, ' ').match(/}}, item:(.*)}; var PREBID_TIMEOUT/)[1];
|
||||
|
||||
@@ -7,7 +7,7 @@ async function imgurImage(post) {
|
||||
const html = await res.text();
|
||||
|
||||
if (res.status !== 200) {
|
||||
throw new Error(`Could not fetch info for imgur image '${post.host.id}': '${res.data.error}'`);
|
||||
throw new Error(`Could not fetch info for imgur image '${post.host.id}': '${res.statusText}'`);
|
||||
}
|
||||
|
||||
const dataString = html.replace(/\s+/g, ' ').match(/}}, item:(.*)}; var PREBID_TIMEOUT/)[1];
|
||||
|
||||
Reference in New Issue
Block a user