Advertisement
zinc55

Untitled

Feb 7th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. import cgi
  2. import cgitb
  3. import commands
  4. from subprocess import call
  5. import os
  6.  
  7. cgitb.enable()
  8.  
  9. form = cgi.FieldStorage()
  10.  
  11. magnetlink = form.getvalue('magnet')
  12.  
  13. d_type = form.getvalue('type')
  14. print '<doctype html><head></head><body><p>done</p>'
  15.  
  16. # Call shell script
  17. result = call('aria2c', '--bt-metadata-only=true', '--bt-save-metadata=true', magnetlink, '-d /media/storage/TorrentFiles/'+d_type+')'. shell=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement