try fix YT cache wirite to root

Origin commit data
------------------
Commit: b3f69009af
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-03-05 (Sun, 05 Mar 2017)
This commit is contained in:
Jacek Jendrzej
2017-03-05 17:06:22 +01:00
parent ea3cfe55c8
commit 0aa2b6c675
2 changed files with 2 additions and 1 deletions

View File

@@ -546,6 +546,7 @@ void MI_MOVIE_INFO::clear(void)
marked = false; marked = false;
delAsk = true; delAsk = true;
source = UNKNOWN;
} }
bool CMovieInfo::loadFile(CFile &file, std::string &buffer) bool CMovieInfo::loadFile(CFile &file, std::string &buffer)

View File

@@ -70,7 +70,7 @@ std::string cYTCache::getName(MI_MOVIE_INFO *mi, std::string ext)
case MI_MOVIE_INFO::NK: case MI_MOVIE_INFO::NK:
return g_settings.downloadcache_dir + "/nk-" + mi->ytid + "." + ext; return g_settings.downloadcache_dir + "/nk-" + mi->ytid + "." + ext;
default: default:
return ""; return g_settings.downloadcache_dir + "/error-" + mi->ytid + "." + ext;;
} }
} }