소스 검색

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.
Colin Powell 2 년 전
부모
커밋
52655cecfd
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      mopidy_webhooks/frontend.py

+ 1 - 0
mopidy_webhooks/frontend.py

@@ -39,6 +39,7 @@ class WebhooksFrontend(pykka.ThreadingActor, CoreListener):
             "musicbrainz_track_id": track.musicbrainz_id,
             "musicbrainz_album_id": track.album.musicbrainz_id,
             "musicbrainz_artist_id": musicbrainz_artist_id,
+            "mopidy_uri": track.uri,
         }
 
     def _post_update_to_webhooks(self, post_data: dict, status: str):