NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 183 184 185 186 187 … 433 Next »
Adding command line items to schedules direct

Adding command line items to schedules direct
crawfofd
Offline

Junior Member

Posts: 5
Threads: 1
Joined: Feb 2013
#1
2015-06-04, 07:44 PM
Just started using this program and I use Schedules Direct for my epg. I would like to use the -a command line parameter to indicate a new show. Is there anyway to do this??

Sorry if this post is in the wrong place. And thanks in advance to any support you can give me.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#2
2015-06-04, 08:07 PM
I'm assuming you mean the -a parameter for MC2XML?

You'd have to download and setup MC2XML and use it to create an XMLTV file, then map your channels to the XMLTV file instead of using the built-in Schedules Direct support. Then you'd need an "updateepg.bat" file in the NPVR\Scripts directory which would call mc2xml to update the XMLTV file each night.

This assumes you want to actually see an "*" next to new shows in the EPG. If all you want is for NextPVR to record new shows only, it can already do that with the "Record NEW Episodes on this channel" recurring option.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
crawfofd
Offline

Junior Member

Posts: 5
Threads: 1
Joined: Feb 2013
#3
2015-06-04, 10:11 PM (This post was last modified: 2015-06-04, 10:24 PM by crawfofd.)
johnsonx42, Thanks for your quick reply. What I'm actually looking for is some way to show a new program in the guide. I have used mc2xml in the past with another program and it would put the "*" in the program guide to indicate a new show. Is there a way to do it in NPVR with the built in SD?

Also do you know if it is possible to put the season and episode number in the guide and/or filename.

PS. I just called up the web tool and it seems to have all the info I wanted in the guide. Is there a way to get that info into the guide?
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#4
2015-06-04, 11:01 PM
crawfofd Wrote:johnsonx42, Thanks for your quick reply. What I'm actually looking for is some way to show a new program in the guide. I have used mc2xml in the past with another program and it would put the "*" in the program guide to indicate a new show. Is there a way to do it in NPVR with the built in SD?
The new episode flag is used only internally, it's not displayed by the stock TV Guide. The TV Listings plugin provides an alternate TV Guide which I think might display that flag.
If TV Listings doesn't do what you want, the only other way (currently) is to use MC2XML as I said.

Quote:Also do you know if it is possible to put the season and episode number in the guide and/or filename.
The season/episode number is displayed in the detail pop-up for a program, but not in the guide itself (this might be fixable with just a skin mod). If you want it in the filename, check Settings->Recording->"Use S01E01 file name format if possible"; you'll probably also want the "Use Movie.Name (YEAR) format for movies if possible".

Quote:PS. I just called up the web tool and it seems to have all the info I wanted in the guide. Is there a way to get that info into the guide?
the web interface is developed by someone else, so it has different features than the main program. The new episode data is there in the database, it's just not displayed by the stock TV Guide.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,941
Threads: 956
Joined: May 2006
#5
2015-06-04, 11:17 PM
johnsonx42 Wrote:The new episode data is there in the database, it's just not displayed by the stock TV Guide.

It is available to skinners too.

Martin
crawfofd
Offline

Junior Member

Posts: 5
Threads: 1
Joined: Feb 2013
#6
2015-06-04, 11:32 PM
Thanks again johnsonx42.

