50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
#ifndef TV_RENAME_HPP
|
|
#define TV_RENAME_HPP
|
|
|
|
#include <set>
|
|
|
|
#ifdef GUI
|
|
#include <vector>
|
|
#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
|
|
|
|
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,
|
|
std::set< string > const *files = nullptr,
|
|
bool print = true );
|
|
|
|
#ifdef GUI
|
|
|
|
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 );
|
|
|
|
#else
|
|
|
|
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 );
|
|
|
|
#endif
|
|
|
|
#endif // TV_RENAME_HPP
|