Code Monkey home page Code Monkey logo

srb2dl's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

srb2dl's Issues

Specifying download directory doesn't work on Ubuntu 18.04

Getting the following error when I try installing anything:

Downloading chosen files. Please wait..
curl: option --output-dir: is unknown
curl: try 'curl --help' or 'curl --manual' for more information

Downloading is successful.

There's a pretty simple explanation for this: https://daniel.haxx.se/blog/2020/09/10/store-the-curl-output-over-there/
tldr: --output-dir [directory] comes in curl 7.73.0

Interesting.

ubuntu@ubuntu-switch-4-cores-4-gb:~$ curl --version
curl 7.58.0 (aarch64-unknown-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Release-Date: 2018-01-24
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL 

No wonder - Ubuntu 18.04 is too old for the parameter you use to determine download location.
You've got a few options here:

  1. Make the program explicitly require that the OS has the ability to use curl --output-dir - which would be totally fair, my VM is only on something this old for testing purposes anyways
  2. Find some other alternative to specify download locations

Regardless, you should set up some sort of error handling if the download fails, e.g. [download command goes here] || error message goes here so that it's not just claiming the download succeeds when it hasn't.

srb2dl attempts to run curl even if there are no files to download

Picking the "done" option seems to attempt to download files even if there is no downloads in the queue. Leading to an error, also followed by a incorrect "Downloading is successful" message print

Please choose category by typing number and then pressing enter. Press enter or ctrl+c to quit.
1) Characters
2) Maps
3) Gametypes
4) Assets
5) Lua
6) Player Colors
7) Miscellaneous
8) Software
9) Builds
10) Done
#? 10

Downloading chosen files. Please wait..
Warning: output file name has no length
curl: option -o: is badly used here
curl: try 'curl --help' for more information

There is an issue with downloading 

Downloading is successful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.