rssVideos: Slightly better error handling
Makes it actually quit on Ctrl+C
This commit is contained in:
parent
6a6f5401e6
commit
7f0e24a29d
|
@ -1,3 +1,4 @@
|
|||
coloredlogs>=10.0<11
|
||||
progressbar2>=3.47.0<4
|
||||
youtube-dl>=2021.6.6
|
||||
yt-dlp>=2021.10.22
|
||||
ConfigArgParse>=1.5<2
|
||||
|
|
|
@ -8,9 +8,6 @@ The common use case would be a feed from an RSS aggregator
|
|||
with the unread items (non-video links are ignored).
|
||||
"""
|
||||
|
||||
# TODO Distribute this correclty, in the meanwhile please do
|
||||
# pip install --user coloredlogs ConfigArgParse yt-dlp
|
||||
|
||||
import enum
|
||||
import functools
|
||||
import logging
|
||||
|
@ -118,7 +115,9 @@ class RVElement:
|
|||
log.info(f"Researching: {self}")
|
||||
try:
|
||||
infos = self.parent.ytdl_dry.extract_info(self.link)
|
||||
except BaseException as e:
|
||||
except KeyboardInterrupt as e:
|
||||
raise e
|
||||
except youtube_dl.utils.DownloadError as e:
|
||||
# TODO Still raise in case of temporary network issue
|
||||
log.warn(e)
|
||||
infos = None
|
||||
|
|
Loading…
Reference in a new issue