Add Mopidy URI to data packet sent via webhook
This commit adds one new property, which is the URI that mopidy is using as the source to play the media file. The significance here is that if you use something like Podgrab to auto-download and push podcasts to a directory in Mopidy's media files, and if it has 'podcast' in the name we can use that instead of the hit-or-miss check on the MP3 genre of Podcast, which is a convention not many podcasts use.
This commit is contained in:
@ -39,6 +39,7 @@ class WebhooksFrontend(pykka.ThreadingActor, CoreListener):
|
|||||||
"musicbrainz_track_id": track.musicbrainz_id,
|
"musicbrainz_track_id": track.musicbrainz_id,
|
||||||
"musicbrainz_album_id": track.album.musicbrainz_id,
|
"musicbrainz_album_id": track.album.musicbrainz_id,
|
||||||
"musicbrainz_artist_id": musicbrainz_artist_id,
|
"musicbrainz_artist_id": musicbrainz_artist_id,
|
||||||
|
"mopidy_uri": track.uri,
|
||||||
}
|
}
|
||||||
|
|
||||||
def _post_update_to_webhooks(self, post_data: dict, status: str):
|
def _post_update_to_webhooks(self, post_data: dict, status: str):
|
||||||
|
|||||||
Reference in New Issue
Block a user