mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
added token for recordings: isInUse
This commit is contained in:
parent
452a4384c2
commit
ca354a29e6
3
HISTORY
3
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: 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
|
- [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
|
- [kamel5] Fixed an error in displayreplay if no recording information are available
|
||||||
|
|
||||||
|
Version 1.2.12
|
||||||
|
- [pbiering] added token for recordings: isInUse
|
||||||
|
@ -1172,6 +1172,7 @@ enum class eLeMenuRecordingsIT {
|
|||||||
isHD,
|
isHD,
|
||||||
isUHD,
|
isUHD,
|
||||||
isRadio,
|
isRadio,
|
||||||
|
isInUse,
|
||||||
count
|
count
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1221,6 +1222,7 @@ enum class eCeMenuRecordingsIT {
|
|||||||
isHD,
|
isHD,
|
||||||
isUHD,
|
isUHD,
|
||||||
isRadio,
|
isRadio,
|
||||||
|
isInUse,
|
||||||
count
|
count
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1335,6 +1337,7 @@ enum class eDmDetailedHeaderRecIT {
|
|||||||
isHD,
|
isHD,
|
||||||
isUHD,
|
isUHD,
|
||||||
isRadio,
|
isRadio,
|
||||||
|
isInUse,
|
||||||
count
|
count
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1446,6 +1449,7 @@ enum class eDmDetailedRecIT {
|
|||||||
isHD,
|
isHD,
|
||||||
isUHD,
|
isUHD,
|
||||||
isRadio,
|
isRadio,
|
||||||
|
isInUse,
|
||||||
count
|
count
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1754,6 +1754,7 @@ void cLeMenuRecordings::SetTokenContainer(void) {
|
|||||||
tokenContainer->DefineIntToken("{isHD}", (int)eLeMenuRecordingsIT::isHD);
|
tokenContainer->DefineIntToken("{isHD}", (int)eLeMenuRecordingsIT::isHD);
|
||||||
tokenContainer->DefineIntToken("{isUHD}", (int)eLeMenuRecordingsIT::isUHD);
|
tokenContainer->DefineIntToken("{isUHD}", (int)eLeMenuRecordingsIT::isUHD);
|
||||||
tokenContainer->DefineIntToken("{isRadio}", (int)eLeMenuRecordingsIT::isRadio);
|
tokenContainer->DefineIntToken("{isRadio}", (int)eLeMenuRecordingsIT::isRadio);
|
||||||
|
tokenContainer->DefineIntToken("{isInUse}", (int)eLeMenuRecordingsIT::isInUse);
|
||||||
tokenContainer->DefineStringToken("{recchannelname}", (int)eLeMenuRecordingsST::recchannelname);
|
tokenContainer->DefineStringToken("{recchannelname}", (int)eLeMenuRecordingsST::recchannelname);
|
||||||
tokenContainer->DefineStringToken("{recchannelid}", (int)eLeMenuRecordingsST::recchannelid);
|
tokenContainer->DefineStringToken("{recchannelid}", (int)eLeMenuRecordingsST::recchannelid);
|
||||||
InheritTokenContainer();
|
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::isHD, RecordingIsHD(event)); // detect HD from 'info'
|
||||||
tokenContainer->AddIntToken((int)eLeMenuRecordingsIT::isUHD, RecordingIsUHD(event)); // detect UHD 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::isRadio, RecordingIsRadio(event, info->FramesPerSecond())); // detect Radio from 'info' and FPS
|
||||||
|
tokenContainer->AddIntToken((int)eLeMenuRecordingsIT::isInUse, usedRecording->IsInUse());
|
||||||
SetScraperRecordingPoster(tokenContainer, usedRecording, true);
|
SetScraperRecordingPoster(tokenContainer, usedRecording, true);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -2028,6 +2030,7 @@ void cCeMenuRecordings::SetTokenContainer(void) {
|
|||||||
tokenContainer->DefineIntToken("{isHD}", (int)eCeMenuRecordingsIT::isHD);
|
tokenContainer->DefineIntToken("{isHD}", (int)eCeMenuRecordingsIT::isHD);
|
||||||
tokenContainer->DefineIntToken("{isUHD}", (int)eCeMenuRecordingsIT::isUHD);
|
tokenContainer->DefineIntToken("{isUHD}", (int)eCeMenuRecordingsIT::isUHD);
|
||||||
tokenContainer->DefineIntToken("{isRadio}", (int)eCeMenuRecordingsIT::isRadio);
|
tokenContainer->DefineIntToken("{isRadio}", (int)eCeMenuRecordingsIT::isRadio);
|
||||||
|
tokenContainer->DefineIntToken("{isInUse}", (int)eCeMenuRecordingsIT::isInUse);
|
||||||
tokenContainer->DefineStringToken("{recchannelname}", (int)eCeMenuRecordingsST::recchannelname);
|
tokenContainer->DefineStringToken("{recchannelname}", (int)eCeMenuRecordingsST::recchannelname);
|
||||||
tokenContainer->DefineStringToken("{recchannelid}", (int)eCeMenuRecordingsST::recchannelid);
|
tokenContainer->DefineStringToken("{recchannelid}", (int)eCeMenuRecordingsST::recchannelid);
|
||||||
InheritTokenContainer();
|
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::isHD, RecordingIsHD(event)); // detect HD from 'info'
|
||||||
tokenContainer->AddIntToken((int)eCeMenuRecordingsIT::isUHD, RecordingIsUHD(event)); // detect UHD 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::isRadio, RecordingIsRadio(event, info->FramesPerSecond())); // detect Radio from 'info' and FPS
|
||||||
|
tokenContainer->AddIntToken((int)eCeMenuRecordingsIT::isInUse, usedRecording->IsInUse());
|
||||||
|
|
||||||
SetScraperRecordingPoster(tokenContainer, usedRecording, false);
|
SetScraperRecordingPoster(tokenContainer, usedRecording, false);
|
||||||
|
|
||||||
|
@ -607,6 +607,7 @@ void cViewDetailRec::SetTokenContainer(void) {
|
|||||||
tokenContainer->DefineIntToken("{isHD}", (int)eDmDetailedRecIT::isHD);
|
tokenContainer->DefineIntToken("{isHD}", (int)eDmDetailedRecIT::isHD);
|
||||||
tokenContainer->DefineIntToken("{isUHD}", (int)eDmDetailedRecIT::isUHD);
|
tokenContainer->DefineIntToken("{isUHD}", (int)eDmDetailedRecIT::isUHD);
|
||||||
tokenContainer->DefineIntToken("{isRadio}", (int)eDmDetailedRecIT::isRadio);
|
tokenContainer->DefineIntToken("{isRadio}", (int)eDmDetailedRecIT::isRadio);
|
||||||
|
tokenContainer->DefineIntToken("{isInUse}", (int)eDmDetailedRecIT::isInUse);
|
||||||
tokenContainer->DefineIntToken("{ismovie}", (int)eScraperIT::ismovie);
|
tokenContainer->DefineIntToken("{ismovie}", (int)eScraperIT::ismovie);
|
||||||
tokenContainer->DefineIntToken("{moviebudget}", (int)eScraperIT::moviebudget);
|
tokenContainer->DefineIntToken("{moviebudget}", (int)eScraperIT::moviebudget);
|
||||||
tokenContainer->DefineIntToken("{movierevenue}", (int)eScraperIT::movierevenue);
|
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::isHD, RecordingIsHD(event)); // detect HD from 'info'
|
||||||
tokenContainer->AddIntToken((int)eDmDetailedRecIT::isUHD, RecordingIsUHD(event)); // detect UHD 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::isRadio, RecordingIsRadio(event, info->FramesPerSecond())); // detect Radio from 'info' and FPS
|
||||||
|
tokenContainer->AddIntToken((int)eDmDetailedRecIT::isInUse, recording->IsInUse());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SetRecInfos();
|
SetRecInfos();
|
||||||
|
@ -1170,6 +1170,7 @@ void cVeDmDetailheaderRec::SetTokenContainer(void) {
|
|||||||
tokenContainer->DefineIntToken("{isHD}", (int)eDmDetailedHeaderRecIT::isHD);
|
tokenContainer->DefineIntToken("{isHD}", (int)eDmDetailedHeaderRecIT::isHD);
|
||||||
tokenContainer->DefineIntToken("{isUHD}", (int)eDmDetailedHeaderRecIT::isUHD);
|
tokenContainer->DefineIntToken("{isUHD}", (int)eDmDetailedHeaderRecIT::isUHD);
|
||||||
tokenContainer->DefineIntToken("{isRadio}", (int)eDmDetailedHeaderRecIT::isRadio);
|
tokenContainer->DefineIntToken("{isRadio}", (int)eDmDetailedHeaderRecIT::isRadio);
|
||||||
|
tokenContainer->DefineIntToken("{isInUse}", (int)eDmDetailedHeaderRecIT::isInUse);
|
||||||
InheritTokenContainer();
|
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::isHD, RecordingIsHD(event)); // detect HD from 'info'
|
||||||
tokenContainer->AddIntToken((int)eDmDetailedHeaderRecIT::isUHD, RecordingIsUHD(event)); // detect UHD 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::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)) {
|
if (info->ChannelName() && (strlen(info->ChannelName()) > 0)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user