mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
cYTFeedParser: add signal OnLoadVideoInfo
Required for visualized progress display.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0aa261d911
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-13 (Mon, 13 Feb 2017)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -323,6 +323,7 @@ bool cYTFeedParser::parseFeedJSON(std::string &answer)
|
|||||||
Json::Value elements = root["items"];
|
Json::Value elements = root["items"];
|
||||||
for(unsigned int i=0; i<elements.size();++i)
|
for(unsigned int i=0; i<elements.size();++i)
|
||||||
{
|
{
|
||||||
|
OnLoadVideoInfo(i, elements.size(), g_Locale->getText(LOCALE_MOVIEBROWSER_SCAN_FOR_MOVIES));
|
||||||
#ifdef DEBUG_PARSER
|
#ifdef DEBUG_PARSER
|
||||||
printf("=========================================================\n");
|
printf("=========================================================\n");
|
||||||
printf("Element %d in elements\n", i);
|
printf("Element %d in elements\n", i);
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <xmltree/xmlinterface.h>
|
#include <xmltree/xmlinterface.h>
|
||||||
|
#include <sigc++/sigc++.h>
|
||||||
#include <OpenThreads/Thread>
|
#include <OpenThreads/Thread>
|
||||||
#include <OpenThreads/Condition>
|
#include <OpenThreads/Condition>
|
||||||
|
|
||||||
@@ -155,6 +155,8 @@ class cYTFeedParser
|
|||||||
void SetMaxResults(int count) { max_results = count; }
|
void SetMaxResults(int count) { max_results = count; }
|
||||||
void SetConcurrentDownloads(int count) { concurrent_downloads = count; }
|
void SetConcurrentDownloads(int count) { concurrent_downloads = count; }
|
||||||
void SetThumbnailDir(std::string &_thumbnail_dir);
|
void SetThumbnailDir(std::string &_thumbnail_dir);
|
||||||
|
|
||||||
|
sigc::signal<void, size_t, size_t, std::string> OnLoadVideoInfo;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user