aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/NyaaSi.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-03 05:48:46 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-03 05:48:46 +0200
commitca07c2be3bba3291f59d160eac13831c85d16550 (patch)
tree3b0749a086f517dae3ff6591b848c2b77413f813 /src/plugins/NyaaSi.cpp
parent38874aa9c8bfcf12bd1ceef013a2342da5a0eeea (diff)
Remove unused code
Diffstat (limited to 'src/plugins/NyaaSi.cpp')
-rw-r--r--src/plugins/NyaaSi.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/plugins/NyaaSi.cpp b/src/plugins/NyaaSi.cpp
index 186852b..8e13789 100644
--- a/src/plugins/NyaaSi.cpp
+++ b/src/plugins/NyaaSi.cpp
@@ -154,25 +154,9 @@ namespace QuickMedia {
size_t index;
};
- // Returns empty string on error
- // static std::string view_url_get_id(const std::string &url) {
- // size_t index = url.rfind('/');
- // if(index == std::string::npos)
- // return "";
- // return url.substr(index);
- // }
-
PluginResult NyaaSi::get_content_details(const std::string&, const std::string &url, BodyItems &result_items) {
size_t comments_start_index;
- // std::string id = view_url_get_id(url);
- // if(id.empty()) {
- // fprintf(stderr, "Error: nyaa.si: failed to extract id from url %s\n", url.c_str());
- // return PluginResult::ERR;
- // }
-
- // std::string torrent_url = "https://nyaa.si/download/" + id + ".torrent";
- // auto torrent_item = BodyItem::create("Download torrent");
- // torrent_item->url = "https://nyaa.si/download/" + id + ".torrent";
+
auto torrent_item = BodyItem::create("Download magnet");
std::string magnet_url;
std::string description;