mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-02 14:02:32 +01:00
Delete old cookies when using --login
This commit is contained in:
parent
011cd2c116
commit
6e5a0870e8
@ -30,6 +30,9 @@ namespace bptime = boost::posix_time;
|
|||||||
Downloader::Downloader(Config &conf)
|
Downloader::Downloader(Config &conf)
|
||||||
{
|
{
|
||||||
this->config = conf;
|
this->config = conf;
|
||||||
|
if (config.bLogin && boost::filesystem::exists(config.sCookiePath))
|
||||||
|
if (!boost::filesystem::remove(config.sCookiePath))
|
||||||
|
std::cout << "Failed to delete " << config.sCookiePath << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
Downloader::~Downloader()
|
Downloader::~Downloader()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user