taschenb / mopidy-qobuz

Mopidy extension for playing music from Qobuz
Apache License 2.0
3 stars 5 forks source link

bitrate/format_id #1

Open interdif opened 5 years ago

interdif commented 5 years ago

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...

interdif commented 5 years ago

by the way, thanks for th work on qobuz/mopidy, long time i was waiting for that :)