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'])
|
result=re.search('v=([0-9a-zA-Z-_]{11})',entry['link'])
|
||||||
if result:
|
if result:
|
||||||
video_id=result.group(1)
|
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))
|
# print(json.dumps(entry, indent=2))
|
||||||
uri=f"https://www.youtube.com/watch?v={video_id}"
|
uri=f"https://www.youtube.com/watch?v={video_id}"
|
||||||
ydl_opts = {
|
ydl_opts = {
|
||||||
|
@ -172,6 +172,11 @@ class GetYoutubeVideos:
|
||||||
error
|
error
|
||||||
)
|
)
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
self._log.debug(
|
||||||
|
"Video '%s' has been already downloaded",
|
||||||
|
entry['link']
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
self._log.error(
|
self._log.error(
|
||||||
"Error! Video ID not found in URI '%s'",
|
"Error! Video ID not found in URI '%s'",
|
||||||
|
|
Loading…
Reference in a new issue