Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Suggestion of new views to Amber
#31
(2019-08-28, 12:52)bsoriano Wrote:
(2019-08-28, 02:10)edjalmo Wrote:
(2019-08-27, 22:56)bsoriano Wrote: @edjalmo, could you please tell me the exact scenarios you have and what image you want to appear for each one? That way I can provide you with my idea of what each visibility condition should be.  Also, do your specials have a season number?
Thanks!
I want to:
  • Show DefaultFolder.png and DefaultFolderBack.png when necessary with keep aspect ration;
  • Show $INFO[ListItem.Art(thumb)] for episodes with scale aspect ration;
  • Show $INFO[ListItem.Art(fanart)] for movie, tv show, seasons and artists with scale aspect ratio (I think here aspect ration can be keep);
  • Show $INFO[ListItem.Art(thumb)] for addons, albums and music videos with aspect ratio keep.
The special just show the label "Specials" without number. 

I apologize I was not specific enough in my question. Do your specials have a season number in your tv folder structure? For example, in my tv show folders, the specials are in a Season 0 folder, and they are named <tv show> - 0x<episode number> - <episode name>. If you still don’t get what I am asking, please provide a screenshot of the folder structure for one of your tv shows that has specials, including showing at least one specials episode.

Also, when do you want defaultfolder.png to show?

Regards,

Bart 
The special is in a folder called "Specials" and the files are named this way: TV Show Name- S00EXX - Episode Title

For what I could noticed Amber use DefaultFolder.png when don't have an image for an season, so I want to show it in this case. Also, I wish show DefaultXXX.png when a movie, episode, add-on, artist, album, musicvideo, picture don't have an image to show.
Supercalifragilisticexpialidocious! (inscribed in large friendly letters)
My hardware is a Raspberry Pi 3b (with LibreELEC)
Reply
#32
(2019-08-28, 18:07)edjalmo Wrote:
(2019-08-28, 12:52)bsoriano Wrote:
(2019-08-28, 02:10)edjalmo Wrote: Thanks!
I want to:
  • Show DefaultFolder.png and DefaultFolderBack.png when necessary with keep aspect ration;
  • Show $INFO[ListItem.Art(thumb)] for episodes with scale aspect ration;
  • Show $INFO[ListItem.Art(fanart)] for movie, tv show, seasons and artists with scale aspect ratio (I think here aspect ration can be keep);
  • Show $INFO[ListItem.Art(thumb)] for addons, albums and music videos with aspect ratio keep.
The special just show the label "Specials" without number.  

I apologize I was not specific enough in my question. Do your specials have a season number in your tv folder structure? For example, in my tv show folders, the specials are in a Season 0 folder, and they are named <tv show> - 0x<episode number> - <episode name>. If you still don’t get what I am asking, please provide a screenshot of the folder structure for one of your tv shows that has specials, including showing at least one specials episode.

Also, when do you want defaultfolder.png to show?

Regards,

Bart  
The special is in a folder called "Specials" and the files are named this way: TV Show Name- S00EXX - Episode Title

For what I could noticed Amber use DefaultFolder.png when don't have an image for an season, so I want to show it in this case. Also, I wish show DefaultXXX.png when a movie, episode, add-on, artist, album, musicvideo, picture don't have an image to show. 
@edjalmo, my apologies, have been kind of busy these last few days.  For showing the defaultxxx.png when an item has no image, you can use <texture fallback="defaultxxx.png">Imagexxx</texture> (Replace the defaultxxx and Imagexxx by the appropriate values).

Also, please link again the pastebin for your latest version of the code, so I can work off that one to point out where I think you should change it to achieve what you want.  Thanks.

Regards,

Bart
Reply
#33
(2019-09-03, 22:34)bsoriano Wrote:
(2019-08-28, 18:07)edjalmo Wrote:
(2019-08-28, 12:52)bsoriano Wrote: I apologize I was not specific enough in my question. Do your specials have a season number in your tv folder structure? For example, in my tv show folders, the specials are in a Season 0 folder, and they are named <tv show> - 0x<episode number> - <episode name>. If you still don’t get what I am asking, please provide a screenshot of the folder structure for one of your tv shows that has specials, including showing at least one specials episode.

Also, when do you want defaultfolder.png to show?

Regards,

Bart  
The special is in a folder called "Specials" and the files are named this way: TV Show Name- S00EXX - Episode Title

For what I could noticed Amber use DefaultFolder.png when don't have an image for an season, so I want to show it in this case. Also, I wish show DefaultXXX.png when a movie, episode, add-on, artist, album, musicvideo, picture don't have an image to show.  
@edjalmo, my apologies, have been kind of busy these last few days.  For showing the defaultxxx.png when an item has no image, you can use <texture fallback="defaultxxx.png">Imagexxx</texture> (Replace the defaultxxx and Imagexxx by the appropriate values).

Also, please link again the pastebin for your latest version of the code, so I can work off that one to point out where I think you should change it to achieve what you want.  Thanks.

Regards,

Bart 
No problem!
This is the file with last modifications: https://pastebin.com/8RJkwGC5
I kinda had not much progress, the only thing that changed was the animation, since it has not working very well I did an workaround for it (I just increased the image size when focused).
I wish change one of the fallback image. I want to show tv show's fanart if an episode don't have thumb.
Supercalifragilisticexpialidocious! (inscribed in large friendly letters)
My hardware is a Raspberry Pi 3b (with LibreELEC)
Reply
#34
(2019-09-04, 02:48)edjalmo Wrote:
(2019-09-03, 22:34)bsoriano Wrote:
(2019-08-28, 18:07)edjalmo Wrote: The special is in a folder called "Specials" and the files are named this way: TV Show Name- S00EXX - Episode Title

For what I could noticed Amber use DefaultFolder.png when don't have an image for an season, so I want to show it in this case. Also, I wish show DefaultXXX.png when a movie, episode, add-on, artist, album, musicvideo, picture don't have an image to show.  
@edjalmo, my apologies, have been kind of busy these last few days.  For showing the defaultxxx.png when an item has no image, you can use <texture fallback="defaultxxx.png">Imagexxx</texture> (Replace the defaultxxx and Imagexxx by the appropriate values).

Also, please link again the pastebin for your latest version of the code, so I can work off that one to point out where I think you should change it to achieve what you want.  Thanks.

Regards,

Bart  
No problem!
This is the file with last modifications: https://pastebin.com/8RJkwGC5
I kinda had not much progress, the only thing that changed was the animation, since it has not working very well I did an workaround for it (I just increased the image size when focused).
I wish change one of the fallback image. I want to show tv show's fanart if an episode don't have thumb. 
@edjalmo, I think the following changes will do what you want.  it's not the most elegant (using variables would be more efficient code), but it works.  The only thing I could not test was the fallback image for when an episode has no thumb.  

xml:

<include name="52_layout">
        <definition>
            <control type="image">
                <visible>$PARAM[isfocused]</visible>
                <top>0</top>
                <left>160</left>
                <width>1600</width>
                <height>252</height>
                <texture border="4" colordiffuse="Highlight">img/WhiteRoundedST2.png</texture>
                <animation effect="fade" start="100" end="50" time="100" condition="!Control.HasFocus(52)">Conditional</animation>
            </control>
            <control type="image">
                <visible>!$PARAM[isfocused]</visible>
                <top>0</top>
                <left>160</left>
                <width>1700</width>
                <height>252</height>
                <texture flipy="true" border="3">list/ListNF.png</texture>
            </control>
            <!-- showing DefaulFolder.png and DefaultFolderBack.png in aspect ration keep -->
            <!-- <include content="ShadowedImage">
        <param name="top">7</param>
        <param name="left">170</param>
        <param name="width">415</param>
        <param name="height">233</param>
        <param name="shadowoffset">8</param>
        <param name="scale">keep</param>
        <param name="align">center</param>
        <param name="texture">DefaultFolder.png</param>
        <param name="visibility">Container.Content(seasons) + String.IsEmpty(ListItem.Season)</param>
      </include> -->

            <!-- <include content="ShadowedImage">
        <param name="top">10</param>
        <param name="left">185</param>
        <param name="width">410</param>
        <param name="height">231</param>
        <param name="shadowoffset">8</param>
        <param name="scale">keep</param>
        <param name="texture">DefaultFolder.png</param>
        <param name="visibility">Container.Content(seasons) + String.IsEmpty(ListItem.Season)</param>
      </include> -->

            <!-- <include content="ShadowedImage">
        <param name="top">7</param>
        <param name="left">170</param>
        <param name="width">415</param>
        <param name="height">233</param>
        <param name="shadowoffset">8</param>
        <param name="scale">keep</param>
        <param name="align">center</param>
        <param name="texture">DefaultFolderBack.png</param>
        <param name="visibility">$PARAM[isfocused] + [ ListItem.IsParentFolder + Container.Content(seasons) + String.IsEmpty(ListItem.Season) ]</param>
      </include>
 -->
            <!-- Parent folder or All Seasons -->
            <include content="ShadowedImage">
                <param name="top">10</param>
                <param name="left">185</param>
                <param name="width">410</param>
                <param name="height">231</param>
                <param name="shadowoffset">8</param>
                <param name="scale">keep</param>
                <param name="align">center</param>
                <param name="texture">$INFO[ListItem.Icon]</param>
                <param name="visibility">ListItem.IsParentFolder | [Container.Content(seasons) + String.IsEmpty(ListItem.Art(fanart)) + ListItem.IsFolder]</param>
            </include>
            <!-- tv shows, seasons, movies, artists -->
            <include content="ShadowedImage">
                <param name="visibility">$PARAM[isfocused] + [Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons) | Container.Content(artists)] + [!String.IsEmpty(ListItem.Art(fanart)) + !ListItem.IsParentFolder]</param>
                <param name="top">0</param>
                <param name="left">161</param>
                <param name="width">448</param>
                <param name="height">252</param>
                <param name="shadowoffset">0</param>
                <param name="fallbackimage">DefaultFolder.png</param>
                <param name="texture">$INFO[ListItem.Art(fanart)]</param>
                <param name="align">center</param>
                <param name="aspect">scale</param>
            </include>

            <include content="ShadowedImage">
                <param name="visibility">!$PARAM[isfocused] + [Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons) | Container.Content(artists)] + [!String.IsEmpty(ListItem.Art(fanart)) + !ListItem.IsParentFolder]</param>
                <param name="top">10</param>
                <param name="left">172</param>
                <param name="width">430</param>
                <param name="height">232</param>
                <param name="shadowoffset">5</param>
                <param name="fallbackimage">DefaultFolder.png</param>
                <param name="texture">$INFO[ListItem.Art(fanart)]</param>
                <param name="align">center</param>
                <param name="aspect">scale</param>
            </include>

            <!-- episodes-->
            <include content="ShadowedImage">
                <param name="visibility">$PARAM[isfocused] + Container.Content(episodes)</param>
                <param name="top">0</param>
                <param name="left">161</param>
                <param name="width">448</param>
                <param name="height">252</param>
                <param name="shadowoffset">0</param>
                <param name="fallbackimage">$INFO[ListItem.Art(tvshow.fanart)]</param>
                <param name="texture">$INFO[ListItem.Art(thumb)]</param>
                <param name="align">center</param>
                <param name="aspect">scale</param>
                <animation effect="fade" start="100" end="50" time="100" condition="!Control.HasFocus(52)">Conditional</animation>
            </include>

            <include content="ShadowedImage">
                <param name="visibility">!$PARAM[isfocused] + Container.Content(episodes)</param>
                <param name="top">10</param>
                <param name="left">172</param>
                <param name="width">440</param>
                <param name="height">232</param>
                <param name="shadowoffset">5</param>
                <param name="fallbackimage">$INFO[ListItem.Art(tvshow.fanart)]</param>
                <param name="texture">$INFO[ListItem.Art(thumb)]</param>
                <param name="align">center</param>
                <param name="aspect">scale</param>
            </include>

            <!-- albuns, musicvideos, add-ons -->
            <include content="ShadowedImage">
                <param name="visibility">$PARAM[isfocused] + [Container.Content(addons) | Container.Content(albums) | Container.Content(musicvideos) | Container.Content(songs)]</param>
                <param name="top">0</param>
                <param name="left">145</param>
                <param name="width">484</param>
                <param name="height">252</param>
                <param name="shadowoffset">0</param>
                <param name="scale">keep</param>
                <param name="align">center</param>
                <param name="texture">$INFO[ListItem.Art(thumb)]</param>
                <param name="align">center</param>
                <param name="aspect">keep</param>
            </include>

            <include content="ShadowedImage">
                <param name="visibility">!$PARAM[isfocused] + [Container.Content(addons) | Container.Content(albums) | Container.Content(musicvideos) | Container.Content(songs)]</param>
                <param name="top">10</param>
                <param name="left">172</param>
                <param name="width">430</param>
                <param name="height">232</param>
                <param name="shadowoffset">5</param>
                <param name="texture">$INFO[ListItem.Art(thumb)]</param>
                <param name="align">center</param>
                <param name="aspect">keep</param>
            </include>
            <!--  focused titles -->
            <control type="label">
                <visible>$PARAM[isfocused]</visible>
                <posx>620</posx>
                <posy>10</posy>
                <height>40</height>
                <width>$PARAM[width]</width>
                <font>font24_title</font>
                <textcolor>Black</textcolor>
                <shadowcolor></shadowcolor>
                <scroll>false</scroll>
                <aligny>center</aligny>
                <label>$VAR[panelheading]</label>
            </control>
            <!-- not focused titles -->
            <control type="label">
                <visible>!$PARAM[isfocused]</visible>
                <posx>620</posx>
                <posy>10</posy>
                <height>40</height>
                <width>$PARAM[width]</width>
                <font>font24_title</font>
                <scroll>false</scroll>
                <aligny>center</aligny>
                <label>$VAR[panelheading]</label>
            </control>
            <!-- not focused informations-->
            <control type="label">
                <visible>!$PARAM[isfocused]</visible>
                <posx>620</posx>
                <posy>10</posy>
                <height>400</height>
                <width>1120</width>
                <font>font24_title</font>
                <aligny>center</aligny>
                <align>right</align>
                <label>$VAR[panelsubheading]</label>
            </control>
            <!-- focused informations -->
            <control type="label">
                <visible>$PARAM[isfocused]</visible>
                <posx>620</posx>
                <posy>10</posy>
                <height>400</height>
                <width>1120</width>
                <font>font24_title</font>
                <aligny>center</aligny>
                <align>right</align>
                <textcolor>Black</textcolor>
                <shadowcolor></shadowcolor>
                <label>$VAR[panelsubheading]</label>
            </control>
            <!-- focused description -->
            <control type="textbox">
                <visible>$PARAM[isfocused]</visible>
                <posx>620</posx>
                <posy>47</posy>
                <height>139</height>
                <width>1120</width>
                <font>Details</font>
                <aligny>top</aligny>
                <textcolor>Black</textcolor>
                <shadowcolor></shadowcolor>
                <label>$VAR[Plots]</label>
            </control>
            <!-- not focused description -->
            <control type="textbox">
                <visible>!$PARAM[isfocused]</visible>
                <posx>620</posx>
                <posy>47</posy>
                <height>139</height>
                <width>1120</width>
                <font>Details</font>
                <aligny>top</aligny>
                <autoscroll>false</autoscroll>
                <label>$VAR[Plots]</label>
                <textcolor>Grey2</textcolor>
            </control>
            <!-- mark -->
            <control type="group">
                <visible>[Container.Content(Movies) | Container.Content(Episodes) | Container.Content(tvshows) | Container.Content(seasons)]</visible>
                <control type="image">
                    <posx>1310r</posx>
                    <posy>120</posy>
                    <width>40</width>
                    <height>192</height>
                    <texture>$VAR[Overlay]</texture>
                    <aspectratio aligny="center">keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>

