NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 16 17 18 19 20 … 93 Next »
"Rating" in cached event details xml

 
  • 0 Vote(s) - 0 Average
"Rating" in cached event details xml
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#51
2011-03-26, 03:19 PM
Lots of good points there.

Perhaps we should start by listing the use cases, then think about the design?

Personally, I would like genre support so that programmes can be colour-coded in the TV Guide. Anything beyond that would be a bonus, but the obvious one is the ability to search for stuff by genre, eg, "find all upcoming movies".

Iain
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,173
Threads: 958
Joined: May 2006
#52
2011-03-26, 03:42 PM
So your number one use-case is of course the most complicated. Colour-coding would need sub to commit to this, and for this a colour value will need to be in the database, plus it will need to be populated by the user tool.

Assuming we kept the GENRE table as our base, we'd also need a tool to assign the colours before they go to the database.

SearchLite already searches movies but not on genre, on their star-rating.

Martin
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#53
2011-03-26, 04:01 PM
I'm not convinced it is, and zehd's suggestion of two columns in the EPG_EVENT table would sort it:

Code:
OID, Title, Description, etc, etc, [B][color=red]Genre, Genre_RGB[/color][/B]

It would be pretty easy for a tool to populate that, and (I'd hope) very easy for the TV Guide to look at the entry and colour it accordingly.

I'm not entirely clear on your suggestions regarding a separate Genre table though, so feel free to point out how the above clashes with that. If the above had entries such as...

Code:
1, Some Title, Some Description, etc, etc, "Movie, Drama", #FF0000
2, Another TItle, Another Description, etc, etc, "Movie, Drama", #FF0000

...then are you saying that the problem for you is that you'd have to scan every entry before you could be sure that you needed to offer a list to the user that contained just "Movie, Drama"? (ie, it might be entry 200,000 before you finally came across "News").

Iain
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,173
Threads: 958
Joined: May 2006
#54
2011-03-26, 04:15 PM
Now I get it, you and zehd are basically talking display which sub may or may not support on the NPVR UI and I have always been talking searching without involving sub.

I had not fully thought out the full text from the genre presentation field. If I was to search a genre I guess I'd have to test how efficient the "LIKE %criteria%" searches will be.

But yes my main concern is populating a dynamic pick list of only the available genres and not presenting possible genres most of which will be blank on my db.

Martin
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#55
2011-03-26, 04:24 PM
mvallevand Wrote:But yes my main concern is populating a dynamic pick list of only the available genres and not presenting possible genres most of which will be blank on my db.

The populate-tool could maintain a separate list of all unique entries as it fills in the table, but then it would have to be stored somewhere too.

As you say though, it's all going to depend on sub anyway, and to be honest, I'd rather he didn't answer yet (and destroy my hopes) until we can thrash out likely scenarios and present him with something we'd all be happy with Smile
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,173
Threads: 958
Joined: May 2006
#56
2011-03-26, 05:40 PM
To do the colour thing you will need another table too, I don't think it can be avoided.

Since we are still theory, because of sub's comment that most XMLTV don't have genre info what I was thinking of doing with SearchLite was import the IMDB genre ftp://ftp.fu-berlin.de/pub/misc/movies/d...es.list.gz and create a table that users would have to update manually from time to time. Now that I know the attach works I might see what I can do using GBPVR schemas.

Martin
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#57
2011-03-26, 06:24 PM
mvallevand Wrote:To do the colour thing you will need another table too, I don't think it can be avoided.

To store the user's preferences for what colour to assign to each genre? That wouldn't necessarily have to go into the DB though, it could just be kept externally by the plugins/tools.

Iain
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#58
2011-03-26, 07:37 PM
imilne Wrote:To store the user's preferences for what colour to assign to each genre? That wouldn't necessarily have to go into the DB though, it could just be kept externally by the plugins/tools.

Iain

Fascinating... I was just thinking that Martin was more interested in Searching capabilities, and imiline and I were talking about display... and you sorted it while I was out... LOL

Ultra previously captured a list of all genres while it sorted the xmltv file... it then referenced a table that said

eg
Action and Adventure=red
Action/Adventure=red
Adventure=red
Animated=blue
Arts=grey
Awards/Event=hot pink
Biography=boring
Children=blue

What Ultra did for config purposes was to have have logical groupings.. and so if you said all adventure type things was deep red, it would change the argb value in the table for the handful of adventure types...

Anyway... during processing time, Ultra would see a genre and add an xml tag for the argb.

nPVR would import the xmltv, and the argb values would be in the epg_event table

TV Guide would display.. and each cell would show, title, subtitle, start, end and argb value for back ground colour..
---

True... for searching... it would be a line by line, searching for something within a string of possibly many genres... and that would be slow-ish... but it would not impact the TV Guide in display... the possible lag would only be noticed while doing a search...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#59
2011-03-26, 07:42 PM
I agree that we should have a community standardized genre list, group and colour database that each of our apps can implement...

Not to say that a user would be required to adhere to our colour scheme at all... rather a default base of data
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#60
2011-03-26, 07:43 PM
You cant have a standard list of genre. It varies from country to country, and by EPG source. All you can do is have a table with the list of genre that have been seen to-date.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): « Previous 1 … 4 5 6 7 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording Event jrockow 10 4,780 2014-07-28, 02:51 PM
Last Post: jrockow
  Possible to have another element in details-single.xml Northpole 2 2,291 2014-07-11, 09:51 PM
Last Post: Northpole
  Recording export tags and export details? spinnaker 10 4,532 2013-10-23, 01:48 AM
Last Post: mvallevand
  Skin element Details in NowNext Jaggy 2 1,849 2011-09-19, 11:50 PM
Last Post: Jaggy
  Event codes mvallevand 10 3,931 2011-04-06, 04:26 AM
Last Post: mvallevand
  STARTUP_COMPLETE event on NMT alibert 6 2,534 2011-02-12, 05:15 PM
Last Post: sub
  NPVR - temporary solution to lack of searchable fields after event is gone from guide carpeVideo 5 2,354 2010-09-29, 03:08 AM
Last Post: mvallevand
  How do I catch the event where a list item is selected? mkenyon2 3 1,529 2009-01-06, 06:36 PM
Last Post: sub
  Current program details, from batch file! pBS 48 20,316 2008-12-09, 08:52 AM
Last Post: pBS
  Csharp Event help needed.. psycik 4 2,159 2008-05-25, 06:19 AM
Last Post: psycik

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

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

Linear Mode
Threaded Mode