Blue Vision (13 Viewers)

ge2301

Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,736
    3,501
    Stuttgart
    Home Country
    Germany Germany
    As you can see in the screenshot above there are no infos about duration and year. It's the same situation for Titanium skin.
    Below the simplified code (I removed grid and other stuff). Does anyone know, if duration and year can be extracted for videos and episodes from metadata?
    If not at the moment, do you know if it will be possible after MIA update?

    HTML:
    <media:MediaAspectWrapper MediaItem="{Binding Source={StaticResource FanArtBackgroundModel},Path=MediaItem}" >
          <media:MediaAspectWrapper.Template>
            <ControlTemplate>
              <Label x:Name="Year" HorizontalAlignment="Left"
                  Content="{Binding Path=RecordingTime, Converter={StaticResource DateFormatConverter}, ConverterParameter=yyyy}" Color="{ThemeResource TextColor}"/>
          </ControlTemplate>
        </media:MediaAspectWrapper.Template>
      </media:MediaAspectWrapper>

    HTML:
    <media:SeriesAspectWrapper MediaItem="{Binding Source={StaticResource FanArtBackgroundModel},Path=MediaItem}">
        <media:SeriesAspectWrapper.Template>
          <ControlTemplate>
              <Label x:Name="Duration" Grid.Column="0" Grid.Row="2"
                      Content="{Binding Path=Runtime, Converter={StaticResource DurationConverter}, ConverterParameter=hh\:mm}" Color="{ThemeResource TextColor}"/>
              <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="3" Margin="0,6,0,5">
                <StarRatingPanel x:Name="RatingReadOnly" IsReadOnly="True" StarReadOnlyTemplate="{StaticResource StarReadOnlyTemplate}"
                                             Maximum="10"
                                             Value="{Binding TotalRating}">
                  <StarRatingPanel.LayoutTransform>
                    <TransformGroup>
                      <ScaleTransform ScaleX="1.7" ScaleY="1.5"/>
                    </TransformGroup>
                  </StarRatingPanel.LayoutTransform>
                </StarRatingPanel>
              </StackPanel>
          </ControlTemplate>
        </media:SeriesAspectWrapper.Template>
      </media:SeriesAspectWrapper>
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,562
    3,944
    Lehmden
    Home Country
    Germany Germany
    Hi.
    Year can be found in Database table "M_MEDIAITEM" column "RECORDINGTIME" but needs to be trimmed a bit as it's in yyyy-mm-dd hh:mm.ss format also excerpt for the year all values are identical "xxxx-01-01 00:00:00" So only the year is relevant.
    Duration of the video file can be found in table "M_VIDEOITEM" column "DURATION" value is in seconds.
    And the "official" playing time of the movie is stored in "M_MOVIEITEM" column "RUNTIME" value in minutes. For series there is no such column.

    So it is possible to display those information already but afaik it's not implemented jet.
     

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    The holy grail for these kinds of questions is a look into our default MIAs:
    https://github.com/MediaPortal/Medi...tal.Common/MediaManagement/DefaultItemAspects
    (no fear - there are more human readable comments than code and even the "code" should be self explanatory)
    If you have a look into the VideoAspect, you see the ATTR_DURATION (which is duration in seconds)
    The SeriesAspect gives you ATTR_FIRSTAIRED
    But don't ask me how to access them in xaml :D
    Hope that helps at least a bit...
     

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    :D Funny...
    Ok, Lehmden was quicker and has a "database view" (most likely caused by development of MP2-Edit :D)
    But although I have really no clue about xaml, I'm quite sure that you need to access the MIA objects somehow as the MP2-Client (and therefore the skins) never have direct access to the database. But the "fields" are of course the same...
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,736
    3,501
    Stuttgart
    Home Country
    Germany Germany
    Now that I see the MIA's I remember that Morpheus had posted it already somewhere :oops:
    The MP2 code is so long, that I sometimes really forget where something is defined :)
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,562
    3,944
    Lehmden
    Home Country
    Germany Germany
    Hi,
    Have installed 0.4 of BlueVision. Looks nice that far, But exactly what I wanted to avoid has happened here. The Series View did not show a single poster at all. In Apollo the modifications from the NNRA thread are working on series too. So where is the difference?
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,562
    3,944
    Lehmden
    Home Country
    Germany Germany
    As a proof.
    Apollo One Series view:
    Zwischenablage-3.jpg

    BlueVision series View:
    Zwischenablage-1.jpg


    And to show it's limited to the series here is BlueVision movies view:
    Zwischenablage-2.jpg


    By the way, I would prefer six instead of seven columns of posters and a bit more space for the background in series view too, same as in movies....
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,736
    3,501
    Stuttgart
    Home Country
    Germany Germany
    Hi,
    Have installed 0.4 of BlueVision. Looks nice that far, But exactly what I wanted to avoid has happened here. The Series View did not show a single poster at all. In Apollo the modifications from the NNRA thread are working on series too. So where is the difference?

    Hi Lehmden,

    I changed ApolloOne at first and then Bluevision together with other changes. Actually there is really a difference. I didn't change the series view for BlueVision yet.
    Reason is, that banners do not appear any more, when I change the code. This is because they are not stored locally in the folders. For some reasons MP2 also doesn't load them, even if I wait.
    But I can confirm, that with current code no posters are showing in grid view o_O Of course I'd like to have both views working. Any idea about the banners (list view)? Have you tried this view aswell?

    By the way, I would prefer six instead of seven columns of posters and a bit more space for the background in series view too, same as in movies....
    Fully agree. In grid view it would look better. Only for list view more space due to banner width is needed. I'll try to define the fanart width based on view mode.

    BTW:
    After changing the code I have also problems with the audio part. I have a folder "Top 100 charts", which contains 100 mp3 files with album tag "Top 100 charts".
    For all files I see the same album cover even though they have all another cover. For some reasons windows is always creating a thumb.dll and a folder.jpg based on last mp3 file. MP2 assigns this cover then to all 100 mp3's:(
    For movies this doesn't happen because usually only one file per folder.
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,562
    3,944
    Lehmden
    Home Country
    Germany Germany
    Hi.
    This is because they are not stored locally in the folders.
    Series poster and series banner are stored at exactly the same places. You can find them both in cache "c:\ProgramData\Team MediaPortal\MP2-Server\TvDB\TVDB-ID\", in thumbs "c:\ProgramData\Team MediaPortal\MP2-Server\Thumbs\FanArt\"and (at least in my setup) both are stored in series folder right next to the series fanart... And none of those gfx is stored in DB directly. There (in DB) are episodes thumbs only to find.

    Have you tried this view aswell?
    Not before now, but yes, the banners are shown if I change to list view...

    problems with the audio part
    Really need to test the audio part, also I never will use it. Prefer to stream directly to my AVR instead of having a full blown PC running just to serve the AVR...
     

    Users who are viewing this thread

    Top Bottom