Let me know how it goes.

Regards,

Bart
Reply
#35
(2019-09-05, 18:59)bsoriano Wrote: @edjalmo, I think the following changes will do what you want.  it's not the most elegant (using variables would be more efficient code), but it works.  The only thing I could not test was the fallback image for when an episode has no thumb.  

Perfect! Many thanks!
I was having troubles using variables for what I wanted to do, for this I not use.
Just a doubt: I try use this ( $INFO[Container.ShowPlot(season)] ) to show season plot, because I don't like have all seasons with the same text, however it kept showing the tv show plot. I think this is because my scraper not scrap seasons plot. If I have seasons plot Amber will show them?

I tried follow this guide to add it to current Amber, however it didn't work. They kept showing this view in the background of all the others and didn't show the name to switch to.
Supercalifragilisticexpialidocious! (inscribed in large friendly letters)
My hardware is a Raspberry Pi 3b (with LibreELEC)
Reply
#36
(2019-09-05, 21:21)edjalmo Wrote:
(2019-09-05, 18:59)bsoriano Wrote: @edjalmo, I think the following changes will do what you want.  it's not the most elegant (using variables would be more efficient code), but it works.  The only thing I could not test was the fallback image for when an episode has no thumb.  

Perfect! Many thanks!
I was having troubles using variables for what I wanted to do, for this I not use.
Just a doubt: I try use this ( $INFO[Container.ShowPlot(season)] ) to show season plot, because I don't like have all seasons with the same text, however it kept showing the tv show plot. I think this is because my scraper not scrap seasons plot. If I have seasons plot Amber will show them?

I tried follow this guide to add it to current Amber, however it didn't work. They kept showing this view in the background of all the others and didn't show the name to switch to. 
@edjalmo, Container.ShowPlot is only for the tv show plot as far as I know, and only works outside list containers.  Again, as far as I know, the Kodi db does not store season plots, so they are not supported.

And yes, there is more to do for your new view to be shown in Amber.  Once you finalize the code for your view, while I will not add it to Amber (too similar to BigList), you can send me the code and I can send you modified files that will make your view appear in Amber.  However, you will have to be vigilant of making your changes to those files each time the skin gets updated.  Please let me know if you want me to do that.

Regards,

Bart
Reply
#37
(2019-09-05, 22:54)bsoriano Wrote:
(2019-09-05, 21:21)edjalmo Wrote:
(2019-09-05, 18:59)bsoriano Wrote: @edjalmo, I think the following changes will do what you want.  it's not the most elegant (using variables would be more efficient code), but it works.  The only thing I could not test was the fallback image for when an episode has no thumb.  

Perfect! Many thanks!
I was having troubles using variables for what I wanted to do, for this I not use.
Just a doubt: I try use this ( $INFO[Container.ShowPlot(season)] ) to show season plot, because I don't like have all seasons with the same text, however it kept showing the tv show plot. I think this is because my scraper not scrap seasons plot. If I have seasons plot Amber will show them?

I tried follow this guide to add it to current Amber, however it didn't work. They kept showing this view in the background of all the others and didn't show the name to switch to.  
@edjalmo, Container.ShowPlot is only for the tv show plot as far as I know, and only works outside list containers.  Again, as far as I know, the Kodi db does not store season plots, so they are not supported.

And yes, there is more to do for your new view to be shown in Amber.  Once you finalize the code for your view, while I will not add it to Amber (too similar to BigList), you can send me the code and I can send you modified files that will make your view appear in Amber.  However, you will have to be vigilant of making your changes to those files each time the skin gets updated.  Please let me know if you want me to do that.

Regards,

Bart 

This is sad, but no problem, I will try be vigilant with updates.
Here is the code: https://pastebin.com/RPa1Gn8V
I just want add the alphabet strip, but I can add it just by copying this of one of the view, right?
Supercalifragilisticexpialidocious! (inscribed in large friendly letters)
My hardware is a Raspberry Pi 3b (with LibreELEC)
Reply

Logout Mark Read Team Forum Stats Members Help
Suggestion of new views to Amber0