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...
I'm using the latest beta version of WG++ and Windows 10
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>
Thank you.
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.
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...
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.
Mind explaining how you did?
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
I use the latest beta and Windows 10. I also live in Sweden.
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.
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?
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?
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?
I'm already using it. But it can't fetch the --> "
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?
Omg! It works. You're an angel!
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?
index_category.scrub {single|<div class=genre>||</div>|</div>} <--- no | in the end?
Is this correct?
Okay, I understand.
Thanks again!
My channels are complete for now. ^^
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. :)