diff --git a/python/podcast/podpost.py b/python/podcast/podpost.py
index ea2be31b5bc5df3142ac7241e9339d8981b3ab73..c4dd93e0e0515d882247b7d5c82b95dd0ad7bed4 100644
--- a/python/podcast/podpost.py
+++ b/python/podcast/podpost.py
@@ -255,7 +255,7 @@ class Podpost:
iconpath = Factory().iconpath
rdot = self.logo_url.rfind(".")
ext = self.logo_url[rdot+1:]
- if ext == "jpg" or ext == "jpeg" or ext == "png" or ext == "gif":
+ if ext == "jpg" or ext == "png" or ext == "gif":
name = hashlib.sha256(self.logo_url.encode()).hexdigest() + "." + ext
logo_path = os.path.join(iconpath, name)
diff --git a/qml/harbour-podqast.qml b/qml/harbour-podqast.qml
index 74dc2e400196bddda2c35cfa8d96e57b1f82b10a..945378d70aa1ce6441e57dbc999a5d439d339e24 100644
--- a/qml/harbour-podqast.qml
+++ b/qml/harbour-podqast.qml
@@ -5,7 +5,6 @@ import Nemo.Configuration 1.0
import Nemo.Notifications 1.0
import Nemo.DBus 2.0
import io.thp.pyotherside 1.4
-import org.nemomobile.mpris 1.0
import "pages"
import "components"
@@ -245,7 +244,7 @@ ApplicationWindow
previewSummary: qsTr("PodQast message")
previewBody: qsTr("PodQast message")
body: qsTr("New PodQast message")
-// remoteActions: [ {f
+// remoteActions: [ {
// name: "default",
// service: "harbour.podqast.service",
// path: "/harbour/podqast/service",
@@ -345,63 +344,6 @@ ApplicationWindow
MediaPlayer {
id: mediaplayer
}
-
- Timer {
- id: mpristimer
- interval: 400
- repeat: false
- onTriggered: {
- interval=10
- updateMprisMetadata()
-
- }
- }
-
- function updateMprisMetadata() {
- mprisPlayer.artist = "bla"
- mprisPlayer.song = "blubb"
- }
-
- MprisPlayer {
- id: mprisPlayer
- property string title: firsttitle
-
- serviceName: "podqast"
-
- identity: "podQast"
- supportedUriSchemes: ["file", "http"]
- supportedMimeTypes: ["audio/x-vorbis-ogg", "audio/mpeg", "audio/mp4a-latm", "audio/x-aiff", "audio/ogg",
- "audio/opus"]
-
- canControl: true
- canGoNext: true
- canGoPrevious: true
- canPause: true
- canPlay: true
- canSeek: true
- playbackStatus: {
- if (playing) {
- return Mpris.Playing
- } else {
- return Mpris.Paused
- }
- }
- onTitleChanged: {
- var metadata = mprisPlayer.metadata
- metadata[Mpris.metadataToString(Mpris.Title)] = firsttitle
- mprisPlayer.metadata = metadata
- }
-
- loopStatus: Mpris.None
- shuffle: false
- onPauseRequested: playerHandler.pause()
- onPlayPauseRequested: playerHandler.pause()
- onStopRequested: playerHandler.stop()
- onPlayRequested: playerHandler.play()
- onNextRequested: podqast.fast_forward()
- onPreviousRequested: podqast.fast_backward()
-
- }
}
function to_pos_str(secs) {
diff --git a/rpm/harbour-podqast.spec b/rpm/harbour-podqast.spec
index 14175f116eadb7d95ea245a51b59a6480834c842..274e4e0464cdebc9a162890158b985e983720513 100644
--- a/rpm/harbour-podqast.spec
+++ b/rpm/harbour-podqast.spec
@@ -15,7 +15,7 @@ Name: harbour-podqast
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: Podqast player
Version: 1.0
-Release: 2
+Release: 1
Group: Qt/Qt
License: GPLv3
BuildArch: noarch
@@ -25,7 +25,6 @@ Source100: harbour-podqast.yaml
Requires: sailfishsilica-qt5 >= 0.10.9
Requires: libsailfishapp-launcher
Requires: pyotherside-qml-plugin-python3-qt5 >= 1.3.0
-Requires: mpris-qt5
BuildRequires: pkgconfig(sailfishapp) >= 1.0.3
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Qml)
diff --git a/rpm/harbour-podqast.yaml b/rpm/harbour-podqast.yaml
index 7dbf5f6c513d7ce0a9d650a72bf72fd679e2c05f..c2f2cf872c5f6ef7dec2a9b419f777aec79fb54f 100644
--- a/rpm/harbour-podqast.yaml
+++ b/rpm/harbour-podqast.yaml
@@ -1,7 +1,7 @@
Name: harbour-podqast
Summary: Podqast player
Version: 1.0
-Release: 2
+Release: 1
# The contents of the Group field should be one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
Group: Qt/Qt
@@ -36,7 +36,7 @@ Requires:
- sailfishsilica-qt5 >= 0.10.9
- libsailfishapp-launcher
- pyotherside-qml-plugin-python3-qt5 >= 1.3.0
- - mpris-qt5
+
# All installed files
Files:
- '%defattr(0644,root,root,-)'
diff --git a/translations/harbour-podqast-de.ts b/translations/harbour-podqast-de.ts
index ce8ba573a097b6a144b8305c431d0e144b26755b..4d1c7a2155416b51fe29c797a80fa52be3f49f35 100644
--- a/translations/harbour-podqast-de.ts
+++ b/translations/harbour-podqast-de.ts
@@ -539,41 +539,41 @@
harbour-podqast
-
+
New posts available
-
+ Neue Beiträge verfügbar
-
+
Click to view updates
-
+ Klicken um Aktualisierungen anzusehen
-
+
New Posts are available. Click to view.
-
+ Neue Beiträge verfügbar. Klicke zum Betrachten
+
-
PodQast message
-
+ PodQast-Nachricht
-
+
New PodQast message
-
+ Neue PodQast-Nachricht
-
+
Podcasts imported
- Podcasts importiert
+ Podcasts importiert
+
-
Podcasts imported from OPML
- Podcasts vom OPML importiert
+ Podcasts vom OPML importiert
diff --git a/translations/harbour-podqast.ts b/translations/harbour-podqast.ts
index 426dd82eff55c9cd09673292cfebe4cb02bdc9a0..43f01c07c5183435a7e09067aedaafc978901ca8 100644
--- a/translations/harbour-podqast.ts
+++ b/translations/harbour-podqast.ts
@@ -539,39 +539,39 @@
harbour-podqast
-
+
New posts available
-
+
Click to view updates
-
+
New Posts are available. Click to view.
+
-
PodQast message
-
+
New PodQast message
-
+
Podcasts imported
+
-
Podcasts imported from OPML