Git Product home page Git Product logo

plugin-qobuz's Introduction

plugin-qobuz's People

Contributors

blackfiction avatar darrell-k avatar erdoukki avatar expectingtofly avatar franck-berry avatar keskifo avatar marcelveldt avatar mherger avatar michaelherger avatar philvince96 avatar saminpgh avatar skimpax avatar sveninndh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plugin-qobuz's Issues

New account doesnt'run

If we set a new account in 3.2.0 , this don't run , it's impossible to make a new search or see new realeased or match playlist or favourites that we can see ( for example in the smartphon app )

For curiosity i actived a old daphile with v2.16.10 and everything is OK.

i attached pictures

thx for feedback
new daphile with 3 2 0
old daphile
old daphile 2

Introducing 'MyQobuz'

Hello,
I have written a small extension for the Qobuz plugin. If you think this extension fits in the concept of the Qobuz plugin, I would like to make a pull request. Please have a look at 

https://github.com/upickartz/SqueezeboxQobuz/blob/MyQobuz/README_MyQobuz.md

To show my intensions find here an outline of the first section:

The Qobuz plugin is a great tool searching for new music. What I was missing is access to a defined collection of albums, for hearing my music on Qobuz, not seeing each album of an artist. Therefore, a new section 'MyQobuz' is provided, which contains my selected albums. Additionally, to the selection by genre and/or (alphabetically sorted) artists, a possibility to define tags for ‘MyQobuz’ albums is provided. It is also possible to correct the definition of the genre of an album defined by Qobuz, because often the Qobuz definition doesn't fit for me.

Request for a new fonctionnality

Hello

When i scan my qobuz library, the amount of album imported are lower than my favorites number
Some albums are not imported because they have disappeared from the qobuz catalog
This happens all the time, albums disappears and reappears with new id

Can you export the list of albums witch have not been found during scan to a log file please ?
It would be useful in order to put them back in favorites (manually)

Thanks
Thomas

Files being skipped randomly

Hi,
since a few days I discoverd that files are skipped randomly in Qobuz Plugin (version 2.6.1), Serverversion: Version: 8.3.1 - 1672817815

e.g.

[23-01-13 12:33:54.6289] Plugins::Qobuz::API::_get (700) https://www.qobuz.com/api.json/0.2/track/getFileUrl?app_id=&format_id=6&request_sig=&request_ts=1673609634&track_id=175886123&user_auth_token=
[23-01-13 12:34:03.9142] Plugins::Qobuz::ProtocolHandler::__ANON__ (289) Getting flac header information for: https://streaming-qobuz-std.akamaized.net/file?uid=1651096&eid=175886123&fmt=6&profile=raw&app_id=942852567&cid=1399698&etsp=1673613243&hmac=
**[23-01-13 12:34:29.9951] Slim::Player::Protocols::HTTPS::new (49) Couldn't create socket binding to  with timeout: 15 - Invalid argument
[23-01-13 12:34:29.9960] Slim::Player::Song::open (497) Warning: stream failed to open [qobuz://175886123.flac].**
[23-01-13 12:34:30.0004] Plugins::Qobuz::API::_get (700) https://www.qobuz.com/api.json/0.2/track/getFileUrl?app_id=&format_id=6&request_sig=&request_ts=1673609669&track_id=175886124&user_auth_token=
[23-01-13 12:34:30.2731] Plugins::Qobuz::ProtocolHandler::__ANON__ (289) Getting flac header information for: https://streaming-qobuz-std.akamaized.net/file?uid=1651096&eid=175886124&fmt=6&profile=raw&app_id=942852567&cid=1399698&etsp=1673613270&hmac=
[23-01-13 12:34:42.6672] Plugins::Qobuz::Reporting::_post (147) https://www.qobuz.com/api.json/0.2/track/reportStreamingEnd?app_id=942852567: events=[{"duration":224,"purchase":false,"intent":"streaming","local":false,"credential_id":1399698,"online":true,"user_id":1651096,"sample":false,"device_id":31072873,"track_id":"175886122","date":1673609682,"format_id":5}]&user_auth_token=
[23-01-13 12:34:42.6713] Plugins::Qobuz::API::_get (700) https://www.qobuz.com/api.json/0.2/purchase/getUserPurchasesIds?app_id=&user_auth_token=
[23-01-13 12:34:42.6724] Plugins::Qobuz::Reporting::_post (147) https://www.qobuz.com/api.json/0.2/track/reportStreamingStart?app_id=942852567: events=[{"format_id":5,"date":1673609682,"device_id":31072873,"track_id":"175886124","online":true,"user_id":1651096,"sample":false,"credential_id":1399698,"local":false,"purchase":false,"duration":0,"intent":"streaming"}]&user_auth_token=

Can i use PicorePlayer without an LMS?

Hi, i just want PicorePlayer to use with Qobuz, i dont have an LMS. So, is possible to use it like that?
Thanks.

ps.:i dont find info related to how acomplish that, i just find things with LMS.

Playlist are not displayed correctly

Hello

I created some playlists in LMS with qobuz tracks (imported with "online music library integration),

But they are not displayed correctly.
The first tracks are ok but the next are marked "unknown"

Capture d’écran du 2024-03-20 21-46-14

Thanks
Thomas

Logging category added two times

plugin.qobuz is added two times to the Log

(once in Plugin.pm with level 'ERROR' and once in Settings.pm with level 'INFO')

When looking at web GUI 'Settings'->'Advanced' choosing 'Logging' in drop down menu there is one entry for plugin.qobuz with level 'INFO'. I think the addLoggCategory call in Settings.pm overwrites the first one.

My guess is that you would want something like:

my $log = logger('plugin.qobuz');

in Settings.pm

media scan details numbers

Hello

when i rescan my qobuz library, the media scan details shows a number of albums and playlists that is higher than reality (2 more).

does it comes from the "+2" in the file Importer.pm ?

$progress->total(scalar @$albums + 2);
$progress->total((scalar @$playlists) + 2);

Thanks
Thomas

Not an issue - more a request

Since mysqueezebox servers are being shut down in Feb 2024, there will be no Tidal plugin anymore since it handles the authentication via mysqueezebox.com.
I guess the community demand on such a plugin is enormous, at least from what I read.
Since you've done an excellent job on the Qobuz addin - would it be possible for you to write a Tidal addin as well? Maybe the Kodi / Plex plugin for Tidal, also written in Pyton, is a good start - if you are interested

Plugin requesting a larger thumbnail than original

I'm using the Qobuz plugin, and I noticed the image returning from image proxy is larger than the original one from Qobuz server.

Image proxy returning 1500px

/imageproxy/https%3A%2F%2Fstatic.qobuz.com%2Fimages%2Fcovers%2F52%2F13%2F0094636981352_600.jpg/image.jpg

Original picture is 600px

https://static.qobuz.com/images/covers/52/13/0094636981352_600.jpg

Expected result would be something like this

/imageproxy/https%3A%2F%2Fstatic.qobuz.com%2Fimages%2Fcovers%2F52%2F13%2F0094636981352_600.jpg/image_300x300_f.png

Support new Playlists

Hi,

There was a change to the Qobuz API and the nethod for getting Playlists changed from "getPublicPlaylists" to "getFeatured"
Can you implement this in the Plugin please?

Thanks!

New playlists are not imported

Hello

new playlists in qobuz are not imported in LMS
i had 142 playlists, then i had 2 new playlists, rescaned LMS and i am still at 142
even if i make "clear database and rescan", i am still at 142 playlists
and if i delete a playlist in qobuz and rescan, it stays in LMS

Thanks
Thomas

Not working anymore

Hi, the script SqueezeboxQobuz.user.js is not working anymore.

I've hached a little and discovered it's becouse we need https, but then I got this error:

Mixed Content: The page at 'https://www.qobuz.com/ie-en/album/intavolatura-di-cimbalo-yoann-moulin/3770008056107' was loaded over HTTPS, but requested an insecure resource 'http://192.168.1.101:9000/status.html?p0=qobuz&p1=playalbum&p2=3770008056107'. This request has been blocked; the content must be served over HTTPS.

Where that request is issued? How could we mange to ask via https?

Thanks, Marco

With V1.71 "Paramètres" is not showing up

Hello,

I tested the version 1.71 and the link to "Paramètres" is not showing up in the Plugins list, so there is no possibility to change the settings, etc.

François

Cannot play Qobuz files: BAD_REQUEST

Qobuz plugin 2.7.0: since this morning I cannot play any qobuz songs.

[22-12-23 13:06:55.4582] Plugins::Qobuz::API::_get (701) https://www.qobuz.com/api.json/0.2/playlist/getUserPlaylists?app_id=&limit=1&user_auth_token=&username=XXXXXXXXX%40yahoo.com
[22-12-23 13:06:55.6278] Plugins::Qobuz::API::_get (701) https://www.qobuz.com/api.json/0.2/favorite/getUserFavorites?app_id=&limit=1&type=albums&user_auth_token=
[22-12-23 13:06:55.8267] Plugins::Qobuz::API::_get (701) https://www.qobuz.com/api.json/0.2/favorite/getUserFavorites?app_id=&limit=1&type=artists&user_auth_token=
[22-12-23 13:07:06.3144] Plugins::Qobuz::API::_get (701) https://www.qobuz.com/api.json/0.2/track/getFileUrl?app_id=&format_id=27&replaygain=1&request_sig=3973126d0d23d0c38397690837b4e174&request_ts=1671800826&track_id=52369837&user_auth_token=
[22-12-23 13:07:06.4549] Plugins::Qobuz::API::ANON (737) Error: 400 Bad Request
[22-12-23 13:07:06.4585] Plugins::Qobuz::API::_get (701) https://www.qobuz.com/api.json/0.2/track/getFileUrl?app_id=&format_id=27&replaygain=1&request_sig=031eb00796b395a79515d08edf1085ba&request_ts=1671800826&track_id=52369838&user_auth_token=
[22-12-23 13:07:06.5851] Plugins::Qobuz::API::ANON (737) Error: 400 Bad Request
[22-12-23 13:07:06.5878] Plugins::Qobuz::API::_get (701) https://www.qobuz.com/api.json/0.2/track/getFileUrl?app_id=&format_id=27&replaygain=1&request_sig=2e3683aac2d28c2dc09021c6247e709f&request_ts=1671800826&track_id=52369839&user_auth_token=
[22-12-23 13:07:06.7252] Plugins::Qobuz::API::ANON (737) Error: 400 Bad Request

favorite artists number

Hello

When i scan my qobuz library, LMS print a wrong favorite artists number (the result is +1 than the real number)

I think that in Importer.pm, you need to change :

$progress->total($progress->total + scalar @$artists);
to
$progress->total(scalar @$artists);

Thanks
Thomas

Multi user support

The Tidal-plugin supports adding multiple Tidal accounts and selecting a Tidal-account per player.
Has this been considered for the Qobuz-plugin? In a house with a lot of SqueezeBoxes and five users it is a valuable advantage.

Useless code line 529 in plugin.pm

Useless code line 529 in plugin.pm

sub browseArtistMenu
my ($client, $cb, $params, $args) = @_;

my $items = []; # this line is not needed

Samplerate/samplesize always show the maximum available when playing tracks imported to the library

When using the library integration feature with Qobuz, FLAC tracks would always report the maximum available samplerate/-size, not the actual values. When playing from the Qobuz menus directly this doesn't happen. This is due to storing the data at scan time in the library.db. LMS would prefer that stored data over the data provided by the plugin at playtime.

See https://forums.slimdevices.com/forum/user-forums/3rd-party-software/94305-qobuz-com-streaming-plugin?p=1643707#post1643707.

Data is imported here:

https://github.com/pierrepoulpe/SqueezeboxQobuz/blob/788b16a9f640d22cce6f6976336242874fdad428/Importer.pm#L359-L361

But it would be correctly reported by the API at playtime here:

https://github.com/pierrepoulpe/SqueezeboxQobuz/blob/788b16a9f640d22cce6f6976336242874fdad428/API.pm#L572-L586

And consumed here:

https://github.com/pierrepoulpe/SqueezeboxQobuz/blob/788b16a9f640d22cce6f6976336242874fdad428/ProtocolHandler.pm#L377-L385

We might be able to update the stored record here using something like the following (not really tested):

diff --git a/ProtocolHandler.pm b/ProtocolHandler.pm
index b79123e..2322c85 100644
--- a/ProtocolHandler.pm
+++ b/ProtocolHandler.pm
@@ -383,6 +384,12 @@ sub getNextTrack {
                        $song->pluginData(samplesize => $streamData->{bit_depth});
                        $song->pluginData(samplerate => $streamData->{sampling_rate});
 
+                       if (my $track = Slim::Schema->rs('Track')->single({ url => $url })) {
+                               $track->samplerate($streamData->{sampling_rate}) * 1000;
+                               $track->samplesize($streamData->{bit_depth});
+                               $track->update();
+                       }
+
                        Plugins::Qobuz::API->getFileUrl(sub {
                                $song->streamUrl(shift);

To be followed up...

Enable skipping within tracks

Hi,
please enable skipping within tracks. This requires some changes within the Plugin, and perhaps also in LMS?

Thanks!

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.