aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-28 18:04:10 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-28 18:04:10 +0200
commit89c204bc473ba761d52be25f279d01af9237ef30 (patch)
treec7b49a19091649b8843c5deed021731c4cbb1018 /plugins
parent3ccd8021b7fdc6028a9eb6db1f265572759dca26 (diff)
Fix download, remove spotify (which now requires an account)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Spotify.hpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/plugins/Spotify.hpp b/plugins/Spotify.hpp
deleted file mode 100644
index 66cc992..0000000
--- a/plugins/Spotify.hpp
+++ /dev/null
@@ -1,49 +0,0 @@
-#pragma once
-
-#include "Page.hpp"
-
-namespace QuickMedia {
- class SpotifyPage : public Page {
- public:
- SpotifyPage(Program *program);
- virtual ~SpotifyPage() = default;
- protected:
- DownloadResult download_json_error_retry(Json::Value &json_root, const std::string &url, std::vector<CommandArg> additional_args);
- private:
- PluginResult update_token();
- private:
- std::string access_token;
- };
-
- class SpotifyPodcastSearchPage : public SpotifyPage {
- public:
- SpotifyPodcastSearchPage(Program *program) : SpotifyPage(program) {}
- const char* get_title() const override { return "Podcasts"; }
- bool search_is_filter() override { return false; }
- SearchResult search(const std::string &str, BodyItems &result_items) override;
- PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override;
- PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override;
- };
-
- class SpotifyEpisodeListPage : public SpotifyPage {
- public:
- SpotifyEpisodeListPage(Program *program, const std::string &url) : SpotifyPage(program), url(url) {}
- const char* get_title() const override { return "Episodes"; }
- bool search_is_filter() override { return true; }
- PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override;
- PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override;
- private:
- std::string url;
- };
-
- class SpotifyAudioPage : public VideoPage {
- public:
- SpotifyAudioPage(Program *program, const std::string &url) : VideoPage(program), url(url) {}
- const char* get_title() const override { return ""; }
- std::unique_ptr<RelatedVideosPage> create_related_videos_page(Program *, const std::string &, const std::string &) override { return nullptr; }
- std::unique_ptr<Page> create_channels_page(Program *, const std::string &) override { return nullptr; }
- std::string get_url() override { return url; }
- private:
- std::string url;
- };
-} \ No newline at end of file