aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Youtube.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp
index d4211b3..2e3a238 100644
--- a/src/plugins/Youtube.cpp
+++ b/src/plugins/Youtube.cpp
@@ -2312,45 +2312,6 @@ namespace QuickMedia {
return PluginResult::OK;
}
- static void playlist_get_items(const Json::Value &json_root, std::unordered_set<std::string> &added_videos, BodyItems &result_items) {
- if(!json_root.isObject())
- return;
-
- const Json::Value *response_json = &json_root["response"];
- if(!response_json->isObject())
- response_json = &json_root;
-
- const Json::Value &contents_json = (*response_json)["contents"];
- if(!contents_json.isObject())
- return;
-
- const Json::Value &tcwnr_json = contents_json["twoColumnWatchNextResults"];
- if(!tcwnr_json.isObject())
- return;
-
- const Json::Value &playlist_json = tcwnr_json["playlist"];
- if(!playlist_json.isObject())
- return;
-
- const Json::Value &playlist_inner_json = playlist_json["playlist"];
- if(!playlist_inner_json.isObject())
- return;
-
- //const Json::Value &title_json = playlist_inner_json["title"];
- const Json::Value &playlist_contents_json = playlist_inner_json["contents"];
- if(!playlist_contents_json.isArray())
- return;
-
- for(const Json::Value &content_json : playlist_contents_json) {
- if(!content_json.isObject())
- continue;
-
- auto body_item = parse_common_video_item(content_json["playlistPanelVideoRenderer"], added_videos);
- if(body_item)
- result_items.push_back(std::move(body_item));
- }
- }
-
YoutubePlaylistPage::YoutubePlaylistPage(Program *program, const std::string &url, std::string title) :
LazyFetchPage(program), title(std::move(title))
{