Series.EpisodesWatched and EpisodesUnWatched (1 Viewer)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Hi there

    I wan't to display EpisodesWatched and EpisodesUnWatched in two different strings. Every attempt I make formats one string but then the other looks weird :(

    Ultimately I want this:

    Code:
    <Enabled>1<Format><Series.EpisodesWatched><FormatAs>Eval(PrettyNumber100(<Series.EpisodesWatched>))
    <Enabled>1<Format><Series.EpisodesUnWatched><FormatAs>Eval(PrettyNumber100(<Series.EpisodesUnWatched>))

    Maybe I don't get the logic behind the parser, but shouldn't this simple example work?

    I want a result from 9 files as:

    007 (formatted 7 watched episodes)
    002 (formatted 2 unwatched episodes)

    :D
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    Hi pilehave, there is no EpisodesWatched field so you need to create an expression (Total - Unwatched) = Watched

    X watched episodes @ Series/Season level:
    Code:
    <Enabled>1<Format><[COLOR="Red"][B]Series.EpsWatched[/B][/COLOR]><FormatAs>Eval(<Series.EpisodeCount>-<Series.EpisodesUnWatched>) watched episodes
    <Enabled>1<Format><[COLOR="Red"][B]Season.EpsWatched[/B][/COLOR]><FormatAs>Eval(<Season.EpisodeCount>-<Season.EpisodesUnWatched>) watched episodes

    Y unwatched episodes @ Series/Season level:
    Code:
    <Enabled>1<Format><[COLOR="Red"][B]Series.EpsUnWatched[/B][/COLOR]><FormatAs>Eval(<Series.EpisodesUnWatched>) unwatched episodes
    <Enabled>1<Format><[COLOR="Red"][B]Season.EpsUnWatched[/B][/COLOR]><FormatAs>Eval(<Season.EpisodesUnWatched>) unwatched episodes

    Then you can use the code below:
    Code:
    [COLOR="SeaGreen"]<! -- Display Selected Series Watched/Unwatched Count -->[/COLOR]
    <control>
          <label>#TVSeries.[COLOR="Red"][B]Series.EpsWatched[/B][/COLOR]</label>
          <type>label</type>
          <posX>150</posX>
          <posY>150</posY>
          <width>700</width>
          <visible>Control.IsVisible(1237)</visible>
    </control>
    <control>
          <label>#TVSeries.[COLOR="Red"][B]Series.EpsUnWatched[/B][/COLOR]</label>
          <type>label</type>
          <posX>150</posX>
          <posY>125</posY>
          <width>700</width>
          <visible>Control.IsVisible(1237)</visible>
    </control>
    [COLOR="SeaGreen"]<! -- Display Selected Season Watched/Unwatched Count -->[/COLOR]
    <control>
          <label>#TVSeries.[COLOR="Red"][B]Season.EpsWatched[/B][/COLOR]</label>
          <type>label</type>
          <posX>150</posX>
          <posY>150</posY>
          <width>700</width>
          <visible>Control.IsVisible(1238)</visible>
    </control>
    <control>
          <label>#TVSeries.[COLOR="Red"][B]Season.EpsUnWatched[/B][/COLOR]</label>
          <type>label</type>
          <posX>150</posX>
          <posY>125</posY>
          <width>700</width>
          <visible>Control.IsVisible(1238)</visible>
    </control>

    Trick is to use unique names as it could conflict with other formatting rules...maybe thats what you were seeing.
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    • Thread starter
    • Moderator
    • #3
    Trick is to use unique names as it could conflict with other formatting rules...maybe thats what you were seeing.

    When you say that it all makes more sense :p

    I get the idea now, but I had no idea you could create your own "variables". That's clever :)

    :D
     

    Users who are viewing this thread

    Top Bottom