SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Diamond
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Diamond This forums is for discussing the user-created Diamond plugin for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-13-2011, 03:54 PM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Station ID for Diamond Info

Where does Diamond Info view get it's station ID from? I have a few imported series that are showing copy for the station.

This is what the logo/text looks like:



And attached is a screenshot of the whole screen for reference.

Afflicted series are Star Trek TNG, Star Trek DS9, and Legend of the Seeker.

Any ideas on what to change to fix this?
Attached Images
File Type: png copy.png (6.7 KB, 526 views)
File Type: png tng.png (425.4 KB, 262 views)
Reply With Quote
  #2  
Old 03-13-2011, 07:47 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Diamond does a call to the Sage function "GetSeriesNetwork" and then matches the results to the images stored in the diamond base Theme subfolder under StudioIcons.

I checked a few and saw that the icon you refer to is called...

"AND Syndicated Productions"

But there could be many others that use a similar icon with different Network names (there are 1200 icons in that folder).

I hope that helps. JOrton is really the expert in this area.

k
Reply With Quote
  #3  
Old 03-13-2011, 08:16 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by jusjoken View Post
Diamond does a call to the Sage function "GetSeriesNetwork" and then matches the results to the images stored in the diamond base Theme subfolder under StudioIcons.

I checked a few and saw that the icon you refer to is called...

"AND Syndicated Productions"

But there could be many others that use a similar icon with different Network names (there are 1200 icons in that folder).

I hope that helps. JOrton is really the expert in this area.

k
That's the way we do it spot on we don't match the recorded channel but the network the series originated on by using series calls. Note this is only for diamond info and simple views.
Reply With Quote
  #4  
Old 03-13-2011, 09:45 PM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Makes sense.

I used Slugger's Sagegroovy as a way into the API and calling
SeriesInfoAPI.GetSeriesNetwork(SeriesInfoAPI.GetSeriesInfoForID("200071470"))
//Star Trek TNG
does indeed return Syndicated.

I guess my next questions are:
  1. How does this info get populated? Is it scraped from tvdb or some other online source?
  2. Is changing the network for a series simply a matter of calling SetSeriesInfoProperty() with the appropriate arguments? ie will I screw up my database poking around with this?
  3. Is there a better way than (2) to change this info?
Reply With Quote
  #5  
Old 03-15-2011, 10:08 AM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Shameless Bump

I dinked around with this some this AM and got absolutely nowhere
Calling SeriesInfoAPI.SetSeriesInfoProperty() would never actually overwrite the Network propery. It would create a new Network property that I could access through SeriesInfoAPI.GetSeriesInfoProperty()

It doesn't look like any other method to set the Network property is exposed other than SeriesInfoAPI.AddSeriesInfo() which I could never actually get to work calling through a groovy script*.

I was not able to test it but would calling SeriesInfoAPI.AddSeriesInfo() with an existing SeriesID and only changing one property (network) and leaving everything else as null just update the network property? Or would it nuke everything that was set to null and set the network property to the new value?

I'm also open to easier ways of doing this (hint hint)

*I think the problem with going through groovy is the way it's handling ints. The error message I got was basically no method exists for argument types (list of types) Possible solution (new list of types) and the only difference in the types was a java.lang.Integer supplied by groovy and an int expected by java.
Reply With Quote
  #6  
Old 03-15-2011, 12:18 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Spectrum View Post
Shameless Bump

I dinked around with this some this AM and got absolutely nowhere
Calling SeriesInfoAPI.SetSeriesInfoProperty() would never actually overwrite the Network propery. It would create a new Network property that I could access through SeriesInfoAPI.GetSeriesInfoProperty()

It doesn't look like any other method to set the Network property is exposed other than SeriesInfoAPI.AddSeriesInfo() which I could never actually get to work calling through a groovy script*.

I was not able to test it but would calling SeriesInfoAPI.AddSeriesInfo() with an existing SeriesID and only changing one property (network) and leaving everything else as null just update the network property? Or would it nuke everything that was set to null and set the network property to the new value?

I'm also open to easier ways of doing this (hint hint)

*I think the problem with going through groovy is the way it's handling ints. The error message I got was basically no method exists for argument types (list of types) Possible solution (new list of types) and the only difference in the types was a java.lang.Integer supplied by groovy and an int expected by java.
My understanding is the setcalls are only meant to write series information that doesn't already exist. The series information that does exist comes direct from the guide source and I don't believe you can overwrite that in any form or fashion.
Reply With Quote
  #7  
Old 03-15-2011, 12:19 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
No further to this the only way we can offer a "fix" in diamond is add the option to show the logo based on what network it was recorded on. If you want that please log it as a reques on googlecode.
Reply With Quote
  #8  
Old 03-15-2011, 03:25 PM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Nah, no need to go that far for me on this. These are imports anyway, not recordings so there would be no network recording info for them This is not really a Diamond issue; using Diamond just made it visible.

I dumped the info from the SeriesInfoAPI for TNG and all the data matches verbatim what is on tvdb. I'm guessing this info got written into the database via Phoenix which means if I really want to pursue this I should go bug stuckless about a way to change this in BMT
Reply With Quote
  #9  
Old 03-18-2011, 01:07 PM
mr_lore mr_lore is offline
Sage Advanced User
 
Join Date: Jul 2008
Posts: 153
Heh, this happened to me for TNG in simplified view too, just too impressed with everything else in diamond/bmt to care, happened to DS9 too but correct logos showing up for other imported recordings.

Great work PLUCKY, thank you!
__________________
Server: WMC Windows 7 64bit, SSD+2TB, Gigabyte 870G, AMD X6, 4GB DDR, ATi 5570
Capture Devices: HDHomeRun (OTA), 2x HD-PVR w/HTTP Tuning (DirecTV H21's)
NAS: Windows Home Server: Supermicro C2SBX, C2D 2.6Ghz, 4GB DDR, 32.07TB
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
For Team Diamond: Seeking Permission to use Diamond Screenshots DigiTechRx Diamond 0 03-11-2011 05:21 PM
DO NOT USE 7.1.3 AND DIAMOND!! PLUCKYHD Diamond 11 03-11-2011 11:23 AM
Diamond and SageMyMovies emotionnotion Diamond 1 03-09-2011 11:18 AM
Diamond Sub-theme: Diamond MKANET Mod mkanet SageTV v7 Customizations 2 02-21-2011 05:18 AM
Video Info in SageMC 16x9, where did the info go...? mrrrl SageMC Custom Interface 1 12-22-2006 10:51 AM


All times are GMT -6. The time now is 08:57 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.