tv_rename/tv_rename.hpp

49 lines
1.3 KiB
C++
Raw Normal View History

2019-01-19 12:40:10 +00:00
#ifndef TV_RENAME_HPP
#define TV_RENAME_HPP
#include <set>
2019-01-23 19:46:03 +00:00
#ifdef GUI
#include <vector>
2019-02-04 16:39:48 +00:00
#endif
#include "network.hpp"
#ifdef _WIN32
using string = std::wstring;
using char_t = wchar_t;
#else
using string = std::string;
using char_t = char;
#endif
#ifdef GUI
2019-01-23 19:46:03 +00:00
2019-02-04 16:39:48 +00:00
std::vector< std::pair< string, std::pair< string, string > > >
getRenamedFiles( const string &show, int season, string url,
const string &language, const string &pattern,
const bool &linux, Curl &c, const std::set< string > &files );
2019-01-23 19:46:03 +00:00
#else
2019-02-04 16:39:48 +00:00
void singleSeason( const string &path, string &show, int season, string url,
const string &language, const string &pattern,
const bool &linux, const bool &trust, Curl &c,
2019-06-04 19:54:00 +00:00
std::set< string > const *files = nullptr,
bool print = true );
2019-02-04 16:39:48 +00:00
void multipleSeasons( const string &path, string &show,
const std::set< int > seasons, const string &language,
const string &pattern, const bool &linux,
const bool &trust, Curl &c );
void allSeasons( const string &path, string &show, const string &language,
const string &pattern, const bool &linux, const bool &trust,
Curl &c );
2019-01-19 12:40:10 +00:00
#endif
2019-01-23 19:46:03 +00:00
#endif // TV_RENAME_HPP