mvallevand, what do you mean by skinners??
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#7
2015-06-04, 11:38 PM (This post was last modified: 2015-06-04, 11:59 PM by johnsonx42.)
skinners, as in those who modify the skin files. in this case, npvr\Skin\Default\TV Guide\Guide.xml (or a directory other than Default if you're using a different skin). note that you can only modify the content of the detail area at the bottom of the TV Guide; the content of the grid is provided by the program and can't be changed in the skin (only the position and size of the grid can be changed).

the detail popup when you actually select a program and press enter is ...\Popups\EventDetails.xml.

(that said, I'm not sure Martin is correct; in EventDetails.xml, @subtitle appears to include both the S01E01 info as well as the subtitle text, while in Guide.xml @subtitle is just the subtitle text. I have no idea what the element name of the new episode flag would be. I thought maybe it was included with "@descriptionWithGenre", but it's not, and that element is also not available in Guide.xml)

(seems like sub is cheating a little bit, changing what information a given element includes rather than creating new elements which would then require changes to the skin files to display them; but it's his program, he can cheat if he wants to)
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,941
Threads: 956
Joined: May 2006
#8
2015-06-05, 12:12 AM
johnsonx42 Wrote:skinners, as in those who modify the skin files. in this case, npvr\Skin\Default\TV Guide\Guide.xml (or a directory other than Default if you're using a different skin). note that you can only modify the content of the detail area at the bottom of the TV Guide; the content of the grid is provided by the program and can't be changed in the skin (only the position and size of the grid can be changed).

the detail popup when you actually select a program and press enter is ...\Popups\EventDetails.xml.

(that said, I'm not sure Martin is correct; in EventDetails.xml, @subtitle appears to include both the S01E01 info as well as the subtitle text, while in Guide.xml @subtitle is just the subtitle text. I have no idea what the element name of the new episode flag would be. I thought maybe it was included with "@descriptionWithGenre", but it's not, and that element is also not available in Guide.xml)

(seems like sub is cheating a little bit, changing what information a given element includes rather than creating new elements which would then require changes to the skin files to display them; but it's his program, he can cheat if he wants to)

You can't use sub's Default as documentation, there are often more elements then sub uses in his skins. The first run flag field used to be available as were season and episode. It's true sub might overload one value if it serves his purposes which might breaks someone's skin, but he was usually good at adding values for skinners. I don't know if anyone is skinning for 3.4.8 at this time.

Martin
rkulagow
Offline

Member

Posts: 176
Threads: 12
Joined: Dec 2014
#9
2015-06-05, 01:41 AM
[I work for Schedules Direct]

The raw JSON includes an attribute if the episode is new:

{
"programID": "EP013078551038",
"airDateTime": "2015-06-05T18:00:00Z",
"duration": 3600,
"md5": "3ctkz+pFLq6PN4mBccM9/w",
"new": true,
"audioProperties": [
"stereo",
"cc"
],
"videoProperties": [
"hdtv"
],
"ratings": [
{
"body": "USA Parental Rating",
"code": "TV14"
}
]
},

So it's up to the application to do something with that. The internal scheduling logic may be using the "new" field, but the skinning process (what you're looking at) needs to take advantage of that boolean if it's going to put "New" somewhere in the EPG.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#10
2015-06-05, 04:39 AM
The main reason the Guide doesn't show any 'new' indicator in the guide grid by default is because a lot of the EPG sources don't carry this information, so all shows are assumed to be new. ie, too much useless clutter for a large percentage of users.

I could look to add some optional feature in the next release, which could be turned. What would you want shown though? some icon in the corner, different color text, or different color background on those shows, or something else?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Manually Adding FM Radio quek9 9 3,065 2024-11-19, 08:29 PM
Last Post: mvallevand
  EPG Schedules Direct jwalbrook 6 4,003 2020-12-07, 07:43 PM
Last Post: mvallevand
  adding a removed tuner? bisonfan 1 1,506 2020-09-12, 03:49 AM
Last Post: sub
  How to delete a Schedules Direct Lineup from Version 4? mwkurt 2 1,663 2020-07-19, 02:32 PM
Last Post: mwkurt
  Schedules Direct issues artmetz 4 1,945 2020-04-22, 12:13 AM
Last Post: artmetz
  Web URL Command Failure jcole998 2 1,183 2020-01-26, 06:27 PM
Last Post: jcole998
  Adding Analog Capture Device - unsure what to use... Len_Lekx 18 5,704 2020-01-19, 06:43 PM
Last Post: Len_Lekx
  EPG/Schedules Direct Epitaph 7 2,852 2019-12-12, 03:59 AM
Last Post: Epitaph
  cmd line update urls? pBS 0 1,198 2019-11-30, 11:05 AM
Last Post: pBS
  adding channels to iptv listing pmuraw 1 1,916 2019-11-14, 04:03 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode