home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Lehmden" data-source="post: 1129730" data-attributes="member: 109222"><p>Hi.</p><p>Looks great.<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite24" alt="(y)" title="Thumbs Up (y)" loading="lazy" data-shortname="(y)" /></p><p>Especially the new "watched" logo is something I like to see. </p><p></p><p>Don't know if it can be done in xaml but I would love to have a "Traffic Light" system for series and seasons. Red means no episodes watched and yellow means some, but not all episodes watched. Green could be for all episodes watched, but it can be left out completely, to be consistent, no problem... This information definitely is available in the DB and it is usable with a DB query. I did this in MP2-Edit so I'm sure it's working 100% reliable. But I don't know if this can be shown that easy in skin here... I really need this as this is one of the things I'm missing from MP1 the most...</p><p></p><p>If someone want to have a look, here is the code I use to achieve this in MP2-Edit:</p><p>[code] $query = 'SELECT PLAYCOUNT FROM M_MEDIAITEM INNER JOIN M_SERIESITEM ON M_MEDIAITEM.MEDIA_ITEM_ID = M_SERIESITEM.MEDIA_ITEM_ID Where M_SERIESITEM.SERIESNAME = "' & $series & '" ;' </p><p></p><p></p><p> $iRval = _SQLite_GetTable(-1, $query, $aResult, $iRows, $iColumns)</p><p></p><p> _SQLite_QueryFinalize($iRval)</p><p></p><p></p><p> $play2 = StringFormat ( "%03s" ,$aResult[0] - 1)</p><p></p><p> $coutall = Int($aResult[0] - 1)</p><p></p><p></p><p> $query = 'SELECT PLAYCOUNT FROM M_MEDIAITEM INNER JOIN M_SERIESITEM ON M_MEDIAITEM.MEDIA_ITEM_ID = M_SERIESITEM.MEDIA_ITEM_ID WHERE M_MEDIAITEM.PLAYCOUNT IS NULL AND M_SERIESITEM.SERIESNAME = "' & $series & '" ;'</p><p></p><p></p><p> $iRval = _SQLite_GetTable(-1, $query, $aResult, $iRows, $iColumns)</p><p></p><p> _SQLite_QueryFinalize($iRval)</p><p></p><p> $play = StringFormat ( "%03s" ,$aResult[0] - 1) & "/" & $play2</p><p></p><p> $coutsee = Int($aResult[0] - 1)</p><p></p><p></p><p> ;Set Watchd Status Logo</p><p></p><p> If $coutsee = 0 then</p><p></p><p> GUICtrlSetImage($Picb3, @ScriptDir & "\Images\eye-green.gif")</p><p></p><p> ElseIf $coutsee = $coutall Then</p><p></p><p> GUICtrlSetImage($Picb3, @ScriptDir & "\Images\eye-red.gif")</p><p></p><p> Else</p><p></p><p> GUICtrlSetImage($Picb3, @ScriptDir & "\Images\eye-yellow.gif")</p><p></p><p> EndIf</p><p>[/code]</p></blockquote><p></p>
[QUOTE="Lehmden, post: 1129730, member: 109222"] Hi. Looks great.(y) Especially the new "watched" logo is something I like to see. Don't know if it can be done in xaml but I would love to have a "Traffic Light" system for series and seasons. Red means no episodes watched and yellow means some, but not all episodes watched. Green could be for all episodes watched, but it can be left out completely, to be consistent, no problem... This information definitely is available in the DB and it is usable with a DB query. I did this in MP2-Edit so I'm sure it's working 100% reliable. But I don't know if this can be shown that easy in skin here... I really need this as this is one of the things I'm missing from MP1 the most... If someone want to have a look, here is the code I use to achieve this in MP2-Edit: [code] $query = 'SELECT PLAYCOUNT FROM M_MEDIAITEM INNER JOIN M_SERIESITEM ON M_MEDIAITEM.MEDIA_ITEM_ID = M_SERIESITEM.MEDIA_ITEM_ID Where M_SERIESITEM.SERIESNAME = "' & $series & '" ;' $iRval = _SQLite_GetTable(-1, $query, $aResult, $iRows, $iColumns) _SQLite_QueryFinalize($iRval) $play2 = StringFormat ( "%03s" ,$aResult[0] - 1) $coutall = Int($aResult[0] - 1) $query = 'SELECT PLAYCOUNT FROM M_MEDIAITEM INNER JOIN M_SERIESITEM ON M_MEDIAITEM.MEDIA_ITEM_ID = M_SERIESITEM.MEDIA_ITEM_ID WHERE M_MEDIAITEM.PLAYCOUNT IS NULL AND M_SERIESITEM.SERIESNAME = "' & $series & '" ;' $iRval = _SQLite_GetTable(-1, $query, $aResult, $iRows, $iColumns) _SQLite_QueryFinalize($iRval) $play = StringFormat ( "%03s" ,$aResult[0] - 1) & "/" & $play2 $coutsee = Int($aResult[0] - 1) ;Set Watchd Status Logo If $coutsee = 0 then GUICtrlSetImage($Picb3, @ScriptDir & "\Images\eye-green.gif") ElseIf $coutsee = $coutall Then GUICtrlSetImage($Picb3, @ScriptDir & "\Images\eye-red.gif") Else GUICtrlSetImage($Picb3, @ScriptDir & "\Images\eye-yellow.gif") EndIf [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom