LMS-Community / plugin-Qobuz

Squeebox plugin to stream from qobuz.com
31 stars 16 forks source link

Files being skipped randomly #25

Closed m7hofer closed 1 year ago

m7hofer commented 1 year ago

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=
michaelherger commented 1 year ago

(I edited your posting to remove some sensitive information - in the future please edit out keys, hashes etc., and use the code block markup using ```)

I have been able to play the first of those files you posted.

What Perl version are you using? What IO::Socket:SSL? (see Settings/Information)

m7hofer commented 1 year ago

Hi Michael, thanks a lot for editing.

The thing is I can play this file too when I choose it directly but it was skipped in the playlist and maybe another files is skipped the next time. It's unpredictable.

Perl Version: 5.28.1 - arm-linux-gnueabihf-thread-multi-64int IO::Socket::SSL: 2.060

michaelherger commented 1 year ago

Is this a new installation? Or did Qobuz work before?

m7hofer commented 1 year ago

It was running on a different server (Daphile) for years but I installed a new LMS (but already 8.3.1) on a raspi a few weeks ago and transferred my players. I haven't seen a problem in the beginning but probably after the last upgrade of LMS.

michaelherger commented 1 year ago

I'd rather think this is a temporary issue on Qobuz' (or Akamai's) side. Has this been going on for a while now?

m7hofer commented 1 year ago

I also thought it might be something temporary, but it has been for more than a week now.

michaelherger commented 1 year ago

Did you ping Qobuz about the issue? Maybe it's just one out of many systems which fails, causing the random failure?

m7hofer commented 1 year ago

No, not yet. I wanted to exclude a LMS issue but I can try to open a case with Qobuz.

m7hofer commented 1 year ago

Hi Michael! I had open a case with Qobuz but they aren't aware of any issues. However if there is something they are willing to help. Anyway, I played around bit and I'm pretty sure that it is something on raspi which is causing this issue. So I'm happy to close this issue for now