summaryrefslogtreecommitdiff
path: root/src/urlreader.cpp
blob: d490c3ef505b8627009ba4c265ee55d96a2c49e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "urlreader.h"

namespace newsboat {

std::vector<std::string>& UrlReader::get_urls()
{
	return urls;
}

std::vector<std::string>& UrlReader::get_tags(const std::string& url)
{
	return tags[url];
}

std::vector<std::string> UrlReader::get_alltags()
{
	std::vector<std::string> tmptags;
	for (const auto& t : alltags) {
		if (t.substr(0, 1) != "~")
			tmptags.push_back(t);
	}
	return tmptags;
}

} // namespace newsboat