GithubHelp home page GithubHelp logo

mopidy-qobuz's Introduction

Mopidy-Qobuz

Mopidy extension for playing music from Qobuz.

Requires a Qobuz subscription.

Installation

Install by running:

sudo pip install mopidy-qobuz

Or, if available, install the Debian/Ubuntu package from apt.mopidy.com.

Configuration

Before starting Mopidy, you must add your Qobuz username and password to the Mopidy configuration file:

[qobuz]
username = alice
password = secret

Project resources

Disclaimer

This application uses the Qobuz API but is not certified by Qobuz. Any use of the API implies your full acceptance of the Qobuz General Terms and Conditions (http://static.qobuz.com/apps/api/QobuzAPI-TermsofUse.pdf)

mopidy-qobuz's People

Contributors

taschenb avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mopidy-qobuz's Issues

"Invalid or missing app_id parameter"

I'm totally new to mopidy, but seem to have installed and configured it on my Antergos/Arch Linux machine. When I try to run it in terminal, I get:

File "/usr/lib/python3.8/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://www.qobuz.com/api.json/0.2/user/login?app_id=285473059&device_manufacturer_id=921262b2-3cdb-4513-8353-c276f6e29716&password=86bf7be7a81ba8a7d89f0ca2be957fb1&username=loren%40pacific.net
ERROR 2020-02-09 12:57:41,068 [23166:MainThread] mopidy.commands
Actor died: QobuzBackend (urn:uuid:1811a573-3359-4ea4-b222-eef3e99a3c95) stopped before handling the message

Sending that request directly to Qobuz in a browser gets:

{"status":"error","code":400,"message":"Invalid or missing app_id parameter"}

It seems to have sent exactly what is defined at
https://github.com/taschenb/mopidy-qobuz/blob/master/mopidy_qobuz/backend.py

`def on_start(self):
self._actor_proxy = self.actor_ref.proxy()

    # Kodi
    app_id = "285473059"

`How can I fix this? It would be so great to have Qobuz on the same system as all my other media!

bitrate/format_id

Hi,

after some check the ausio quality is MP3 320

i have a poor knowledge in python... but i have found a way to make it work in FLAC

in playback.py i have added again format_id=27 there :

def translate_uri(self, uri):
    """Get file-URL for a track-uri in mopidy.

    Parameters
    ----------
    uri: str
        Mopidy URI of a track
    """
    parts = uri.split(":")
    track_id = int(parts[4])

    newurl = self.backend._session.get_file_url(track_id, **format_id=27,** intent="stream"

its working but also ugly...

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.