diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-13 13:48:30 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-13 13:49:50 +0200 |
commit | dc72e253df77c9126c720e7ff5dad7f8c72bd117 (patch) | |
tree | 7f862456a8d20d2f615b0a900090c2a3baf4bd34 /src/Storage.cpp | |
parent | b96dce2d670e085067d7b62b43fceac7658c2d5a (diff) |
Temporary disable youtube recommendations, fix youtube related videos
Diffstat (limited to 'src/Storage.cpp')
-rw-r--r-- | src/Storage.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Storage.cpp b/src/Storage.cpp index 7d2b9ca..588b085 100644 --- a/src/Storage.cpp +++ b/src/Storage.cpp @@ -56,6 +56,16 @@ namespace QuickMedia { return get_home_dir().join(".cache").join("quickmedia"); } + int get_cookies_filepath(Path &path, const std::string &plugin_name) { + Path cookies_dir = get_storage_dir().join("cookies"); + int res = create_directory_recursive(cookies_dir); + if(res != 0) + return res; + path = cookies_dir; + path.join(plugin_name).append(".txt"); + return 0; + } + int create_directory_recursive(const Path &path) { size_t index = 0; while(true) { |