Commit c7686e44 authored by Lysander Trischler's avatar Lysander Trischler

Improve message for unsuccessfull URL extraction

parent fe2b229f
......@@ -84,8 +84,11 @@ for item in channel.getElementsByTagName("item"):
# if description link cannot be parsed use feed proxy's URL
#
if url is None:
print("%s: Cannot extract direct link to Best of YouTube website. Using feed proxy's URL." % me)
print("%s: Cannot extract direct link to Best of YouTube website for '%s'."
" Using feed proxy's URL:" % (
me, item.getElementsByTagName('title')[0].firstChild.data)),
url = item.getElementsByTagName("link")[0].firstChild.data
print(url)
#
# skip already downloaded videos
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment