MPD Cover

Begonnen von matthias1403, 05 August 2019, 11:54:23

Vorheriges Thema - Nächstes Thema

matthias1403

Hi,

ich nutze schon eine Weile das MPD Modul, welches bisher auch die Cover zuverlässig geliefert hat. Seit einigen Wochen (oder es sind schon Monate) liefert lastfm nur noch einen grauen Stern.

Ist diese Funktion von LastFm nicht mehr nutzbar oder muss man sich dort anmelden?


Danke & Gruß,
Matthias

Wzut

ist mir vor zwei Wochen auch aufgefallen als ich etwas am Modul getestet habe.
Könnte sein das man sich jetzt seinen eigenen API Key besorgen muß, ich hatte damals einen und den fest ins Modul geschrieben.
Hol dir doch mal einen eigenen und trage ihn mittels Attribut lastfm_api_key ein und berichte.
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

matthias1403

Hab meinen alten LastFm Account re-aktiviert und einen API-Key erzeugt und als Attribut eingetragen   ---> Keine Änderung.

Muss man da was beachten: Format? Appilication Name in LastFm?"Set Reset"-Kommando habe ich gemacht.

Meine Config:

define myMPD MPD 192.168.179.xy
attr myMPD DbLogExclude .*
attr myMPD cache lfm
attr myMPD devStateIcon play:rc_PLAY:stop stop:rc_STOP:play
attr myMPD group Medien
attr myMPD icon it_radio
attr myMPD image_size 1
attr myMPD lastfm_api_key beaf81f3f0702c6a205eecf6d5201234
attr myMPD loadPlaylists 0
attr myMPD no_playlistcollection 1
attr myMPD player mpd
attr myMPD room Media,Wohnzimmer
attr myMPD stateMusic 0
attr myMPD titleSplit 1
attr myMPD unknown_artist_image /fhem/icons/1px-spacer
attr myMPD verbose 5


Auszug aus dem Log:


file: https://dg-ndr-https-fra-dtag-cdn.sslcast.addradio.de/ndr/ndr2/mecklenburgvorpommern/mp3/128/stream.mp3
Title: Tom Gregory - Small Steps
Name: ndr_ndr2_mv_mp3
Pos: 1
Id: 2
2019.08.05 17:46:05 4: myMPD, new json data for Tom%20Gregory from Last.fm
2019.08.05 17:46:05 4: myMPD, no local artist image Tom%20Gregory_1.png found, try to get it from Last.fm
2019.08.05 17:46:05 4: myMPD, got new image Tom%20Gregory_1.png from Last.fm
2019.08.05 17:46:34 5: myMPD, idle PID 27837 found
2019.08.05 17:47:34 5: myMPD, idle PID 27837 found
2019.08.05 17:48:34 5: myMPD, idle PID 27837 found
2019.08.05 17:48:50 5: myMPD, MPD_EVENT : player|file: https://dg-ndr-https-fra-dtag-cdn.sslcast.addradio.de/ndr/ndr2/mecklenburgvorpommern/mp3/128/stream.mp3|Title: Luis Fonsi & Daddy Yankee - Despacito|Name: ndr_ndr2_mv_mp3|Pos: 0|Id: 1|file: https://dg-ndr-https-fra-dtag-cdn.sslcast.addradio.de/ndr/ndr2/mecklenburgvorpommern/mp3/128/stream.mp3|Title: La Bouche - Be My Lover|Name: ndr_ndr2_mv_mp3|Pos: 1|Id: 2
2019.08.05 17:48:50 4: myMPD, MPD_EVENT : player
2019.08.05 17:48:50 5: myMPD, mpd_cmd[1] -> command_list_begin
status
stats
currentsong
command_list_end
2019.08.05 17:48:50 5: myMPD, rec: volume: 25
2019.08.05 17:48:50 5: myMPD, rec: repeat: 0
2019.08.05 17:48:50 5: myMPD, rec: random: 0
2019.08.05 17:48:50 5: myMPD, rec: single: 0
2019.08.05 17:48:50 5: myMPD, rec: consume: 0
2019.08.05 17:48:50 5: myMPD, rec: playlist: 23
2019.08.05 17:48:50 5: myMPD, rec: playlistlength: 2
2019.08.05 17:48:50 5: myMPD, rec: mixrampdb: 0.000000
2019.08.05 17:48:50 5: myMPD, rec: state: play
2019.08.05 17:48:50 5: myMPD, rec: song: 1
2019.08.05 17:48:50 5: myMPD, rec: songid: 2
2019.08.05 17:48:50 5: myMPD, rec: time: 925:0
2019.08.05 17:48:50 5: myMPD, rec: elapsed: 925.010
2019.08.05 17:48:50 5: myMPD, rec: bitrate: 128
2019.08.05 17:48:50 5: myMPD, rec: audio: 44100:24:2
2019.08.05 17:48:50 5: myMPD, rec: uptime: 110829
2019.08.05 17:48:50 5: myMPD, rec: playtime: 2062
2019.08.05 17:48:50 5: myMPD, rec: artists: 0
2019.08.05 17:48:50 5: myMPD, rec: albums: 0
2019.08.05 17:48:50 5: myMPD, rec: songs: 0
2019.08.05 17:48:50 5: myMPD, rec: db_playtime: 0
2019.08.05 17:48:50 5: myMPD, rec: db_update: 1558371981
2019.08.05 17:48:50 5: myMPD, rec: file: https://dg-ndr-https-fra-dtag-cdn.sslcast.addradio.de/ndr/ndr2/mecklenburgvorpommern/mp3/128/stream.mp3
2019.08.05 17:48:50 5: myMPD, rec: Title: La Bouche - Be My Lover
2019.08.05 17:48:50 5: myMPD, rec: Name: ndr_ndr2_mv_mp3
2019.08.05 17:48:50 5: myMPD, rec: Pos: 1
2019.08.05 17:48:50 5: myMPD, rec: Id: 2
2019.08.05 17:48:50 1: PERL WARNING: ^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE :Leistung:.*$/ at ./FHEM/98_average.pm line 82, <GEN186819> line 29.
2019.08.05 17:48:50 4: myMPD, new artist La%20Bouche , try to get it from Last.fm
2019.08.05 17:48:50 5: myMPD, new Playlist in -> file: https://dg-ndr-https-fra-dtag-cdn.sslcast.addradio.de/ndr/ndr2/mecklenburgvorpommern/mp3/128/stream.mp3
Title: Luis Fonsi & Daddy Yankee - Despacito
Name: ndr_ndr2_mv_mp3
Pos: 0
Id: 1
file: https://dg-ndr-https-fra-dtag-cdn.sslcast.addradio.de/ndr/ndr2/mecklenburgvorpommern/mp3/128/stream.mp3
Title: La Bouche - Be My Lover
Name: ndr_ndr2_mv_mp3
Pos: 1
Id: 2
2019.08.05 17:48:50 4: myMPD, new CRC : 32111
2019.08.05 17:48:50 5: myMPD, new Playlist out -> [{"Artist":"Luis Fonsi & Daddy Yankee","Title":"Despacito","Album":"","Time":"","File":"https://dg-ndr-https-fra-dtag-cdn.sslcast.addradio.de/ndr/ndr2/mecklenburgvorpommern/mp3/128/stream.mp3","Track":"","Cover":"/fhem/www/lfm/Luis%20Fonsi%20%26%20Daddy%20Yankee_1.png"},{"Artist":"La Bouche","Title":"Be My Lover","Album":"","Time":"","File":"https://dg-ndr-https-fra-dtag-cdn.sslcast.addradio.de/ndr/ndr2/mecklenburgvorpommern/mp3/128/stream.mp3","Track":"","Cover":"/fhem/icons/1px-spacer"}]
2019.08.05 17:48:51 5: myMPD, MPD_EVENT : playlist|file: https://dg-ndr-https-fra-dtag-cdn.sslcast.addradio.de/ndr/ndr2/mecklenburgvorpommern/mp3/128/stream.mp3|Title: Luis Fonsi & Daddy Yankee - Despacito|Name: ndr_ndr2_mv_mp3|Pos: 0|Id: 1|file: https://dg-ndr-https-fra-dtag-cdn.sslcast.addradio.de/ndr/ndr2/mecklenburgvorpommern/mp3/128/stream.mp3|Title: La Bouche - Be My Lover|Name: ndr_ndr2_mv_mp3|Pos: 1|Id: 2
2019.08.05 17:48:51 4: myMPD, MPD_EVENT : playlist
2019.08.05 17:48:51 5: myMPD, new Playlist in -> file: https://dg-ndr-https-fra-dtag-cdn.sslcast.addradio.de/ndr/ndr2/mecklenburgvorpommern/mp3/128/stream.mp3
Title: Luis Fonsi & Daddy Yankee - Despacito
Name: ndr_ndr2_mv_mp3
Pos: 0
Id: 1
file: https://dg-ndr-https-fra-dtag-cdn.sslcast.addradio.de/ndr/ndr2/mecklenburgvorpommern/mp3/128/stream.mp3
Title: La Bouche - Be My Lover
Name: ndr_ndr2_mv_mp3
Pos: 1
Id: 2
2019.08.05 17:48:51 4: myMPD, new json data for La%20Bouche from Last.fm
2019.08.05 17:48:51 4: myMPD, no local artist image La%20Bouche_1.png found, try to get it from Last.fm
2019.08.05 17:48:51 4: myMPD, got new image La%20Bouche_1.png from Last.fm
2019.08.05 17:49:34 5: myMPD, idle PID 27837 found
2019.08.05 17:50:34 5: myMPD, idle PID 27837 found


Danke & Gruß,
Matthias

Wzut

Danke für die Rückmeldung, ich habe gerade nochmal im Modul nachgeschaut :
Hast du nach eintragen deines eigenen Api_Keys die config gespeichert und FHEM neu gestartet ?
Wenn nein, bitte hole das nach, denn ich befürchte das Attribut wird im laufenden Betrieb nicht übernommen (da muß ich dann auch nochmal ran)
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

matthias1403

Hab den Fhem jetzt neugestartet.....leider keine Besserung. Sehe nur Stern(e).

Im Log ist auch bei Verbose 5 keine Ausschrift zum Key.

Gruß,
Matthias

Wzut

vermutlich ist endgültig Schluß mit Bildern von lastFM -> https://www.reddit.com/r/kustom/comments/bmq6fr/artist_photos_lastfm_stopped_providing_artist/
Mit dem Api key bekommt man noch die JSON oder XML Datei mit den Text Informationen des Interpreten,
aber der Bilder Download via https://lastfm-img2.akamaized.net liefert nur noch den Stern.
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

matthias1403

Schade....Und nun?

Gibt es andere Möglichkeiten?
Ich hab schon mal das Medialist ausprobiert, was auf anhieb aber nicht lief und ich keine Lust habe das nur für die Cover einzurichten.

Kann mein Tablet anstelle des Sterns was anderes anzeigen....

Wzut

nunja, das MPD Modul legt ja beide Arten von Dateien in seinem cache dir ab. Bilder die dort bereits vorhanden sind werden natürlich weiterhin richtig gezeigt, das ist auch der Grund warum ich es so spät bemerkt habe da in meinem cache einige hundert Bilder liegen.
Man könnte auch das MPD Modul umschreiben damit die Bilder aus einer anderen Quelle geholt werden, Quellen finden sich im Netz genug.
Allerdings habe ich bisher kein Gefühl dafür viele User diese Funktion überhaupt nutzen, im MPD Thread war da bisher sehr sehr wenig Feedback.
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

matthias1403

Ich wäre jedenfalls begeistert. :-)

Danke trotzdem für die Aufklärung

dirk.k

Ich möchte die Bilder auch wiederhaben.

C0mmanda

Nutze MPD aktuell nicht mehr, aber an einer Funktion (sub) Cover zu laden wäre ich interessiert ;)
"Missbrauche" aktuell die sub aus dem MediaList Modul dafür um Kodi mit Covern zu versorgen....
Allerdings fand ich die MPD-Cover etwas besser, da bessere Qualität.

grtz

enno

Zitat von: Wzut am 06 August 2019, 12:30:20
Allerdings habe ich bisher kein Gefühl dafür viele User diese Funktion überhaupt nutzen, im MPD Thread war da bisher sehr sehr wenig Feedback.

Moin Wzut,

ich hatte mich damit abgefunden, dass es nicht geht, ist auch nicht absolut lebensnotwendig, aber schön wäre es schon:) wenn es tut.

Gruss
  Enno
Einfacher FHEM Anwender auf Intel®NUC

Beta-User

Moin,

melde auch mal moderates Interesse an Covern an...
Super fände ich, wenn man dafür die MUSICBRAINZ-Daten nutzen könnte, damit habe ich das allermeiste getagged... (also v.a. MUSICBRAINZ_ALBUMID).

[OT]
Ich nutze das Modul erst seit kurzem, ebenso wie DBLog. Seitdem kann ich übrigens einen moderaten Speicheranstieg beobachten.
Richtig krass war das, bis ich DbLogExclude .*gesetzt hatte und die load.*-Attribute auf 0 (da ist eine größere Sammlung dahinter, wir sprechen über ca. 1GB Speicheranstieg in einer Stunde...).
Der MPD sitzt auf einem anderen Rechner und ist auch nicht immer erreichbar, und ich bin mir auch nicht sicher, ob ich alles richtig konfiguriert habe (insbes., was die installierten Perl-Module angeht; das Modul hat aber nirgends gemeckert...).
[/OT]

Grüße und v.a. auch mal Danke für das Modul!

Beta-User
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Guenni1404

Ich würde auch mal interesse an den Covers anmelden.

Wzut

Wenn sich jemand findet der das einbauen / umsetzen möchte & kann -> gern !
a. nutze ich den MPD nur zum abpielen von Radiostreams in meinem Bastelkeller da ich dort fast keinen UKW Empfang habe
b. habe ich z.Z. genug andere Baustellen
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher