aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-02-15 02:46:24 +0100
committerdec05eba <dec05eba@protonmail.com>2021-02-15 02:46:24 +0100
commitd41a1b592bdcea09f708b2b0e6fa0972d19dfd40 (patch)
tree3ff1c358b1deced7fbbd2c00d1aa3831e342f2c6
parentaab8d467dbbe664e3f826dbcf08475839759aef9 (diff)
Add spotify launcher
-rw-r--r--README.md2
-rw-r--r--icons/spotify_launcher.pngbin0 -> 7423 bytes
-rw-r--r--launcher/QuickMedia-spotify.desktop9
-rw-r--r--src/QuickMedia.cpp1
4 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index e4f25d5..f36f2b8 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# QuickMedia
A dmenu-inspired native client for web services.
-Currently supported web services: `youtube`, `spotify (podcasts only)`, `nyaa.si`, `manganelo`, `mangatown`, `mangadex`, `4chan`, `matrix` and _others_.\
+Currently supported web services: `youtube`, `spotify (podcasts)`, `nyaa.si`, `manganelo`, `mangatown`, `mangadex`, `4chan`, `matrix` and _others_.\
**Note:** Manganelo doesn't work when used with TOR.\
**Note:** Posting comments on 4chan doesn't work when used with TOR. However browsing works.\
**Note:** TOR system service needs to be running (`systemctl start tor.service`) when using `--tor` option.\
diff --git a/icons/spotify_launcher.png b/icons/spotify_launcher.png
new file mode 100644
index 0000000..b3abe61
--- /dev/null
+++ b/icons/spotify_launcher.png
Binary files differ
diff --git a/launcher/QuickMedia-spotify.desktop b/launcher/QuickMedia-spotify.desktop
new file mode 100644
index 0000000..5751f03
--- /dev/null
+++ b/launcher/QuickMedia-spotify.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=QuickMedia Spotify
+GenericName=Spotify podcast player
+Comment=Spotify podcast player
+Icon=/usr/share/quickmedia/icons/spotify_launcher.png
+Exec=QuickMedia spotify --no-video
+Terminal=false
+Keywords=spotify;player;quickmedia;podcast;
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 99bbfb9..f6d036e 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -462,6 +462,7 @@ namespace QuickMedia {
} else if(strcmp(argv[i], "spotify") == 0) {
plugin_name = argv[i];
plugin_logo_path = resources_root + "images/spotify_logo.png";
+ no_video = true;
} else if(strcmp(argv[i], "pornhub") == 0) {
plugin_name = argv[i];
plugin_logo_path = resources_root + "images/pornhub_logo.png";