Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Estuary] Add more metadata to Video info pane #17179

Merged
merged 3 commits into from
Jan 16, 2020

Conversation

dagwieers
Copy link
Contributor

@dagwieers dagwieers commented Jan 12, 2020

Description

This PR adds the following metadata to the Video info pane (when available):

  • Date (episode/video)
  • DateAdded (episode/movie/video)
  • Duration (episode/movie/video)
  • PlayCount
  • LastPlayed
  • DBType

Motivation and Context

This is useful for VOD video plugins to provide additional information
related to the video/streams. But it is equally useful for local video
media.

This fixes add-ons/plugin.video.vrt.nu#674

How Has This Been Tested?

This has been tested on Kodi Leia mostly, however this part of the skin is not different to Kodi Matrix.

Screenshots (if appropriate):

Screenshot for local movie
screenshot016

Screenshot for local TV show
screenshot017

Screenshot for local TV show episode
screenshot018

Screenshot for VOD movie
screenshot020

Screenshot for VOD TV show episode
screenshot021

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Clean up (non-breaking change which removes non-working, unmaintained functionality)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that will cause existing functionality to change)
  • Cosmetic change (non-breaking change that doesn't touch code)
  • None of the above (please explain below)

Checklist:

  • My code follows the Code Guidelines of this project
  • My change requires a change to the documentation, either Doxygen or wiki
  • I have updated the documentation accordingly
  • I have read the Contributing document
  • I have added tests to cover my change
  • All new and existing tests passed

This PR adds the following metadata to the Video info pane:
- Date *(episode/video)*
- DateAdded *(episode/movie/video)*
- Duration *(episode/movie/video)*
- PlayCount
- LastPlayed
- DBType

This is useful for VOD video plugins to provide additional information
related to the video/streams. But it is equally useful for local video
media.
@dagwieers
Copy link
Contributor Author

I removed the Duration from the metadata as it is already available from the Media Flags info.

@ronie ronie changed the title Add more metadata to Video info pane [Estuary] Add more metadata to Video info pane Jan 12, 2020
addons/skin.estuary/xml/DialogVideoInfo.xml Outdated Show resolved Hide resolved
<param name="control_id" value="161" />
<param name="label" value="[COLOR button_focus]$LOCALIZE[570]: [/COLOR]$INFO[ListItem.DateAdded]" />
<param name="altlabel" value="$LOCALIZE[570]: $INFO[ListItem.DateAdded]" />
<param name="visible" value="!String.IsEmpty(ListItem.DateAdded) + (String.IsEqual(ListItem.DBType,episode) | String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,video))" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add DBType musicvideo as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ronie ronie added Component: Skin Type: Improvement non-breaking change which improves existing functionality v19 Matrix labels Jan 12, 2020
@ronie ronie added this to the Matrix 19.0-alpha 1 milestone Jan 12, 2020
@ronie
Copy link
Member

ronie commented Jan 13, 2020

looks good to me, thx!

@ronie ronie merged commit 80d5524 into xbmc:master Jan 16, 2020
Maven85 pushed a commit to Maven85/kodi that referenced this pull request Jan 21, 2020
[Estuary] Add more metadata to Video info pane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Skin Type: Improvement non-breaking change which improves existing functionality v19 Matrix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more metadata to Kodi information pane
2 participants