mirror of
https://github.com/correl/Transmission-XBMC.git
synced 2024-11-22 03:00:15 +00:00
Passing the torrent URI along to transmission rather than the data
Now, all URI types supported by transmission will be supported, including magnet links.
This commit is contained in:
parent
5c57d1e5fc
commit
508da431d0
1 changed files with 1 additions and 4 deletions
|
@ -3,7 +3,6 @@
|
|||
|
||||
import sys
|
||||
import base64
|
||||
import urllib2
|
||||
import xbmc
|
||||
import xbmcgui
|
||||
from basictypes.bytes import Bytes
|
||||
|
@ -148,9 +147,7 @@ class TransmissionGUI(xbmcgui.WindowXMLDialog):
|
|||
if selected < 0:
|
||||
return
|
||||
try:
|
||||
f = urllib2.urlopen(results[selected]['url'])
|
||||
data = base64.b64encode(f.read())
|
||||
self.transmission.add(data)
|
||||
self.transmission.add_uri(results[selected]['url'])
|
||||
except:
|
||||
xbmcgui.Dialog().ok(_(0), _(293))
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue