aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Youtube.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Youtube.hpp b/plugins/Youtube.hpp
index dcccc88..36094f0 100644
--- a/plugins/Youtube.hpp
+++ b/plugins/Youtube.hpp
@@ -24,6 +24,7 @@ namespace QuickMedia {
};
bool youtube_url_extract_id(const std::string &youtube_url, std::string &youtube_video_id);
+ void youtube_custom_redirect(std::string &video_url, std::string &audio_url);
class YoutubeSearchPage : public LazyFetchPage {
public:
@@ -146,6 +147,7 @@ namespace QuickMedia {
PluginResult load(std::string &title, std::string &channel_url, std::vector<MediaChapter> &chapters) override;
void mark_watched() override;
private:
+ PluginResult get_video_info(const std::string &video_id, Json::Value &json_root);
void parse_format(const Json::Value &format_json, bool is_adaptive);
void parse_formats(const Json::Value &streaming_data_json);
private: