MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
Thread Tools Display Modes
Old 2007-09-17, 12:42   #1 (permalink)
Portal Developer
 
gemx's Avatar
 
Join Date: Oct 2006
Age: 32
Posts: 1,262
Thanks: 24
Thanked 188 Times in 99 Posts

Country:

My System

Smile [DVB EPG] Added template based naming of epg title and description

Since the last addition, we have several fields which are grabbed from the DVB EPG.
These are:
- title
- description
- star rating
- parental rating
- classification (according to MPAA)
- genre
I added the ability to name the title and description by a template. (see the screenshot below)
The template is evaluated directly before the epg event is written to the db.
So you can e.g. have a title template like "%TITLE% (%PARENTALRATING% years)" which would show up in the guide as "Transformers (16 years)".
I thought that might be useful for some people
This only works for DVB-EPG and only for newly grabbed events.
Attached Thumbnails
dvb-epg-added-template-based-naming-epg-title-description-screenshot.jpg  
__________________
ACCENT HT-100 | 2x16 VFD | ADM Athlon 64 3500+ | Win XP SP2 | SkyStar 2 DVB-S PCI | TT connect S2-3600
gemx is offline   Reply With Quote
This User Say Thank You:
Old 2007-09-17, 14:24   #2 (permalink)
Portal Member
 
Join Date: Dec 2006
Location: Graz
Age: 42
Posts: 89
Thanks: 11
Thanked 0 Times in 0 Posts

Country:

My System

Default

This is really great!

btw. is there a way to get the line-breaks from the description into the db (and probably also have a placeholder for a line-break for this new feature)?
Slurm is offline   Reply With Quote
Old 2007-09-18, 14:58   #3 (permalink)
Portal Member
 
Join Date: Feb 2007
Age: 50
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default Scrolling speed of description

The templete idea is nice.
Would it be possible to decrease the scrolling speed of the description ?
I have no change to read text with more than 20 lines. I hope i'm not the only one who has this problem.

regards
kharasana is offline   Reply With Quote
Old 2007-09-18, 20:48   #4 (permalink)
Portal Member
 
Join Date: Jun 2006
Location: Cologne (Köln)
Age: 27
Posts: 303
Thanks: 3
Thanked 9 Times in 5 Posts

Country:


Send a message via ICQ to kuehnch
Default

The text-scrolling-speed is configurable within the settings-part of mediaportal. Went to the mediaportal-home (mainmenu) and move to Settings -> General.
kuehnch is offline   Reply With Quote
Old 2007-09-18, 23:49   #5 (permalink)
Portal Developer
 
gemx's Avatar
 
Join Date: Oct 2006
Age: 32
Posts: 1,262
Thanks: 24
Thanked 188 Times in 99 Posts

Country:

My System

Default

Quote:
Originally Posted by Slurm View Post
is there a way to get the line-breaks from the description into the db (and probably also have a placeholder for a line-break for this new feature)?
Should be no problem to add a placeholder for a newline but i remember those characters are filtered out before displaying.
Will have a look at this
__________________
ACCENT HT-100 | 2x16 VFD | ADM Athlon 64 3500+ | Win XP SP2 | SkyStar 2 DVB-S PCI | TT connect S2-3600
gemx is offline   Reply With Quote
Old 2007-09-19, 18:12   #6 (permalink)
Portal Member
 
ronsonol's Avatar
 
Join Date: Apr 2007
Location: Kingston
Posts: 112
Thanks: 10
Thanked 9 Times in 6 Posts

Country:

My System

Default

Thanks for this addition to the epg grabber.

For me, when I enable the %STARRATING_STR%, programs what have no star rating(not a movie) have the guide entry show up as TITLE <undefined>. For example, %TITLE (%STARRATING_STR%), will show up as TITLE (<undefined>) in the Guide inside MP, and as TITLE () in the web server program guide.

Programs that do have a star rating, will show up with a "+" following the stars, eg. TITLE (***+)

Last edited by ronsonol; 2007-09-19 at 18:38.
ronsonol is offline   Reply With Quote
Old 2007-09-19, 19:07   #7 (permalink)
Portal Developer
 
gemx's Avatar
 
Join Date: Oct 2006
Age: 32
Posts: 1,262
Thanks: 24
Thanked 188 Times in 99 Posts

Country:

My System

Default

Hi ronsonol,
Quote:
Originally Posted by ronsonol View Post
Thanks for this addition to the epg grabber.

For me, when I enable the %STARRATING_STR%, programs what have no star rating(not a movie) have the guide entry show up as TITLE <undefined>. For example, %TITLE (%STARRATING_STR%), will show up as TITLE (<undefined>) in the Guide inside MP, and as TITLE () in the web server program guide.
That's ok. Should it display just nothing?

Quote:
Originally Posted by ronsonol View Post
Programs that do have a star rating, will show up with a "+" following the stars, eg. TITLE (***+)
That's ok. The star rating steps are:
*
*+
**
**+
***
***+
****
__________________
ACCENT HT-100 | 2x16 VFD | ADM Athlon 64 3500+ | Win XP SP2 | SkyStar 2 DVB-S PCI | TT connect S2-3600
gemx is offline   Reply With Quote
Old 2007-09-19, 19:20   #8 (permalink)
Portal Developer
 
gemx's Avatar
 
Join Date: Oct 2006
Age: 32
Posts: 1,262
Thanks: 24
Thanked 188 Times in 99 Posts

Country:

My System

Default

Just added the %NEWLINE% template item
__________________
ACCENT HT-100 | 2x16 VFD | ADM Athlon 64 3500+ | Win XP SP2 | SkyStar 2 DVB-S PCI | TT connect S2-3600
gemx is offline   Reply With Quote
Old 2007-09-19, 19:21   #9 (permalink)
Portal Member
 
ronsonol's Avatar
 
Join Date: Apr 2007
Location: Kingston
Posts: 112
Thanks: 10
Thanked 9 Times in 6 Posts

Country:

My System

Default

Hi gemx,

Yes I think, when no star rating is available it should display nothing. As I mentioned, inside the guide is actually says <undefined> beside the TITLE of the show.

As for the star rating indicator, every entry I see that has some stars beside it always has the plus. I only see *+, **+, ***+. I've checked the guide over multiple times to confirm this.
The %STARRATING% seems to be numbers like 2, 4, 6, so Does the %STARRATING_STR% get determined from this value?

Many thanks for your great work.
ronsonol is offline   Reply With Quote
Old 2007-09-19, 23:17   #10 (permalink)
Portal Developer
 
gemx's Avatar
 
Join Date: Oct 2006
Age: 32
Posts: 1,262
Thanks: 24
Thanked 188 Times in 99 Posts

Country:

My System

Default

Quote:
Originally Posted by ronsonol View Post
As for the star rating indicator, every entry I see that has some stars beside it always has the plus. I only see *+, **+, ***+. I've checked the guide over multiple times to confirm this.
The %STARRATING% seems to be numbers like 2, 4, 6, so Does the %STARRATING_STR% get determined from this value?
That's true. Only the starrating as an integer is stored in the db.
The %STARRATING_STR% is derived from this value. So if you only have 2,4,6 in the db the derived string is correct.
That's how it's received from the DVB stream
__________________
ACCENT HT-100 | 2x16 VFD | ADM Athlon 64 3500+ | Win XP SP2 | SkyStar 2 DVB-S PCI | TT connect S2-3600
gemx is offline   Reply With Quote
Reply

Bookmarks

Tags
added, based, description, dvb, epg, naming, template, title

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrong title in EPG from dutch DVB-c VpR 0.2.3.0 RC1 and SVN Builds 1 2007-09-01 19:47
epg description - strange symbol bindalf Electronic Program Guide 0 2007-06-21 20:58
[PATCH]: Epg mhw program description grabber crazyboy pre 1.0 RC1 2 2007-03-14 21:55
EPG description when searching using genre Nemulate Improvement Suggestions 1 2007-01-13 11:28
Movie title and description are not shown in videoOSD Ralph 0.2.0.0 Release Candidate 2 CVS Bugs 1 2006-03-03 10:59


All times are GMT +1. The time now is 04:33.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress