droplet
1.3.0
A multipurpose Discord bot with the hacker in mind
Toggle main menu visibility
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
18
struct
YoutubeFeedEntry
{
19
std::string
video_id
;
20
std::string
title
;
21
std::string
published
;
22
};
23
24
struct
YoutubeFeedPlan
{
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);
plan_youtube_uploads
YoutubeFeedPlan plan_youtube_uploads(const std::vector< YoutubeFeedEntry > &entries, const std::unordered_set< std::string > &announced_ids)
Definition
YoutubeFeed.cpp:107
parse_youtube_feed
std::vector< YoutubeFeedEntry > parse_youtube_feed(const std::string &atom_body)
Definition
YoutubeFeed.cpp:70
YoutubeFeedEntry
Definition
YoutubeFeed.hpp:18
YoutubeFeedEntry::title
std::string title
Definition
YoutubeFeed.hpp:20
YoutubeFeedEntry::video_id
std::string video_id
Definition
YoutubeFeed.hpp:19
YoutubeFeedEntry::published
std::string published
Definition
YoutubeFeed.hpp:21
YoutubeFeedPlan
Definition
YoutubeFeed.hpp:24
YoutubeFeedPlan::to_seed
std::vector< YoutubeFeedEntry > to_seed
Definition
YoutubeFeed.hpp:25
YoutubeFeedPlan::to_announce
std::vector< YoutubeFeedEntry > to_announce
Definition
YoutubeFeed.hpp:26
src
bot_library
commands
notification
YoutubeFeed.hpp
Generated by
1.18.0