forked from LBRYCommunity/lbry-sdk
Update url handler
This commit is contained in:
parent
203f7e7ea6
commit
afac596a7b
2 changed files with 3 additions and 1 deletions
|
@ -288,8 +288,9 @@ class LBRYDaemon(xmlrpc.XMLRPC):
|
||||||
'path': os.path.join(stream.downloader.download_directory,
|
'path': os.path.join(stream.downloader.download_directory,
|
||||||
stream.downloader.file_name)}
|
stream.downloader.file_name)}
|
||||||
for stream in self.downloads if stream.stream_hash == stream_hash])
|
for stream in self.downloads if stream.stream_hash == stream_hash])
|
||||||
|
d.addErrback(lambda _: 'UnknownNameError')
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
daemon = LBRYDaemon()
|
daemon = LBRYDaemon()
|
||||||
|
|
|
@ -11,6 +11,7 @@ def main(args):
|
||||||
|
|
||||||
if len(args) > 1:
|
if len(args) > 1:
|
||||||
print 'Too many args', args
|
print 'Too many args', args
|
||||||
|
|
||||||
else:
|
else:
|
||||||
resolved = daemon.resolve_name(str(args[0])[7:])
|
resolved = daemon.resolve_name(str(args[0])[7:])
|
||||||
daemon.download_name(str(args[0])[7:])
|
daemon.download_name(str(args[0])[7:])
|
||||||
|
|
Loading…
Add table
Reference in a new issue