added {epgname} token for recordings in currentview and detailedview

This commit is contained in:
louis 2015-01-16 11:25:20 +01:00
parent 5703aee57b
commit c05b8413f0
11 changed files with 46 additions and 25 deletions

View File

@ -149,4 +149,5 @@ Version 0.1.2
- some fixes for plugins which use skindesigner template interface
Version 0.1.3
- added {epgname} token for recordings in currentview and detailedview.

View File

@ -10,7 +10,8 @@
</scrollbar>
<!-- Available Variables in detailheader elements:
{name} name of recording
{name} full name of recording (including folders)
{epgname} Name of recording (Name from EPG)
{shorttext} shorttext of recording
{date} date of recording in dd.mm.yy
{time} time of current recording in hh:mm
@ -45,18 +46,18 @@
</area>
<area condition="not{ismovie}++not{isseries}" x="55%" y="52%" width="43%" height="20%" layer="3">
<drawtext x="3%" y="15%" font="{regular}" fontsize="15%" color="{clrWhite}" text="{date} {time} ({duration} mins)" />
<drawtext x="3%" y="30%" width="96%" font="{semibold}" fontsize="30%" color="{clrWhite}" text="{name}" />
<drawtext x="3%" y="30%" width="96%" font="{semibold}" fontsize="30%" color="{clrWhite}" text="{epgname}" />
<drawtext x="3%" y="60%" width="96%" font="{regular}" fontsize="20%" color="{clrWhite}" text="{shorttext}" />
</area>
<area condition="{isseries}" x="55%" y="52%" width="43%" height="20%" layer="3">
<drawimage name="banner" imagetype="image" path="{bannerpath}" align="center" y="1%" width="70%" height="{areawidth} * 0.7 * {bannerheight} / {bannerwidth}"/>
<drawtext name="datetime" x="3%" y="{posy(banner)} + {height(banner)}" font="{regular}" fontsize="15%" color="{clrWhite}" text="{date} {time} ({duration} mins)" />
<drawtext x="3%" y="{posy(datetime)} + {height(datetime)}" width="96%" font="{semibold}" fontsize="30%" color="{clrWhite}" text="{name} - {shorttext}" />
<drawtext x="3%" y="{posy(datetime)} + {height(datetime)}" width="96%" font="{semibold}" fontsize="30%" color="{clrWhite}" text="{epgname} - {shorttext}" />
</area>
<area condition="{ismovie}" x="55%" y="52%" width="43%" height="20%" layer="3">
<drawimage name="poster" imagetype="image" path="{posterpath}" x="1%" valign="center" width="{areaheight} * {posterwidth} / {posterheight}" height="{areaheight}-20"/>
<drawtext x="{posx(poster)} + {width(poster)} + 10" y="15%" font="{regular}" fontsize="15%" color="{clrWhite}" text="{date} {time} ({duration} mins)" />
<drawtext x="{posx(poster)} + {width(poster)} + 10" y="30%" width="{areawidth} - {posx(poster)} - {width(poster)} - 20" font="{semibold}" fontsize="30%" color="{clrWhite}" text="{name}" />
<drawtext x="{posx(poster)} + {width(poster)} + 10" y="30%" width="{areawidth} - {posx(poster)} - {width(poster)} - 20" font="{semibold}" fontsize="30%" color="{clrWhite}" text="{epgname}" />
<drawtext x="{posx(poster)} + {width(poster)} + 10" y="60%" width="{areawidth} - {posx(poster)} - {width(poster)} - 20" font="{regular}" fontsize="20%" color="{clrWhite}" text="{shorttext}" />
</area>
<area x="56%" y="72%" width="41%" height="17%" layer="2">
@ -64,7 +65,8 @@
</area>
</detailheader>
<!-- Available Variables in tab elements:
{name} title of recording
{name} full name of recording (including folders)
{epgname} Name of recording (Name from EPG)
{shorttext} shorttext of recording
{description} description of recording
{date} date of recording in dd.mm.yy
@ -78,6 +80,7 @@
{durationevent} duration of corresponding event in minutes
{durationeventhours} event duration, full hours
{durationeventminutes} event duration, rest of minutes
{cutted} true if recording is cutted
{recordingsize} size of recording (automatically in GB / MB)
{recordingsizecutted} size of cutted recording (automatically in GB / MB)
@ -191,8 +194,8 @@
<!-- just define as many tabs as needed -->
<tab name="Info" x="2%" y="11%" width="48%" height="78%" layer="3" scrollheight="{areaheight}/4">
<drawtext x="0" y="0" font="{semibold}" fontsize="6%" color="{clrWhite}" text="{date} {time} ({duration} mins)" />
<drawtext x="0" y="6%" font="{semibold}" fontsize="9%" color="{clrWhite}" text="{name}" />
<drawtext x="0" y="14%" font="{regular}" fontsize="7%" color="{clrWhite}" text="{shorttext}" />
<drawtext x="0" y="6%" width="100%" font="{semibold}" fontsize="9%" color="{clrWhite}" text="{epgname}" />
<drawtext x="0" y="14%" width="100%" font="{regular}" fontsize="7%" color="{clrWhite}" text="{shorttext}" />
<drawtextbox condition="not{isseries}++not{ismovie}" x="0" y="24%" width="96%" font="{regular}" fontsize="5%" color="{clrWhite}" text="{description}" />
<drawimage condition="{isseries}" name="seriesposter" imagetype="image" path="{seriesposter1path}" x="{areawidth}*0.7" y="20%" width="{areawidth}*0.3" height="{areawidth} * 0.3 * {seriesposter1height} / {seriesposter1width}"/>
<drawimage condition="{ismovie}" name="movieposter" imagetype="image" path="{posterpath}" x="{areawidth}*0.7" y="20%" width="{areawidth}*0.3" height="{areawidth} * 0.3 * {posterheight} / {posterwidth}" />

View File

@ -67,7 +67,8 @@
{menuitemy} y position of according menu item
{menuitemwidth} width of according menu item
{menuitemheight} height of according menu item
{name} Name of recording
{name} Real Name of recording (Name of Recording Folder)
{epgname} Name of recording (Name from EPG)
{shorttext} Short Text of recording
{description} Descrption of recording
{date} Date of recording
@ -100,7 +101,7 @@
</area>
<areascroll condition="not{folder}++not{hasposter}" orientation="vertical" mode="forthandback" delay="1000" scrollspeed="medium" x="56%" y="53%" width="43%" height="46%" layer="3">
<drawtext x="0" y="0" font="{semibold}" width="100%" fontsize="10%" color="{clrWhite}" text="{date} - {time}, {duration} min" />
<drawtext x="0" y="10%" font="{semibold}" width="100%" fontsize="12%" color="{clrWhite}" text="{name}" />
<drawtext x="0" y="10%" font="{semibold}" width="100%" fontsize="12%" color="{clrWhite}" text="{epgname}" />
<drawtextbox name="shorttext" x="0" y="21%" width="100%" font="{regular}" fontsize="9%" color="{clrWhite}" text="{shorttext}" />
<drawtextbox x="0" y="{posy(shorttext)} + {height(shorttext)}" width="100%" font="{regular}" fontsize="8%" color="{clrWhite}" text="{description}" />
</areascroll>
@ -109,7 +110,7 @@
</area>
<areascroll condition="not{folder}++{hasposter}" orientation="vertical" mode="forthandback" delay="1000" scrollspeed="medium" x="72%" y="53%" width="27%" height="46%" layer="3">
<drawtext x="0" y="0" font="{semibold}" width="100%" fontsize="10%" color="{clrWhite}" text="{date} - {time}, {duration} min" />
<drawtext x="0" y="10%" font="{semibold}" width="100%" fontsize="12%" color="{clrWhite}" text="{name}" />
<drawtext x="0" y="10%" font="{semibold}" width="100%" fontsize="12%" color="{clrWhite}" text="{epgname}" />
<drawtextbox name="shorttext" x="0" y="21%" width="100%" font="{regular}" fontsize="9%" color="{clrWhite}" text="{shorttext}" />
<drawtextbox x="0" y="{posy(shorttext)} + {height(shorttext)}" width="100%" font="{regular}" fontsize="8%" color="{clrWhite}" text="{description}" />
</areascroll>

View File

@ -86,7 +86,8 @@
</area>
</colorbuttons>
<!-- Available Variables in detailheader elements:
{name} name of recording
{name} full name of recording (including folders)
{epgname} Name of recording (Name from EPG)
{shorttext} shorttext of recording
{date} date of recording in dd.mm.yy
{time} time of current recording in hh:mm
@ -118,7 +119,7 @@
<drawimage condition="{ismovie}++{posteravailable}++not{recimgavailable}" imagetype="image" path="{posterpath}" x="{areawidth} - {areaheight}*8/10" valign="center" width="{areaheight}*8 / 10 * {posterheight} / {posterwidth}" height="{areaheight}*8 / 10"/>
<drawimage condition="{recimgavailable}" imagetype="image" path="{recimgpath}" x="{areawidth} - {areaheight}*8/10 * 174 / 130" valign="center" width="{areaheight}*8/10 * 174 / 130" height="{areaheight}*8 / 10"/>
<drawtext name="title" x="20" valign="center" font="{semibold}" fontsize="35%" color="{clrWhite}" text="{name}" />
<drawtext name="title" x="20" valign="center" font="{semibold}" fontsize="35%" color="{clrWhite}" text="{epgname}" />
<drawtext name="datetime" x="20" y="{posy(title)} - {height(datetime)}" font="{light}" fontsize="25%" color="{clrWhite}" text="{date} {time} ({duration} mins)" />
<drawtext name="shorttext" x="20" y="{posy(title)} + {height(title)}" font="{light}" fontsize="25%" color="{clrWhite}" text="{shorttext}" />
</area>
@ -135,7 +136,8 @@
</area>
</scrollbar>
<!-- Available Variables in tab elements:
{name} title of recording
{name} full name of recording (including folders)
{epgname} Name of recording (Name from EPG)
{shorttext} shorttext of recording
{description} description of recording
{date} date of recording in dd.mm.yy

View File

@ -48,7 +48,8 @@
</listelement>
<!-- additional element which is drawn for current element -->
<!-- Available Variables channels menu currentelement:
{name} Name of recording
{name} Real Name of recording (Name of Recording Folder)
{epgname} Name of recording (Name from EPG)
{shorttext} Short Text of recording
{description} Descrption of recording
{date} Date of recording
@ -75,7 +76,7 @@
<currentelement delay="500" fadetime="0">
<area x="63%" y="0" width="36%" height="100%" layer="2">
<!-- header -->
<drawtext name="title" x="1%" y="0" width="98%" font="{semibold}" fontsize="8%" color="{clrWhite}" text="{name}" />
<drawtext name="title" x="1%" y="0" width="98%" font="{semibold}" fontsize="8%" color="{clrWhite}" text="{epgname}" />
<drawtext name="shorttext" x="1%" y="{height(title)}" width="98%" font="{semibold}" fontsize="6%" color="{clrWhite}" text="{shorttext}" />
<drawtext name="datetime" x="1%" y="{posy(shorttext)} + {height(shorttext)}" font="{light}" fontsize="5%" color="{clrWhite}" text="{date} {time}, {duration} min" />
<!-- scraper poster -->

View File

@ -16,7 +16,8 @@
</area>
</scrollbar>
<!-- Available Variables in detailheader elements:
{name} name of recording
{name} full name of recording (including folders)
{epgname} Name of recording (Name from EPG)
{shorttext} shorttext of recording
{date} date of recording in dd.mm.yy
{time} time of current event in hh:mm
@ -43,13 +44,14 @@
<drawimage condition="{isseries}++{banneravailable}++not{recimgavailable}" imagetype="image" path="{bannerpath}" x="{areawidth} - {areawidth}/3 - 10" valign="center" width="{areawidth}/3" height="{areawidth}/3 * {bannerheight} / {bannerwidth}"/>
<drawimage condition="{ismovie}++{posteravailable}++not{recimgavailable}" imagetype="image" path="{posterpath}" x="{areawidth} - {areaheight}*8/10" valign="center" width="{areaheight}*8 / 10 * {posterheight} / {posterwidth}" height="{areaheight}*8 / 10"/>
<drawimage condition="{recimgavailable}" imagetype="image" path="{recimgpath}" x="{areawidth} - {areaheight}*8/10 * 174 / 130" valign="center" width="{areaheight}*8/10 * 174 / 130" height="{areaheight}*8 / 10"/>
<drawtext name="title" x="20" valign="center" font="{vdrOsd}" fontsize="35%" color="{clrWhite}" text="{name}" />
<drawtext name="title" x="20" valign="center" font="{vdrOsd}" fontsize="35%" color="{clrWhite}" text="{epgname}" />
<drawtext name="datetime" x="20" y="{posy(title)} - {height(datetime)}" font="{vdrOsd}" fontsize="25%" color="{clrWhite}" text="{date} {time} ({duration} mins)" />
<drawtext name="shorttext" x="20" y="{posy(title)} + {height(title)}" font="{vdrOsd}" fontsize="25%" color="{clrWhite}" text="{shorttext}" />
</area>
</detailheader>
<!-- Available Variables in tab elements:
{name} title of recording
{name} full name of recording (including folders)
{epgname} Name of recording (Name from EPG)
{shorttext} shorttext of recording
{description} description of recording
{date} date of recording in dd.mm.yy

View File

@ -57,7 +57,8 @@
</listelement>
<!-- additional element which is drawn for current element -->
<!-- Available Variables channels menu currentelement:
{name} Name of recording
{name} Real Name of recording (Name of Recording Folder)
{epgname} Name of recording (Name from EPG)
{shorttext} Short Text of recording
{description} Descrption of recording
{date} Date of recording
@ -78,7 +79,7 @@
<area x="32%" y="2%" width="67%" height="96%" layer="2">
<fill color="{clrTransBlack}" />
<!-- header -->
<drawtext name="title" x="1%" y="0" width="98%" font="{vdrOsd}" fontsize="8%" color="{clrWhite}" text="{name}" />
<drawtext name="title" x="1%" y="0" width="98%" font="{vdrOsd}" fontsize="8%" color="{clrWhite}" text="{epgname}" />
<drawtext name="shorttext" x="1%" y="{height(title)}" width="98%" font="{vdrOsd}" fontsize="6%" color="{clrWhite}" text="{shorttext}" />
<drawtext name="datetime" x="1%" y="{posy(shorttext)} + {height(shorttext)}" font="{vdrOsd}" fontsize="5%" color="{clrWhite}" text="{date} {time}, {duration} min" />
<!-- scraper poster -->

View File

@ -1,6 +1,7 @@
<menudetailedrecording x="0" y="0" width="100%" height="100%" fadetime="0">
<!-- Available Variables in detailheader elements:
{name} name of recording
{name} full name of recording (including folders)
{epgname} name of recording (name from EPG)
{shorttext} shorttext of recording
{date} date of recording in dd.mm.yy
{time} time of current recording in hh:mm
@ -32,7 +33,8 @@
<detailheader>
</detailheader>
<!-- Available Variables in tab elements:
{name} title of recording
{name} full name of recording (including folders)
{epgname} name of recording (name from EPG)
{shorttext} shorttext of recording
{description} description of recording
{date} date of recording in dd.mm.yy
@ -46,6 +48,7 @@
{durationevent} duration of corresponding event in minutes
{durationeventhours} event duration, full hours
{durationeventminutes} event duration, rest of minutes
{cutted} true if recording is cutted
{recordingsize} size of recording (automatically in GB / MB)
{recordingsizecutted} size of cutted recording (automatically in GB / MB)

View File

@ -2,7 +2,8 @@
<menuitems x="0" y="0" orientation="vertical" width="100%" height="100%" align="center" numlistelements="16">
<!-- Available Variables recordings menu listelement:
{nummenuitem} number of item in list, starts with 1
{name} Name of recording
{name} Real Name of recording (Name of Recording Folder)
{epgname} Name of recording (Name from EPG)
{date} Date of recording
{time} Time of recording
{daynumeric} day as number
@ -33,7 +34,8 @@
{menuitemy} y position of according menu item
{menuitemwidth} width of according menu item
{menuitemheight} height of according menu item
{name} Name of recording
{name} Real Name of recording (Name of Recording Folder)
{epgname} Name of recording (Name from EPG)
{shorttext} Short Text of recording
{description} Descrption of recording
{date} Date of recording

View File

@ -161,9 +161,11 @@ void cDisplayMenuDetailView::SetTokens(void) {
} else if (recording) {
string name = recording->Name() ? recording->Name() : "";
stringTokens.insert(pair<string,string>("name", name));
intTokens.insert(pair<string,int>("cutted", recording->IsEdited()));
const cRecordingInfo *info = recording->Info();
if (info) {
stringTokens.insert(pair<string,string>("epgname", info->Title() ? info->Title() : name));
stringTokens.insert(pair<string,string>("shorttext", info->ShortText() ? info->ShortText() : ""));
stringTokens.insert(pair<string,string>("description", info->Description() ? info->Description() : ""));
const cEvent *event = info->GetEvent();
@ -193,6 +195,7 @@ void cDisplayMenuDetailView::SetTokens(void) {
stringTokens.insert(pair<string,string>("durationeventminutes", *cString::sprintf("%.2d", duration%60)));
}
} else {
stringTokens.insert(pair<string,string>("epgname", ""));
stringTokens.insert(pair<string,string>("shorttext", ""));
stringTokens.insert(pair<string,string>("description", ""));
int recDuration = recording->LengthInSeconds();
@ -713,6 +716,7 @@ void cDisplayMenuDetailView::DrawHeader(void) {
const cRecordingInfo *info = recording->Info();
if (info) {
headerStringTokens.insert(pair<string,string>("epgname", info->Title() ? info->Title() : name));
headerStringTokens.insert(pair<string,string>("shorttext", info->ShortText() ? info->ShortText() : ""));
const cEvent *event = info->GetEvent();
if (event) {

View File

@ -622,6 +622,7 @@ void cDisplayMenuItemCurrentRecordingView::Render(void) {
}
intTokens.insert(pair<string,int>("extrecinfoavailable", extRecinfoAvailable));
stringTokens.insert(pair<string,string>("epgname", info->Title() ? info->Title() : buffer));
stringTokens.insert(pair<string,string>("shorttext", info->ShortText() ? info->ShortText() : ""));
stringTokens.insert(pair<string,string>("description", info->Description() ? info->Description() : ""));