diff --git a/boydl b/boydl index 90188d7e476ba1822b24c9a832b08da7ed8824a5..4b124ed3ab50607d18755c775a51672dd705886c 100755 --- a/boydl +++ b/boydl @@ -79,7 +79,7 @@ for item in channel.getElementsByTagName("item"): m = link_regex.search(item.getElementsByTagName("description")[0].firstChild.data) if m: url =m.group(1) - + # # if description link cannot be parsed use feed proxy's URL # @@ -89,7 +89,7 @@ for item in channel.getElementsByTagName("item"): me, item.getElementsByTagName('title')[0].firstChild.data)), url = item.getElementsByTagName("link")[0].firstChild.data print(url) - + # # skip already downloaded videos # Always read the index newly so parallel running boydls may @@ -99,7 +99,7 @@ for item in channel.getElementsByTagName("item"): # therefore fetch the video twice or more often. Because this # scenario is considered to happen only very rarly we don't # care about it here. Most of the time this holds. - # + # cont = False index_stream = open(index_file, "rb") for line in index_stream.readlines(): @@ -144,7 +144,7 @@ for item in channel.getElementsByTagName("item"): index_stream = open(index_file, "ab") index_stream.write("%s\n" % url) index_stream.close() - + cmd = ydl + ' ' + yurl print('—' * 80) exit_code = os.system(cmd) % 255 @@ -153,4 +153,3 @@ for item in channel.getElementsByTagName("item"): error_stream = open(error_file, "ab") error_stream.write("%s\t%s\t%d\n" % (url, cmd, exit_code)) error_stream.close() -