diff --git a/python/podcast/podpost.py b/python/podcast/podpost.py index 27fd59447797af887d96d2e880a9721035ad62f9..c7aae45881c95213cfa49d2513bf961b4b352ce0 100644 --- a/python/podcast/podpost.py +++ b/python/podcast/podpost.py @@ -252,7 +252,8 @@ class Podpost(BaseModel): "loaded": loaded, "haschapters": haschapters, "listened": self.listened or self.position > 0 and ( - self.duration - self.position < Constants().markListenedBeforeEndThreshold * 1000) + self.duration - self.position < Constants().markListenedBeforeEndThreshold * 1000), + "podcastTitle": self.podcast.title if not self.isaudio else "" } def get_image_descriptor(self): diff --git a/qml/components/PlayerHandler.qml b/qml/components/PlayerHandler.qml index 56df6224cb0a2f122e1067c1584824d664604f6b..2b7ab69f9a0b36fdcfec348f997066e83e2b5bfe 100644 --- a/qml/components/PlayerHandler.qml +++ b/qml/components/PlayerHandler.qml @@ -16,6 +16,7 @@ Python { property string playtext: "" property string firstid: "" property string firsttitle: "" + property string firstPodcastTitle: "" property var chapters property int aktchapter property double playpos: 0 @@ -90,6 +91,7 @@ Python { function setEpisode(data, chapterlist) { firstid = data.id firsttitle = data.title + firstPodcastTitle=data.podcastTitle chapters = chapterlist playicon = data.logo_url playtext = data.title diff --git a/qml/harbour-podqast.qml b/qml/harbour-podqast.qml index 1c612a0c1b85ba0e70a4c6d6f4ba844bdcaf014d..472a2b4cccfa3a5f8128be4b8deb051cd3bd9d9f 100644 --- a/qml/harbour-podqast.qml +++ b/qml/harbour-podqast.qml @@ -500,11 +500,9 @@ ApplicationWindow { playbackStatus: playerHandler.isPlaying ? Mpris.Playing : Mpris.Paused onTitleChanged: { - metaData.title = playerHandler.firsttitle - // metaData.albumArtist = playerHandler. - var metadata = mprisPlayer.metadata metadata[Mpris.metadataToString(Mpris.Title)] = playerHandler.firsttitle + metadata[Mpris.metadataToString(Mpris.AlbumArtist)] = playerHandler.firstPodcastTitle mprisPlayer.metadata = metadata }