NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 2 3 4 5 6 … 93 Next »
Metadata API's

 
  • 0 Vote(s) - 0 Average
Metadata API's
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#1
2016-11-24, 04:23 AM
Sub, I have a couple of questions on the MetadataManager

1) What is the difference between MetadataManager.GetInstance().GetCachedMetadataEntity() and MetadataManager.GetInstance().MetadataEntity()

2) I have been trying to get the entity.description from this API called by the showname has that been enabled?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2016-11-24, 05:35 AM
mvallevand Wrote:1) What is the difference between MetadataManager.GetInstance().GetCachedMetadataEntity() and MetadataManager.GetInstance().MetadataEntity()
MetadataEntity is the data class returned, that contains artwork URLs, name etc.

The GetMetadataEntity() method will return a MetadataEntity for the requested show, preferring to load the info from the cache in C:\Users\Public\NPVR\Media\Shows, but if not found there will go out to the Internet to look for this information (and create the new entry in the cache).

The GetCachedMetadataEntity() method will return a MetadataEntity for the requested show, but only if it's found in the cache C:\Users\Public\NPVR\Media\Shows. It will not go out to the Internet.

Quote:) I have been trying to get the entity.description from this API called by the showname has that been enabled?
Its populated in some situations. I can look to populate it in more situations. What were you passing in?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#3
2016-11-24, 06:18 AM
Thanks for the answers. For #1 I assume I should go without the cache and let NextPVR decide from config.xml

For #2 I was calling it with the name in the scheduled_recording table.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#4
2016-11-24, 06:30 AM
GetMetadataEntity() will only go out to the internet if it's enabled in the Settings->Artwork screen.

ie, basically use GetCachedMetadataEntity() if you absolutely don't want it to go out to the Internet. Use GetMetadataEntity() to allow it to go out to the Internet if it needs to (and enabled).

I quite often call GetCachedMetadataEntity() first, and if it's got artwork I'll load it immediately for showing in the UI. If it returns nothing, then I'll quite often kick off GetMetadataEntity() on a background thread, since it can take a few seconds to do it's thing and you don't want the UI frozen.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#5
2016-11-24, 12:55 PM
Thanks that makes sense. I will look forward to a version that returns the description on the name.

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#6
2016-11-24, 05:29 PM
I did some more testing and it doesn't do it by the schedule oid either. To be clear for this I'd like get the generic meta description of the shows and movies from xml/nfo etc text like you show on the Video Library.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2016-11-24, 05:39 PM
I original had intentions of using more for that stuff, but for now it's largely used for the artwork, since the screens that consumed this info already had the name/description/etc.

It does have attributes for that info though, so I'll see if I can add logic to populate it for you.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#8
2016-11-24, 05:59 PM
Thanks. You might be able to use it too, the first skin in Ready Recordings just has art and Recurring has no meta data.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Media\Shows Metadata mvallevand 2 1,828 2013-05-22, 04:09 AM
Last Post: mvallevand
  Accessing music file metadata in C# bgowland 6 3,258 2013-01-26, 05:14 AM
Last Post: bgowland
  NPVR 2.x recordings metadata and timing.info whurlston 4 2,818 2012-08-01, 06:19 PM
Last Post: whurlston
  metadata xml formats JavaWiz 18 5,327 2009-02-03, 01:21 AM
Last Post: sub
  MetaData: How to create, read, write zehd 4 2,299 2009-01-20, 04:11 PM
Last Post: sub
  embedded metadata stream on recordings made by GB-PVR? reven 7 2,783 2008-12-23, 01:12 PM
Last Post: carpeVideo
  Export Metadata per recording using SQLite dinki 5 2,257 2007-08-10, 07:51 PM
Last Post: dinki

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode