|
@@ -323,12 +323,14 @@ class default_1 {
|
|
|
const currentFeed = lock.feed[lock.workon];
|
|
|
const promise = new Promise(resolve => {
|
|
|
const match = /https:\/\/www\.instagram\.com\/([^\/]+)/.exec(currentFeed);
|
|
|
- if (!match)
|
|
|
- resolve([]);
|
|
|
+ if (!match) {
|
|
|
+ logger.error(`current feed "${currentFeed}" is invalid, please remove this feed manually`);
|
|
|
+ return resolve([]);
|
|
|
+ }
|
|
|
this.queryUserMedia(match[1], this.lock.threads[currentFeed].offset)
|
|
|
.then(resolve)
|
|
|
.catch((error) => {
|
|
|
- console.error(`error scraping media off profile page of ${match[1]}, error: ${error}`);
|
|
|
+ logger.error(`error scraping media off profile page of ${match[1]}, error: ${error}`);
|
|
|
resolve([]);
|
|
|
});
|
|
|
});
|