You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, if I use coursera-dl -u **** -p **** ml-007 --path=/srv/ftp/Samba/Coursera/, then everything goes right, but when I add --aria2, then actually the file will be downloaded to (path to coursera-dl)/srv/ftp/Samba/Coursera/, maybe there's some problem when dealing with paths.
The text was updated successfully, but these errors were encountered:
The downloader for aria2 has a bug which prevents it from supporting absolute paths.
From aria2c manpage (v1.35.0):
-o, --out=<FILE>
The file name of the downloaded file. It is always relative to
the directory given in --dir option. When the
--force-sequential option is used, this option is ignored.
Thus both --dir and --out should be specified together for absolute paths, but instead Aria2Downloader in downloaders.py specifies the full path in --out, causing the working directory to be appended to all paths:
For example, if you run coursera-dl in working directory /home/user1/ and specify --path /home/user1/downloads, aria2 will download to a directory /home/user1//home/user1/downloads. This is what @FinalTheory reported, and is still the behavior as of the latest coursera-dl on PyPi (0.11.5).
For example, if I use
coursera-dl -u **** -p **** ml-007 --path=/srv/ftp/Samba/Coursera/
, then everything goes right, but when I add --aria2, then actually the file will be downloaded to(path to coursera-dl)/srv/ftp/Samba/Coursera/
, maybe there's some problem when dealing with paths.The text was updated successfully, but these errors were encountered: