Coder Social home page Coder Social logo

Downloading is broken about mania HOT 10 CLOSED

evan-goode avatar evan-goode commented on June 15, 2024
Downloading is broken

from mania.

Comments (10)

evan-goode avatar evan-goode commented on June 15, 2024

Thanks for the issue, sorry for my delayed reply! It's finals season over here. This should be addressed in 842ddc4; I swapped out the old login method for the TV-based login that RedSea does. I'll merge this to master in the next couple days after I update the README and do a little more testing.

I saw you were writing a GUI, and the new login method unfortunately involves some command-line interactivity, see this function:

def authenticate(self) -> None:

Feel free to PR to do this in a more modular way, it would be cool if the back-endish parts of mania could be easily reused with other interfaces.

from mania.

Corewala avatar Corewala commented on June 15, 2024

Nice. I tried testing it out and noticed it requires a HiFi subscription to function (I don't have one). Is this due to the new TV-based login system?

from mania.

evan-goode avatar evan-goode commented on June 15, 2024

I commented out the HiFi check in 2897d50, could you give that a try? I copied it over from RedSea without thinking too much about it, but I'm not sure what its purpose is... you would think a non-HiFi account would be able to log in using the same process and fetch lossy tracks. I don't have a non-HiFi account to test :P

from mania.

Corewala avatar Corewala commented on June 15, 2024

Looks like it can download lossy files now. Thanks!

from mania.

Corewala avatar Corewala commented on June 15, 2024

I sent a PR with a change to make the authentication system simpler for external clients.

from mania.

evan-goode avatar evan-goode commented on June 15, 2024

Looks like it can download lossy files now. Thanks!

Sweet! Out of curiosity, what happens when you request a track in lossless or MQA quality? Would be good to show an appropriate error in that case.

from mania.

Corewala avatar Corewala commented on June 15, 2024
-> mania url https://tidal.com/browse/track/101982419 --quality lossless

Loaded cached TIDAL session.
Downloading "Never Gonna Give You Up"...
8.23MB [00:01, 5.03MB/s]                                                                                                                                                                                                                      
Resolving metadata...
Skipping Never Gonna Give You Up.flac; received invalid file
Saving TIDAL session for future use...
Done!

from mania.

Corewala avatar Corewala commented on June 15, 2024

Oddly enough it does seem to download something, and it is actually playable if you stop mania before it deletes the track. It looks like mania just downloads a high quality lossy track instead.

from mania.

evan-goode avatar evan-goode commented on June 15, 2024

Thanks! Yeah, a silent fail is about what I expected. Added a proper error in 83ea107.

from mania.

evan-goode avatar evan-goode commented on June 15, 2024

Merged to master.

from mania.

Related Issues (8)

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.