michaelherger / lms-plugin-tidal

A TIDAL plugin to integrate with the Lyrion Music Server (fka. Logitech Media Server)
41 stars 7 forks source link

Plugin 0.8.0 - Media scan terminated unexpectedly (Scanning Progress) #42

Closed TeraX closed 4 months ago

TeraX commented 4 months ago

Hi All,

The media scan stops with the follow action:

image

scanner.log: (The last 3 digits of the token are removed in this post)

[24-03-01 18:04:00.6531] Slim::Music::Import::endImporter (712) Completed Slim::Music::PlaylistFolderScan Scan in 7.838 seconds.
[24-03-01 18:04:00.6534] Slim::Music::Import::runImporter (579) Starting Plugins::TIDAL::Importer scan
[24-03-01 18:04:01.1875] Plugins::TIDAL::API::Sync::_get (90) Failed to get token for 194633xxx
[24-03-01 18:04:03.3302] Plugins::TIDAL::API::Sync::_get (90) Failed to get token for 194633xxx
[24-03-01 18:04:03.3305] main::main (338) Error: Failed when running main scan: [Can't use an undefined value as an ARRAY reference at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/TIDAL/Importer.pm line 125.
]
[24-03-01 18:04:03.3306] main::main (339) Error: Skipping post-process & Not updating lastRescanTime!

Plugin Version 0.8.0 I had the issue first with LMS 8.3.2 and updated LMS to 8.4.1 but get the same issue.

Logitech Media Server Status
Logitech Media Server Version: 8.4.1 - 1708787582 @ Sun 25 Feb 2024 04:55:33 AM CET
Hostname: lms
Server IP Address: 172.16.25.139
Server HTTP Port Number: 9000
Operating system: Debian - EN - utf8
Platform Architecture: x86_64-linux
Database Version: SQLite
Total Players Recognized: 5
Perl and Module Versions
Perl Version: 5.36.0 - x86_64-linux-gnu-thread-multi
Audio::Scan: 1.06
DBD::SQLite: 1.58 (sqlite 3.22.0)
IO::Socket::SSL: 2.081
Mozilla::CA:
Net::SSLeay: 1.92 - OpenSSL 3.0.11 19 Sep 2023

Best Regards Daniel

TeraX commented 4 months ago

I have seen the follow code in the current Importer.mp Line 121 $progress->update(string('PLUGIN_QOBUZ_PROGRESS_READ_ARTISTS', $accountName));

I'm not sure if this is the root cause but should be changed to $progress->update(string('PLUGIN_TIDAL_PROGRESS_READ_ARTISTS', $accountName));

43