diff --git a/pages/edit_recording.ecpp b/pages/edit_recording.ecpp index 5b227b02..b985f64a 100644 --- a/pages/edit_recording.ecpp +++ b/pages/edit_recording.ecpp @@ -189,7 +189,7 @@ if (recording && recording->Info()->Description()) { if (recording && recording->Info()->Aux()) { std::string aux_data; cGetAutoTimerReason getAutoTimerReason; - getAutoTimerReason.aux = recording->Info()->Aux(); + getAutoTimerReason.recording_in = recording; getAutoTimerReason.requestRecording = false; if (getAutoTimerReason.call(LiveSetup().GetPluginScraper()) && getAutoTimerReason.createdByTvscraper) { AppendHtmlEscapedAndCorrectNonUTF8(aux_data, getAutoTimerReason.reason.c_str() ); diff --git a/services.h b/services.h index 16f5dd4a..c91237b8 100644 --- a/services.h +++ b/services.h @@ -231,8 +231,8 @@ class ScraperGetPosterThumb { class cGetAutoTimerReason { public: //in: - const char *aux = nullptr; // the aux field of a timer or a recording - // for a recording information about the timer creating this recoring is provided + const cTimer *timer = nullptr; // only timer OR recording must be provided + const cRecording *recording_in = nullptr; // information about the timer creating this recoring is provided bool requestRecording = false; // set this to true if you need the cRecording object //out bool createdByTvscraper; // if this is false, please ignore all other return values diff --git a/timers.cpp b/timers.cpp index c6ecfe20..f86e329c 100644 --- a/timers.cpp +++ b/timers.cpp @@ -134,7 +134,7 @@ namespace vdrlive { std::string SortedTimers::TvScraperTimerInfo(cTimer const& timer, std::string &recID, std::string &recName) { if (!timer.Aux()) return ""; cGetAutoTimerReason getAutoTimerReason; - getAutoTimerReason.aux = timer.Aux(); + getAutoTimerReason.timer = &timer; getAutoTimerReason.requestRecording = true; if (getAutoTimerReason.call(LiveSetup().GetPluginScraper()) ) { if (!getAutoTimerReason.createdByTvscraper) return "";