Update url handler

This commit is contained in:
Jack 2015-12-09 23:57:58 -05:00
parent 203f7e7ea6
commit afac596a7b
2 changed files with 3 additions and 1 deletions

View file

@ -288,8 +288,9 @@ class LBRYDaemon(xmlrpc.XMLRPC):
'path': os.path.join(stream.downloader.download_directory,
stream.downloader.file_name)}
for stream in self.downloads if stream.stream_hash == stream_hash])
d.addErrback(lambda _: 'UnknownNameError')
return d
def main():
daemon = LBRYDaemon()

View file

@ -11,6 +11,7 @@ def main(args):
if len(args) > 1:
print 'Too many args', args
else:
resolved = daemon.resolve_name(str(args[0])[7:])
daemon.download_name(str(args[0])[7:])