Skip to content

Commit

Permalink
autoTimerReason3
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Ehrnsperger committed Oct 27, 2023
1 parent 60002a9 commit 1ab78db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pages/edit_recording.ecpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
Expand Down
4 changes: 2 additions & 2 deletions services.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion timers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
Expand Down

0 comments on commit 1ab78db

Please sign in to comment.