Aria2 CLI?

Ask for help about FlashGot, no registration needed to post
Post Reply
gexy

Aria2 CLI?

Post 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!
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
gexy

Re: Aria2 CLI?

Post 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.
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
gexy

Re: Aria2 CLI?

Post by gexy »

hmm well, [-o FNAME] nor [--out=FNAME] seem to work... guess I do need assistance afterall :D
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
gexy

Re: Aria2 CLI?

Post 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"
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
gexy

Re: Aria2 CLI?

Post by gexy »

bump
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
user

Re: Aria2 CLI?

Post 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]
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 SeaMonkey/2.19
gexy

Re: Aria2 CLI?

Post 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!
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
gexy

Re: Aria2 CLI?

Post 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
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Aria2 CLI?

Post 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?
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0
user

Re: Aria2 CLI?

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 SeaMonkey/2.19
gexy

Re: Aria2 CLI?

Post 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
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
amaranth

Re: Aria2 CLI?

Post 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.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:24.0) Gecko/20100101 Firefox/24.0 Waterfox/24.0
user

Re: Aria2 CLI?

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 SeaMonkey/2.19
amaranth

Re: Aria2 CLI?

Post 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.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:24.0) Gecko/20100101 Firefox/24.0 Waterfox/24.0
Post Reply