kawaiiDango / pano-scrobbler

Scrobbles to last.fm, ListenBrainz, libre.fm, GNU FM, Maloja, Pleroma or to a file, on Android
https://kawaiidango.github.io/pano-scrobbler/
GNU General Public License v3.0
1.12k stars 30 forks source link

Is it possible to customize parsing logic by app (Mconnect)? #485

Open thr-4 opened 2 months ago

thr-4 commented 2 months ago

I am using the Mconnect app to cast music to an UPNP renderer and the way how the app formats the notification is slightly different to other apps.

In the first row of the notification, the app shows "Track name • Artist". In the second row of the notification is shows "Listening on DeviceName". Pano scrobbler assumes the first row is the track name, the second being the artist name, which results in an incorrect scrobble.

Is there a way to configure parsing logic on a per app basis?

Edit: To make this a bit more complicated, the notification format is slighly different when the player outputs to local device (first line: Track name, second line: Artist) vs when it outputs to an UPNP renderer (see above). Ideal behaviour would be detecting if "Listening on" is part of the second line.

kawaiiDango commented 2 months ago

The extract mode in pattern edits can do that.

thr-4 commented 2 months ago

The extract mode in pattern edits can do that.

Thanks, will it make it possible to split the first line of the notification (format: "Track name • Artist") into 2 fields?

kawaiiDango commented 2 months ago

Yes