Page 1 of 1

Aria2 CLI?

Posted: Sat Nov 02, 2013 11:23 am
by gexy
Hi, I'm currently using aria2 on windows with the current parameters:

Code: Select all

-x10 -s10 -k1M -t30 --check-certificate=false [--dir=FOLDER] [--referer=REFERER] [--load-cookies=CFILE] [--input-file=UFILE]
which works rather well, except for youtube videos. It just names every video as "videoplayback", without even a file extension. Any chance you could share the working commands that ship with linux (if I recall, youtube videos are properly named with the built-in aria2 profile)

Thankyou!

Re: Aria2 CLI?

Posted: Mon Nov 04, 2013 2:51 am
by gexy
Never mind, surprised I didn't think of it before posting, but looked through the xpi and found it is probably [-o FNAME] that needs to be added. Will make sure that is the case when I am able.

Re: Aria2 CLI?

Posted: Wed Nov 06, 2013 8:39 am
by gexy
hmm well, [-o FNAME] nor [--out=FNAME] seem to work... guess I do need assistance afterall :D

Re: Aria2 CLI?

Posted: Wed Nov 13, 2013 11:27 pm
by gexy
Bump-- I don't know what else to do, since I can't find another mention of aria2 when I open flashgot's files in a text editor except for the example in my previous post. FNAME doesn't seem to work unfortunately, youtube videos are still named "videoplayback"

Re: Aria2 CLI?

Posted: Sat Nov 23, 2013 9:37 am
by gexy
bump

Re: Aria2 CLI?

Posted: Sat Nov 23, 2013 11:32 am
by user
When the input-file option is present, the o/out option specified on the command line is ignored (and probably some other options as well), and the out (not o) option from the input file is used instead.

Code: Select all

-x10 -s10 -k1M -t30 --check-certificate=false [--dir=FOLDER] [--referer=REFERER] [--load-cookies=CFILE] [--out=FNAME] [URL]

Re: Aria2 CLI?

Posted: Sat Nov 23, 2013 11:35 pm
by gexy
Thankyou, that worked perfectly, and I would probably have never found it out myself (aria2 documentation page doesn't mention it)

Thanks again!

Re: Aria2 CLI?

Posted: Mon Dec 02, 2013 11:35 am
by gexy
Spoke too soon, it works for everything that only has valid characters in its title. For example, trying to download this video: http://www.youtube.com/watch?v=iIjsRaBAAfs

The title contains a "?" which spits out an error in aria2 on Windows (I suspect "?" is allowed in file names in *nix). Whether this is aria2's or flashgot's job to clean up file names I have no idea! :P

But in the meantime, any workarounds? :)

Thanks

Re: Aria2 CLI?

Posted: Mon Dec 02, 2013 10:18 pm
by Thrawn
I'm not an expert on Windows filenames, but I think question marks are allowed.

You could try surrounding the parameter with double quotes?

Re: Aria2 CLI?

Posted: Mon Dec 02, 2013 10:35 pm
by user
It'a an aria2 bug. As a workaround, set flashgot.media.unicode to false. That will limit valid character set to a-z, 0-9, and underscore (_).
The "?" gets cleared alright, the problem is in the first character (\u25ba) - it gets converted to ">" which is illegal.

Re: Aria2 CLI?

Posted: Tue Dec 03, 2013 10:59 am
by gexy
Thankyou, that setting seems to have done the trick! :)

Thrawn: On my Windows 8 machine, attempting to rename a file with a question mark results in a small tooltip giving examples of invalid characters, including slashes, quotations, colons etc. This may be a superficial (Windows Explorer) limitation, not sure

Re: Aria2 CLI?

Posted: Thu Dec 12, 2013 3:43 pm
by amaranth
@user

is there a way to have aria2c ignore invalid characters like in browser-built-in? (they are / \ : * ? " < > | in win7)
like say in what gexy posted: ►_WTF_Is_Assassin_s_Creed_IV_Black_Flag_medium-mp4.flv

is what you get(there's no "?") if you use Browser_Built-In, and presumably DownThemAll.

Re: Aria2 CLI?

Posted: Thu Dec 12, 2013 5:39 pm
by user
There's no invalid characters in the filename "►_WTF_Is_Assassin_s_Creed_IV_Black_Flag_medium-mp4.flv". What's "invalid" (for like 13 years already) is using ANSI (non-Unicode) API on an NT-based system. So you can try the latest build and if the bug is still there, wait until this patch makes it to the build, or build it yourself, or as I said in my previous post, set flashgot.media.unicode to false.

Re: Aria2 CLI?

Posted: Fri Dec 13, 2013 5:52 am
by amaranth
no, it's not the issue of incorrect codepage.

it's just that windows do not accept filenames with / \ : * ? " < > |.

I was asking if it was somehow possible for aria2 to ignore those characters. which is what browser_built-in and DownThemAll does.