Hello Sir,
I am using flashgot with external aria2 download manager. It pops up a window for each download I added to the aria2 server. How to disable that behavior and let all happens in the background?
Thank you!
Disable popup window with aria2 manager
-
- Posts: 5
- Joined: Sun Oct 02, 2016 9:50 am
Disable popup window with aria2 manager
Last edited by godblessfq on Wed Oct 05, 2016 11:47 am, edited 1 time in total.
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Re: No popup window with aria2 manager
Not sure, but...
FlashGot Options -> Downloads => Autostart downloads && Intercept all downloads ?
FlashGot Options -> Downloads => Autostart downloads && Intercept all downloads ?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40
-
- Posts: 5
- Joined: Sun Oct 02, 2016 9:50 am
Re: No popup window with aria2 manager
No, I don't want to disable aria2, I want flashgot to intercept all downloads with aria2, but let it do it silently without showing details of the downloads in a pop up window. Aria2 has a web interface for acitive downloads.
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
-
- Posts: 5
- Joined: Sun Oct 02, 2016 9:50 am
Re: Disable popup window with aria2 manager
The problem solved with a script I find on the internet and the following setting.
Code: Select all
user_pref("flashgot.custom", "aria2c");
user_pref("flashgot.custom.aria2c.args", "[--cookie COOKIE] [--output FNAME] --rpc http://localhost:6800/jsonrpc [URL]\n");
user_pref("flashgot.custom.aria2c.exe", "/home/q/.dotfiles/.aria2/aria2rpc.py");
user_pref("flashgot.defaultDM", "aria2c");
user_pref("flashgot.detect.cache", "(Browser Built In),Wget,pyLoad,cURL,aria2c,Aria 2");
user_pref("flashgot.interceptAll", true);
Code: Select all
#!/usr/bin/env python2
import json, urllib2, sys
from argparse import ArgumentParser
parser = ArgumentParser()
parser.add_argument('-c', '--cookie', help='use cookies', type=str,
default='', metavar='COOKIES', dest='cookies')
parser.add_argument('-o', '--output', help='output name', type=str,
default='', metavar='NAME', dest='output')
parser.add_argument('-d', '--dir', help='dest dir', type=str,
default='', metavar='DIR', dest='dir')
parser.add_argument('-r', '--rpc', help='aria2 rpc (http://localhost:6800/jsonroc)',
type=str, default='http://127.0.0.1:6800/jsonrpc',
metavar='URL', dest='rpc')
parser.add_argument('URIs', nargs='+', help='URIs', type=str,
default='', metavar='URI')
opts = parser.parse_args()
jsondict = {'jsonrpc':'2.0', 'id':'qwer',
'method':'aria2.addUri','params':[opts.URIs]}
aria2optsDefault={
'continue' :'true',
'max-connection-per-server' :'15',
'split' :'15',
'min-split-size' :'10M'}
aria2opts = {}
aria2opts.update(aria2optsDefault)
if opts.output:
aria2opts['out'] = opts.output
if opts.dir:
aria2opts['dir'] = opts.dir
if opts.cookies:
aria2opts['header'] = ['Cookie: 0'.format(opts.cookies)]
jsondict['params'].append(aria2opts)
jsonreq = json.dumps(jsondict)
print jsonreq
urllib2.urlopen(opts.rpc, jsonreq)
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0