droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
YoutubeFeed.hpp
Go to the documentation of this file.
1/*
2 * (c) Copyright erarnitox.de - All rights reserved
3 * Author: Erarnitox <david@erarnitox.de>
4 *
5 * License: MIT License
6 *
7 * Description:
8 *
9 * Documentation: https://droplet.erarnitox.de/doxygen/html/
10 */
11
12#pragma once
13
14#include <string>
15#include <unordered_set>
16#include <vector>
17
19 std::string video_id;
20 std::string title;
21 std::string published;
22};
23
25 std::vector<YoutubeFeedEntry> to_seed;
26 std::vector<YoutubeFeedEntry> to_announce;
27};
28
29[[nodiscard]] std::vector<YoutubeFeedEntry> parse_youtube_feed(const std::string& atom_body);
30
31[[nodiscard]] YoutubeFeedPlan plan_youtube_uploads(const std::vector<YoutubeFeedEntry>& entries,
32 const std::unordered_set<std::string>& announced_ids);
YoutubeFeedPlan plan_youtube_uploads(const std::vector< YoutubeFeedEntry > &entries, const std::unordered_set< std::string > &announced_ids)
Definition YoutubeFeed.cpp:107
std::vector< YoutubeFeedEntry > parse_youtube_feed(const std::string &atom_body)
Definition YoutubeFeed.cpp:70
Definition YoutubeFeed.hpp:18
std::string title
Definition YoutubeFeed.hpp:20
std::string video_id
Definition YoutubeFeed.hpp:19
std::string published
Definition YoutubeFeed.hpp:21
Definition YoutubeFeed.hpp:24
std::vector< YoutubeFeedEntry > to_seed
Definition YoutubeFeed.hpp:25
std::vector< YoutubeFeedEntry > to_announce
Definition YoutubeFeed.hpp:26