You are here

Help with creating an ini for getTV US

18 posts / 0 new
Last post
Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year
Help with creating an ini for getTV US

Hello,

I have been trying to figure out how to index the show for the last five and a half hour and I'm not getting any wiser. I'm not the one to give up but I just want to move on and figure out the rest.

I came here hoping somone could help me get started with at least let me split the show into indexes, or however it works.

This is how far I've come, haha. I can't get index_showsplit to separate the various shows... frown

I'm using the latest beta version of WG++ and Windows 10

 

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

I have an issue getting the "now" listing with regular block search.
This the one you showed me.
index_showsplit.scrub {multi|<li class=listing>||</li>|</li>}

But I'd also like to include 
<li class=listing now>

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

Thank you. smiley
It can be hard to see that this small change can have another outcome.

Also, the manual/documentation is so comprehensive that it's overwhelming.
So it's nice to have someone tutor or guide you in the right direction. yes

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

index_start.scrub {single(debug)(pattern=”yyyyMMddTHHmmss”)|<span class="_start reminder"|||</span>|}

<span class="_start reminder" data-utc-start="20170927T040000Z" data-utc-end="20170927T050000Z">2017/09/27 00:00:00</span>

How can I scrub just the data-utc-start? I've been trying with ES and EE but nothing sticks...

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

Wow, that was fast. Block separators is supposed to be user friendly, haha.
But I can't understand how you can just look at a string and figure out how to scrub start and stop. surprise
Mind explaining how you did? blush

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

Very nice!
However, the time and date doesn't match my computers time and date. I don't know why that matters. All want is the  <programme start="20170927000000" to update to reflect that but I get this error instead.

[  Debug ] Apply matching patterns to timestring,
[  Debug ] input       : 20170927T040000
[  Debug ] pattern     : yyyyMMddTHHmmss
[  Debug ] pattern has date component
[  Debug ] result      : 9/27/2017 4:00 AM
[Error   ] Unable to update channel getTV
[Critical] Generic syntax exception:
[Critical]    message: 
[Error   ] Current culture: en-GB
[Error   ] time parsing error : Strängen identifierades inte som en giltig DateTime-sträng.
[Error   ] startdatetime time scrubbed : 9/27/2017 4:00 AM
[Error   ] computer date/time format: 27/09/2017 23:52:36

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

I use the latest beta and Windows 10. I also live in Sweden.

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

https://www.get.tv/schedule

Here it says Eastern time.

But why should MY time matter? I only want to put the starttime in the guide.xml

Edit:
I mean, for example, I can use WG with tv.com with UTC-08:00 without issue. 

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

This is from tv.com.ini

urldate.format {datestring|yyyy-MM-dd}
url_index{url|http://www.XXXX.com/listings/singlestation/?start=##TIMESTAMP##&station=|channel|}

scope.range {(urlindex)|end}
index_variable_element.modify {calculate(format=date,unix)|'urldate'}
url_index.modify {replace|##TIMESTAMP##|'index_variable_element'}
end_scope

Is there something I can use for my get.tv.ini?

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

Okay, so how come I can grab epg from cookingchannel.com without issue and I can't see anything different in the code?

Here is the datestring that is fetched

<div data-time="2017-09-27T12:00:00Z" class="o-ProgramSchedule__m-EpisodeCard m-EpisodeCard show-more"

from the ini

timezone=Zulu|maxdays=7|cultureinfo=en-GB

index_start.scrub {single|time|"|"|class}

 

here is the time from get.tv

<span class="_start reminder" data-utc-start="20170927T040000Z" data-utc-end="20170927T050000Z">

[Error   ] startdatetime time scrubbed : 20170927T040000
[Error   ] computer date/time format: 28/09/2017 00:41:05

what is the difference that make it change?
here in sweden we use this format yyyy-MM-dd

I can't see why it needs to be converted?

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

I found these types and I'm only fetching listing. I don't know how to match all of them...

<li class=listing>
<li class="listing now">
<li class="listing primetime">

Mayber I can do it with regex but then I can't fetch title, start, stop, desc because they all just block separators. I would need to use regex on ALL that I want to match with, isn't that correct? frown

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

I'm already using it. But it can't fetch the --> "

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

Yes, it is wierd. Only listing has no quotes...
That is why I thought it was wierd that I didn't catch all the shows for the day.

I can't use regex just like that, it will only fetch "listing now" and "listing primetime". Regular <li class=listing has no quotes.

Is it possible to fetch only listing (no quotes) and then fetch "listing now/primetime" and then merge it somehow?

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

Omg! It works. You're an angel! angel

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

Okay, so here is a finished ini file that finally works, haha!

I know you did most of the work and I have learned some of it, but for that I thank you!

Would you care to comment the things I did myself in this file?

If everything seem okay, is it possible to upload it on to the epg channels page under USA? smiley

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

index_category.scrub {single|<div class=genre>||</div>|</div>} <--- no | in the end?

Is this correct?

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

Okay, I understand.

Thanks again!

My channels are complete for now. ^^

Moodilic
Offline
Has donated long time ago
Joined: 6 years
Last seen: 1 year

Huh.. Wow. That was a twist in the end, haha.

Oh well, at least I learned something in the process. If no ini exist for any particular channel I can almost always create one. So that's good to know. :)

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl