INTERACT FORUM

Windows => Television => Topic started by: tzr916 on May 12, 2020, 01:36:51 pm

Title: 26.0.80 TitanTV schedule a recording
Post by: tzr916 on May 12, 2020, 01:36:51 pm
I'm not able to get this working. I'm clicking the RECORD button on TitanTV, it downloads program.tvpi file, I set that file type to open with MC. When I double click the .tvpi file MC does in fact open, but when I go to the To Be Recorded list there is no sign of that recording being scheduled.

Example .tvpi file:
<tv-program-info version="1.0">
<program>
<station>KCRA-DT</station>
<tv-mode>digital_cable</tv-mode>
<program-title>KCRA 3 News at 6:30pm</program-title>
<start-date>20200513</start-date>
<start-time>01:30</start-time>
<end-date>20200513</end-date>
<end-time>02:00</end-time>
<duration>00:30</duration>
<rf-channel>703</rf-channel>
</program>
</tv-program-info>

I've tried it on the Server machine and a client. Not sure if doing if from a client is supposed to work or not.
Title: Re: 26.0.80 TitanTV schedule a recording
Post by: RoderickGI on May 12, 2020, 04:34:45 pm
This is all I know. I think you have to import the file, not open it.

Here is how it works:

1. Make a folder on your computer.
2. Set MC to auto import Playlist > TitanTV Program Info (tvpi, tvvi) from the folder.
3. You must already have respective TV channels setup in MC.
4. Go to TitanTV web site.  Setup your own TV lineup and display it.
5. Choose a program by click the guide cell.  If it is a currently airing program, a "Play" icon will be displayed, along with a "Record" icon and some other icons, in a pop-up.  If the program is a future program, the "Play" icon will be missing.
6. Click either "Play" or "Record" icon.  You will be prompted to save a file on your computer.  The default file name is "Program.tvpi" for recording, or "Program.tvvi" for viewing live.  Save the file in the folder you created in step 1 and had MC watching in step 2.
7. Once the file is saved, MC will pick it up and use the info in the file to either run TV tuner for viewing, or schedule to record the program. Once MC finishes using the file, it will delete it.
Title: Re: 26.0.80 TitanTV schedule a recording
Post by: Yaobing on May 13, 2020, 08:11:49 am
I meant to give some instructions here.  Thanks RoderickGI for doing it for me.
Title: Re: 26.0.80 TitanTV schedule a recording
Post by: tzr916 on May 13, 2020, 12:12:39 pm
Ok, got it working. But there's a major flaw, the content of ALL the tvpi files downloaded from TitanTV are not correct! Just stumbled on it during testing. Click the record button, tvpi files download, import into MC and nothing happens. So I opened the tvpi files with notepad and ALL the start/end times and start/end dates are wrong! They are ALL shifted 7 hours into the future. If I manually edit the start/end times/dates, save, re-import into MC and the recording does get scheduled.

I know this is not a MC issue, but can anyone explain why ALL of TitanTv's tvpi files are wrong? Shifted 7 hours ahead?
Title: Re: 26.0.80 TitanTV schedule a recording
Post by: Yaobing on May 13, 2020, 12:34:53 pm
When I tested TitanTV data for my locality, the time I got was UTC time.  So I make a conversion in MC to local time.  The result is correct for me.  The data from TitanTV may be different from my existing data (from Perc Data), but not in any significant way.  For example, I often see Description gets update to new text.
Title: Re: 26.0.80 TitanTV schedule a recording
Post by: tzr916 on May 13, 2020, 12:37:52 pm
When I tested TitanTV data for my locality, the time I got was UTC time.  So I make a conversion in MC to local time....
Ok, so how exactly do you make the "conversion in MC"?
Title: Re: 26.0.80 TitanTV schedule a recording
Post by: Yaobing on May 13, 2020, 12:43:44 pm
We just shift from UTC to local time by subtracting/adding a certain number, determined by your local time zone and whether day-light-saving is in effect.

Do you see the program correctly listed on TitanTV site, as compared to your guide data in MC?  If so, and when you try scheduling to record a show, do you get the correct time-slot scheduled?
Title: Re: 26.0.80 TitanTV schedule a recording
Post by: tzr916 on May 13, 2020, 12:57:44 pm
Yes, the titantv website guide matches the MC guide exactly. It's just the tvpi files that are shifted 7 hours ahead.

I was thinking you had some sneaky way to automatically correct the time difference inside the tvpi files during the import process?

EDIT: No the program does not get scheduled at all in MC unless I manually edit the tvpi contents, presumably due to the wrong time/date.
Title: Re: 26.0.80 TitanTV schedule a recording
Post by: Yaobing on May 13, 2020, 01:09:54 pm
Yes, the titantv website guide matches the MC guide exactly. It's just the tvpi files that are shifted 7 hours ahead.

So the .tvpi file contains UTC time, as I have observed.  That is fine.

Quote
I was thinking you had some sneaky way to automatically correct the time difference inside the tvpi files during the import process?
Nothing sneaky.  We read the tvpi file and automatically shift the time back to your local time.

Quote
EDIT: No the program does not get scheduled at all in MC unless I manually edit the tvpi contents, presumably due to the wrong time/date.

That does not add up.   ?
Title: Re: 26.0.80 TitanTV schedule a recording
Post by: tzr916 on May 13, 2020, 01:27:31 pm
Ok, so MC is doing something behind the scenes with the tvpi to get from UTC to local. I'm not sure why my first few imports didn't work, but they do seem to be working now. All is good. Thanks!
Title: Re: 26.0.80 TitanTV schedule a recording
Post by: Yaobing on May 13, 2020, 02:22:49 pm
Great!  Thanks for testing.