Fix: Subsonic Scrobble: Split the internal id for Podcast Episode (#2203)
authorEric Munson <eric@munsonfam.org>
Sun, 25 May 2025 23:08:05 +0000 (19:08 -0400)
committerGitHub <noreply@github.com>
Sun, 25 May 2025 23:08:05 +0000 (01:08 +0200)
commit7c6f40cd947a7ffc6f21b1cd9d55d85bb6c1f699
treec637798f5dc558e66753f0d483cb3ea7ac103d0f
parentd24ccbf32263e3c4ebe4384cfc2bc8bd20159d5a
Fix: Subsonic Scrobble: Split the internal id for Podcast Episode (#2203)

The Subsonic API only recently added an optional endpoint for retrieving
the metadata for an individual podcast episode but most servers do not
yet implement it. The only way to get an individual episode is through
its channel. This means that we have to include both IDs in the MA
provider ID for an episode.

This causes a problem when scrobbling because we are presented with an
ID that is not actually valid for the subsonic server. In the case where
the string EP_CHAN_SEP exists in the provider id, split it and only call
scrobble on the episode portion.

Signed-off-by: Eric B Munson <eric@munsonfam.org>
music_assistant/providers/subsonic_scrobble/__init__.py