GithubHelp home page GithubHelp logo

Comments (6)

781flyingdutchman avatar 781flyingdutchman commented on August 11, 2024 1

Fixed in V5.4.5

from background_downloader.

781flyingdutchman avatar 781flyingdutchman commented on August 11, 2024

Thanks for submitting. The location where this happens is where the url you provided as a String (your contenUrl) is converted to a URL object. That conversion fails, causing nil, then causing the unwrap error. I will change the code to catch this error more gracefully, but it also is likely that the contentUrl you use is not a proper url. Can you share or verify? In particular, if the url contains special characters, is it urlEncoded?

from background_downloader.

781flyingdutchman avatar 781flyingdutchman commented on August 11, 2024

Try the latest dev branch to see what error you get:

background_downloader:
    git:
      url: https://github.com/781flyingdutchman/background_downloader.git
      ref: dev

from background_downloader.

Maqcel avatar Maqcel commented on August 11, 2024

Ahh right WWW_FCTC_W1 D2 S3 - Your Starting Point.mp3 url returned by backend contains spaces but Android handles it with ease.
I'll try with the dev and let you know in a second

from background_downloader.

Maqcel avatar Maqcel commented on August 11, 2024

Yeah the error was displayed to the console tomorow I'll add the additional url encoding before download request

from background_downloader.

781flyingdutchman avatar 781flyingdutchman commented on August 11, 2024

Yep, the URL and any query parameters must be url encoded. Thanks for pointing out the inelegant error though!

from background_downloader.

Related Issues (20)

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.