diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-30 19:07:05 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-30 19:08:05 +0200 |
commit | e1a8d10b61c5f8ca092ba3aa458b661da29ba447 (patch) | |
tree | 4de5ca75c3d19e4bd4c5c25a4362768b3e994326 /src/plugins/Pornhub.cpp | |
parent | 86d228bfc3e9c81c011c31bc81a908a21f975bfb (diff) |
Matrix: add message replying with ctrl+r, also use shared_ptr for BodyItem
Diffstat (limited to 'src/plugins/Pornhub.cpp')
-rw-r--r-- | src/plugins/Pornhub.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Pornhub.cpp b/src/plugins/Pornhub.cpp index 9a7242a..b093c64 100644 --- a/src/plugins/Pornhub.cpp +++ b/src/plugins/Pornhub.cpp @@ -38,7 +38,7 @@ namespace QuickMedia { const char *href = quickmedia_html_node_get_attribute_value(node, "href"); const char *title = quickmedia_html_node_get_attribute_value(node, "title"); if(href && title && begins_with(href, "/view_video.php?viewkey")) { - auto item = std::make_unique<BodyItem>(strip(title)); + auto item = BodyItem::create(strip(title)); item->url = std::string("https://www.pornhub.com") + href; result_items->push_back(std::move(item)); } @@ -93,7 +93,7 @@ namespace QuickMedia { const char *href = quickmedia_html_node_get_attribute_value(node, "href"); const char *title = quickmedia_html_node_get_attribute_value(node, "title"); if(href && title && begins_with(href, "/view_video.php?viewkey")) { - auto item = std::make_unique<BodyItem>(strip(title)); + auto item = BodyItem::create(strip(title)); item->url = std::string("https://www.pornhub.com") + href; result_items->push_back(std::move(item)); } |