Skip to content

Commit

Permalink
Merge pull request Tribler#1161 from LipuFei/fix_emptyname_in_magnetlink
Browse files Browse the repository at this point in the history
Fix adding magnet link download
  • Loading branch information
whirm committed Jan 20, 2015
2 parents 00b359d + 253f553 commit 847f041
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tribler/Main/vwxGUI/MainFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ def startCMDLineTorrent(self):

def startDownloadFromMagnet(self, url, destdir=None, cmdline=False, selectedFiles=None, vodmode=False, hops=0):
name, infohash, _ = parse_magnetlink(url)
if name is None:
name = ""
tdef = TorrentDefNoMetainfo(infohash, name, url=url)
wx.CallAfter(self.startDownload, tdef=tdef, cmdline=cmdline, destdir=destdir, selectedFiles=selectedFiles, vodmode=vodmode, hops=0)
return True
Expand Down

0 comments on commit 847f041

Please sign in to comment.