Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cgi
- import cgitb
- import commands
- from subprocess import call
- import os
- cgitb.enable()
- form = cgi.FieldStorage()
- magnetlink = form.getvalue('magnet')
- d_type = form.getvalue('type')
- print '<doctype html><head></head><body><p>done</p>'
- # Call shell script
- 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