From 0aa2b6c6752a85c52f49cecd76dc5c15fea01a18 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 5 Mar 2017 17:06:22 +0100 Subject: [PATCH] try fix YT cache wirite to root Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/b3f69009af719c6a72c9db28d359095645eaefd8 Author: Jacek Jendrzej Date: 2017-03-05 (Sun, 05 Mar 2017) --- src/gui/movieinfo.cpp | 1 + src/system/ytcache.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/movieinfo.cpp b/src/gui/movieinfo.cpp index f06e68c9b..269d613f9 100644 --- a/src/gui/movieinfo.cpp +++ b/src/gui/movieinfo.cpp @@ -546,6 +546,7 @@ void MI_MOVIE_INFO::clear(void) marked = false; delAsk = true; + source = UNKNOWN; } bool CMovieInfo::loadFile(CFile &file, std::string &buffer) diff --git a/src/system/ytcache.cpp b/src/system/ytcache.cpp index 0f04358f4..66b52832d 100644 --- a/src/system/ytcache.cpp +++ b/src/system/ytcache.cpp @@ -70,7 +70,7 @@ std::string cYTCache::getName(MI_MOVIE_INFO *mi, std::string ext) case MI_MOVIE_INFO::NK: return g_settings.downloadcache_dir + "/nk-" + mi->ytid + "." + ext; default: - return ""; + return g_settings.downloadcache_dir + "/error-" + mi->ytid + "." + ext;; } }