NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 7 8 9 10 11 … 93 Next »
Multiple genres in npvr.db3

 
  • 0 Vote(s) - 0 Average
Multiple genres in npvr.db3
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#1
2013-04-16, 08:44 PM
I'm working on exporting the EPG_GENRES table for the next version of nDroid and noticed the following...
Code:
<epggenre>
    <epg_color>00000000</epg_color>
    <name>Leisure / Hobbies</name>
    <oid>27</oid>
  </epggenre>
  <epggenre>
    <epg_color>00000000</epg_color>
    <name>News / Current Affairs</name>
    <oid>28</oid>
  </epggenre>
  <epggenre>
    <epg_color>00000000</epg_color>
    <name>Music / Ballet / Dance</name>
    <oid>29</oid>
  </epggenre>
The XML format is my own but the question is about the "name" field. For example "Leisure / Hobbies"...did NextPVR do that by concatenating multiple genres? I only ask because I haven't been keeping track of what metabroadcast have been doing since they took over the Radio Times feed. I also can't find any of those multiple genre entries in my current XMLTV file.

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2013-04-16, 08:55 PM
NextPVR encodes multiple genres into the one database field to simplify the required database design. Having separate genre table and genre mappings was major hassle in GBPVR and I was keen to avoid the problem in NextPVR.

However, that's not what you're seeing here....
Code:
<epggenre>
    <epg_color>00000000</epg_color>
    <name>News / Current Affairs</name>
    <oid>28</oid>
  </epggenre>
When NextPVR encodes multiple genres into the field it semi-colon separates the various genres. In this case you're just seeing a single genre called "News / Current Affairs".
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#3
2013-04-16, 09:11 PM
bgowland Wrote:I also can't find any of those multiple genre entries in my current XMLTV file.
You'll see genres like that in the UK Freeview broadcast EPG.

Alex
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#4
2013-04-16, 09:13 PM
sub Wrote:When NextPVR encodes multiple genres into the field it semi-colon separates the various genres. In this case you're just seeing a single genre called "News / Current Affairs".
Thanks I had a feeling that was the case.

I remember asking a question some time back about the "genres" field of the EPG_EVENT table and you'd said it was delimited with semi-colons which is why I thought the "name" field from the EPG_GENRE table looked odd with forward-slash delimiters - obviously metabroadcast doing their own thing...I'm starting to dislike those guys.

Cheers,
Brian
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#5
2013-04-16, 09:18 PM
ACTCMS Wrote:You'll see genres like that in the UK Freeview broadcast EPG.

Alex
Hmm, OK. Not something I've ever noticed but I don't use the DVB EPG and it's a while since I trawled it with TSReader. Just having a bad code day...old dog, with too many new tricks. Perhaps I need a beer.

Cheers,
Brian
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#6
2013-04-16, 09:53 PM
bgowland Wrote:Perhaps I need a beer.

Cheers,
Brian
Always works for me... Smile

Alex
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  is there a service?method which returns listings for multiple channels? reven 16 6,793 2022-04-11, 04:30 PM
Last Post: mandai
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 2,320 2021-03-11, 03:59 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 68,062 2020-11-26, 10:02 PM
Last Post: mandai
  Test/Development environment for npvr.db3 scJohn 10 4,173 2020-09-04, 09:14 PM
Last Post: scJohn
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,349 2018-10-23, 07:24 AM
Last Post: almightyj
  ios app to control npvr ui idea jnbooker15 4 3,555 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,432 2015-09-21, 06:39 PM
Last Post: jnbooker15
  Couple of questions about hacking npvr.db3 drmargarit 6 4,208 2014-09-08, 02:22 AM
Last Post: sub
  EPG_EVENT.genres format bgowland 2 2,252 2014-08-10, 05:49 AM
Last Post: bgowland
  high res (256x256+) npvr icon? reven 15 5,767 2013-09-01, 05:13 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