add debug for downloaded files
This commit is contained in:
parent
63bab306e9
commit
e692be360c
1 changed files with 6 additions and 1 deletions
|
@ -77,7 +77,7 @@ class GetYoutubeVideos:
|
|||
result=re.search('v=([0-9a-zA-Z-_]{11})',entry['link'])
|
||||
if result:
|
||||
video_id=result.group(1)
|
||||
if video_id not in self.downloaded_items:
|
||||
if video_id not in self.downloaded_items:
|
||||
# print(json.dumps(entry, indent=2))
|
||||
uri=f"https://www.youtube.com/watch?v={video_id}"
|
||||
ydl_opts = {
|
||||
|
@ -172,6 +172,11 @@ class GetYoutubeVideos:
|
|||
error
|
||||
)
|
||||
break
|
||||
else:
|
||||
self._log.debug(
|
||||
"Video '%s' has been already downloaded",
|
||||
entry['link']
|
||||
)
|
||||
else:
|
||||
self._log.error(
|
||||
"Error! Video ID not found in URI '%s'",
|
||||
|
|
Loading…
Reference in a new issue