adding logging in case fail
This commit is contained in:
parent
d36f586acd
commit
651d10aec0
|
@ -23,6 +23,8 @@ async function handleDownload(channelId) {
|
||||||
logger.info({ message: `Checking ${channelId} for new videos...` })
|
logger.info({ message: `Checking ${channelId} for new videos...` })
|
||||||
|
|
||||||
const videos = await metadata.getChannelVideos(channelId)
|
const videos = await metadata.getChannelVideos(channelId)
|
||||||
|
if (!videos) return logger.info({ message: `Failed requesting Youtube for ${channelId}` })
|
||||||
|
|
||||||
for (video of videos) {
|
for (video of videos) {
|
||||||
const id = video.url.match(/[?&]v=([^&]+)/)[1]
|
const id = video.url.match(/[?&]v=([^&]+)/)[1]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue