Re: Scrobbling of url tracks.
"Fran Burstall (Gmail)" <[email protected]> Tue, 30 Dec 2025 16:15:29 +0000
| Newsgroups | gmane.emacs.emms.user |
|---|---|
| Message-ID | <CADxS8ijVg6uoecmmCK-mxV82cz2Jfm3rDu2jOackycASmFRB0Q@mail.gmail.com> |
--000000000000c78a0006472dab32 Content-Type: text/plain; charset="UTF-8" A customizable predicate seems to be the best approach. I shall look into this. Meanwhile, I wonder if there is any mileage in refactoring the scrobbler code so that the librefm and listenbrainz scrobblers use a common core: this is the second time in as many months where the same change is indicated for both scrobblers. I will think about that too. ---Fran On Tue, 30 Dec 2025 at 13:12, Sergey Trofimov <[email protected]> wrote: > Hi emms authors, > > Quite often I listen to music from Bandcamp, by the means of > emms-player-mpv. MPV utilizes yt-dlp to fetch the audio stream and its > metadata. It works quite well with proper display of the artist, album > and track names, as well as showing the track length. That's enough data > to scrobble the listen, however both EMMS scrobblers only do that for > 'file tracks. I wonder if scrobbling logic could be extended to the > tracks of 'url type? Or even better the predicate could be customizable. > > Most conservative option would be: > (and (member type '(file url)) title artist) > alternatively more lenient approach: > (and title artist) > > What do you think? > > --000000000000c78a0006472dab32 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he= lvetica,sans-serif">A customizable predicate seems to be the best approach.= =C2=A0 I shall look into this.</div><div class=3D"gmail_default" style=3D"f= ont-family:arial,helvetica,sans-serif"><br></div><div class=3D"gmail_defaul= t" style=3D"font-family:arial,helvetica,sans-serif">Meanwhile, I wonder if = there is any mileage in refactoring the scrobbler code so that the librefm= =C2=A0and listenbrainz scrobblers=C2=A0use a common core: this is the secon= d time in as many months where the same change is indicated for both scrobb= lers.=C2=A0 I will think about that too.</div><div class=3D"gmail_default" = style=3D"font-family:arial,helvetica,sans-serif"><br></div><div class=3D"gm= ail_default" style=3D"font-family:arial,helvetica,sans-serif">---Fran</div>= <div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-seri= f"><br></div><div class=3D"gmail_default" style=3D"font-family:arial,helvet= ica,sans-serif"><br></div></div><br><div class=3D"gmail_quote gmail_quote_c= ontainer"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, 30 Dec 2025 at 13:1= 2, Sergey Trofimov <<a href=3D"mailto:[email protected]">[email protected]= </a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:= 0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">= Hi emms authors,<br> <br> =C2=A0Quite often I listen to music from Bandcamp, by the means of<br> emms-player-mpv. MPV utilizes yt-dlp to fetch the audio stream and its<br> metadata. It works quite well with proper display of the artist, album<br> and track names, as well as showing the track length. That's enough dat= a<br> to scrobble the listen, however both EMMS scrobblers only do that for<br> 'file tracks. I wonder if scrobbling logic could be extended to the<br> tracks of 'url type? Or even better the predicate could be customizable= .<br> <br> Most conservative option would be:<br> =C2=A0 (and (member type '(file url)) title artist)<br> alternatively more lenient approach:<br> =C2=A0 (and title artist)<br> <br> What do you think?<br> <br> </blockquote></div> --000000000000c78a0006472dab32--