|
@@ -359,12 +359,14 @@ FROM subscriptions")
|
|
|
title=element[1], type=element[2], name=element[3],
|
|
|
search=element[4], directory=element[5], conf=conf))
|
|
|
videosdownloaded = 0
|
|
|
+ videosfailed = 0
|
|
|
for element in listofsubscriptions:
|
|
|
element.GetVideos()
|
|
|
element.DownloadVideos()
|
|
|
for entry in element.DownloadedVideos:
|
|
|
mailcontent.append(entry)
|
|
|
videosdownloaded = len(mailcontent)
|
|
|
+ videosfailed = videosfailed + element.FailedVideos
|
|
|
if videosdownloaded > 0 and conf.values["notify"] == "yes":
|
|
|
MailText = u""
|
|
|
msg = MIMEMultipart()
|
|
@@ -415,14 +417,15 @@ FROM subscriptions")
|
|
|
"please check your settings"), outputlevel="default",
|
|
|
level=conf.outputlevel, descriptor="stderr")
|
|
|
serverconnection.quit()
|
|
|
- elif videosdownloaded == 0:
|
|
|
+ elif videosdownloaded == 0 and videosfailed == 0:
|
|
|
printf(_("No videos to be downloaded."), outputlevel="default",
|
|
|
level=conf.outputlevel, descriptor="stdout")
|
|
|
elif conf.values["notify"] == "no":
|
|
|
- printf(_("The following videos have been downloaded:\n"),
|
|
|
- outputlevel="default", level=conf.outputlevel, descriptor="stdout")
|
|
|
- for i in mailcontent:
|
|
|
- printf(i, outputlevel="default", level=conf.outputlevel, descriptor="stdout")
|
|
|
+ if videosfailed == 0:
|
|
|
+ printf(_("The following videos have been downloaded:\n"),
|
|
|
+ outputlevel="default", level=conf.outputlevel, descriptor="stdout")
|
|
|
+ for i in mailcontent:
|
|
|
+ printf(i, outputlevel="default", level=conf.outputlevel, descriptor="stdout")
|
|
|
else:
|
|
|
printf(_("Could not determine how you want to be informed"
|
|
|
"about new videos, please check the notify parameter"
|