diff --git a/HISTORY b/HISTORY index 1a82d34..2944963 100644 --- a/HISTORY +++ b/HISTORY @@ -474,3 +474,6 @@ Version 1.2.11 - [pbiering] SVDRP: do not reload in case plugin is not fully initialized (results in VDR crash) - [pbiering] SVDRP: respond with proper error message in case of OSD is active or parsing error - [kamel5] Fixed an error in displayreplay if no recording information are available + +Version 1.2.12 +- [pbiering] added token for recordings: isInUse diff --git a/coreengine/definitions.h b/coreengine/definitions.h index 534f154..401de07 100644 --- a/coreengine/definitions.h +++ b/coreengine/definitions.h @@ -1172,6 +1172,7 @@ enum class eLeMenuRecordingsIT { isHD, isUHD, isRadio, + isInUse, count }; @@ -1221,6 +1222,7 @@ enum class eCeMenuRecordingsIT { isHD, isUHD, isRadio, + isInUse, count }; @@ -1335,6 +1337,7 @@ enum class eDmDetailedHeaderRecIT { isHD, isUHD, isRadio, + isInUse, count }; @@ -1446,6 +1449,7 @@ enum class eDmDetailedRecIT { isHD, isUHD, isRadio, + isInUse, count }; diff --git a/coreengine/listelements.c b/coreengine/listelements.c index 6c500bf..6768b82 100644 --- a/coreengine/listelements.c +++ b/coreengine/listelements.c @@ -1754,6 +1754,7 @@ void cLeMenuRecordings::SetTokenContainer(void) { tokenContainer->DefineIntToken("{isHD}", (int)eLeMenuRecordingsIT::isHD); tokenContainer->DefineIntToken("{isUHD}", (int)eLeMenuRecordingsIT::isUHD); tokenContainer->DefineIntToken("{isRadio}", (int)eLeMenuRecordingsIT::isRadio); + tokenContainer->DefineIntToken("{isInUse}", (int)eLeMenuRecordingsIT::isInUse); tokenContainer->DefineStringToken("{recchannelname}", (int)eLeMenuRecordingsST::recchannelname); tokenContainer->DefineStringToken("{recchannelid}", (int)eLeMenuRecordingsST::recchannelid); InheritTokenContainer(); @@ -1905,6 +1906,7 @@ bool cLeMenuRecordings::Parse(bool forced) { tokenContainer->AddIntToken((int)eLeMenuRecordingsIT::isHD, RecordingIsHD(event)); // detect HD from 'info' tokenContainer->AddIntToken((int)eLeMenuRecordingsIT::isUHD, RecordingIsUHD(event)); // detect UHD from 'info' tokenContainer->AddIntToken((int)eLeMenuRecordingsIT::isRadio, RecordingIsRadio(event, info->FramesPerSecond())); // detect Radio from 'info' and FPS + tokenContainer->AddIntToken((int)eLeMenuRecordingsIT::isInUse, usedRecording->IsInUse()); SetScraperRecordingPoster(tokenContainer, usedRecording, true); return true; @@ -2028,6 +2030,7 @@ void cCeMenuRecordings::SetTokenContainer(void) { tokenContainer->DefineIntToken("{isHD}", (int)eCeMenuRecordingsIT::isHD); tokenContainer->DefineIntToken("{isUHD}", (int)eCeMenuRecordingsIT::isUHD); tokenContainer->DefineIntToken("{isRadio}", (int)eCeMenuRecordingsIT::isRadio); + tokenContainer->DefineIntToken("{isInUse}", (int)eCeMenuRecordingsIT::isInUse); tokenContainer->DefineStringToken("{recchannelname}", (int)eCeMenuRecordingsST::recchannelname); tokenContainer->DefineStringToken("{recchannelid}", (int)eCeMenuRecordingsST::recchannelid); InheritTokenContainer(); @@ -2186,6 +2189,7 @@ bool cCeMenuRecordings::Parse(bool forced) { tokenContainer->AddIntToken((int)eCeMenuRecordingsIT::isHD, RecordingIsHD(event)); // detect HD from 'info' tokenContainer->AddIntToken((int)eCeMenuRecordingsIT::isUHD, RecordingIsUHD(event)); // detect UHD from 'info' tokenContainer->AddIntToken((int)eCeMenuRecordingsIT::isRadio, RecordingIsRadio(event, info->FramesPerSecond())); // detect Radio from 'info' and FPS + tokenContainer->AddIntToken((int)eCeMenuRecordingsIT::isInUse, usedRecording->IsInUse()); SetScraperRecordingPoster(tokenContainer, usedRecording, false); diff --git a/coreengine/viewdetail.c b/coreengine/viewdetail.c index b63e9df..b5de264 100644 --- a/coreengine/viewdetail.c +++ b/coreengine/viewdetail.c @@ -607,6 +607,7 @@ void cViewDetailRec::SetTokenContainer(void) { tokenContainer->DefineIntToken("{isHD}", (int)eDmDetailedRecIT::isHD); tokenContainer->DefineIntToken("{isUHD}", (int)eDmDetailedRecIT::isUHD); tokenContainer->DefineIntToken("{isRadio}", (int)eDmDetailedRecIT::isRadio); + tokenContainer->DefineIntToken("{isInUse}", (int)eDmDetailedRecIT::isInUse); tokenContainer->DefineIntToken("{ismovie}", (int)eScraperIT::ismovie); tokenContainer->DefineIntToken("{moviebudget}", (int)eScraperIT::moviebudget); tokenContainer->DefineIntToken("{movierevenue}", (int)eScraperIT::movierevenue); @@ -699,6 +700,7 @@ bool cViewDetailRec::Parse(bool forced) { tokenContainer->AddIntToken((int)eDmDetailedRecIT::isHD, RecordingIsHD(event)); // detect HD from 'info' tokenContainer->AddIntToken((int)eDmDetailedRecIT::isUHD, RecordingIsUHD(event)); // detect UHD from 'info' tokenContainer->AddIntToken((int)eDmDetailedRecIT::isRadio, RecordingIsRadio(event, info->FramesPerSecond())); // detect Radio from 'info' and FPS + tokenContainer->AddIntToken((int)eDmDetailedRecIT::isInUse, recording->IsInUse()); } } SetRecInfos(); diff --git a/coreengine/viewelementsdisplaymenu.c b/coreengine/viewelementsdisplaymenu.c index 5887f26..79a2958 100644 --- a/coreengine/viewelementsdisplaymenu.c +++ b/coreengine/viewelementsdisplaymenu.c @@ -1170,6 +1170,7 @@ void cVeDmDetailheaderRec::SetTokenContainer(void) { tokenContainer->DefineIntToken("{isHD}", (int)eDmDetailedHeaderRecIT::isHD); tokenContainer->DefineIntToken("{isUHD}", (int)eDmDetailedHeaderRecIT::isUHD); tokenContainer->DefineIntToken("{isRadio}", (int)eDmDetailedHeaderRecIT::isRadio); + tokenContainer->DefineIntToken("{isInUse}", (int)eDmDetailedHeaderRecIT::isInUse); InheritTokenContainer(); } @@ -1218,6 +1219,7 @@ bool cVeDmDetailheaderRec::Parse(bool forced) { tokenContainer->AddIntToken((int)eDmDetailedHeaderRecIT::isHD, RecordingIsHD(event)); // detect HD from 'info' tokenContainer->AddIntToken((int)eDmDetailedHeaderRecIT::isUHD, RecordingIsUHD(event)); // detect UHD from 'info' tokenContainer->AddIntToken((int)eDmDetailedHeaderRecIT::isRadio, RecordingIsRadio(event, info->FramesPerSecond())); // detect Radio from 'info' and FPS + tokenContainer->AddIntToken((int)eDmDetailedHeaderRecIT::isInUse, recording->IsInUse()); } if (info->ChannelName() && (strlen(info->ChannelName()) > 0)) {