gui/moviebrowser: add gui options for yt/nk cache directories

Conflicts:
	src/gui/moviebrowser.cpp
	src/system/nkparser.cpp
	src/system/nkparser.h
This commit is contained in:
martii
2013-11-17 10:48:04 +01:00
committed by [CST] Focus
parent 891170490e
commit fd1ba8df97
8 changed files with 22 additions and 6 deletions

View File

@@ -1518,6 +1518,7 @@ typedef enum
LOCALE_MOVIEBROWSER_BROWSER_ROW_ITEM,
LOCALE_MOVIEBROWSER_BROWSER_ROW_NR,
LOCALE_MOVIEBROWSER_BROWSER_ROW_WIDTH,
LOCALE_MOVIEBROWSER_CACHE_DIR,
LOCALE_MOVIEBROWSER_DELETE_INFO,
LOCALE_MOVIEBROWSER_DIR,
LOCALE_MOVIEBROWSER_DIR_HEAD,

View File

@@ -1518,6 +1518,7 @@ const char * locale_real_names[] =
"moviebrowser.browser_row_item",
"moviebrowser.browser_row_nr",
"moviebrowser.browser_row_width",
"moviebrowser.cache_dir",
"moviebrowser.delete_info",
"moviebrowser.dir",
"moviebrowser.dir_head",

View File

@@ -698,6 +698,11 @@ void cYTFeedParser::Cleanup(bool delete_thumbnails)
feedmode = -1;
}
void cYTFeedParser::SetThumbnailDir(std::string &_thumbnail_dir)
{
thumbnail_dir = _thumbnail_dir;
}
void cYTFeedParser::Dump()
{
printf("feed: %d videos\n", (int)videos.size());

View File

@@ -151,6 +151,7 @@ class cYTFeedParser
void SetRegion(std::string reg) { region = reg; }
void SetMaxResults(int count) { max_results = count; }
void SetConcurrentDownloads(int count) { concurrent_downloads = count; }
void SetThumbnailDir(std::string &_thumbnail_dir);
};
#endif