You are here

Wrong program end date when a channel is not broadcasting

7 posts / 0 new
Last post
allank
Offline
Donator
Joined: 2 years
Last seen: 1 year
Wrong program end date when a channel is not broadcasting

Became a member donator about a week ago. But I have a question.

On one of the children channels it is not broadcasting in the evening and night. Which causes the last program of the day to stretch from program start to the next program starting the next day.

Example:

<programme start="20211220173000 +0000" stop="20211221040000 +0000" channel="DR Ramasjang">
<title lang="da">Myremobberen</title>
<desc lang="da">Den 10-årige dreng Lucas bliver drillet af de andre børn, og lader sine frustrationer gå ud over myrerne i sin baghave. Det vil myrerne ikke finde sig i, og derfor går de til modangreb og forvandler Lucas til myrestørrelse med en trylledrik. Han bliver ført for tuens domstol, hvor han bliver dømt til et liv blandt insekterne. Nu skal han leve og tænke som en myre. Det er svært, men hurtigt får han andre ting at bekymre sig om, blandt andet store insekter, tudser og en skadedyrsbekæmper.(n)</desc>
<date>2006</date>
<video>
<aspect>16:9</aspect>
</video>
</programme>

Translated to human readable and UTC+1

Start: 20.12.2021 18.30
End: 21.12.2021 05.00
Duration: 10.5 hours

According to https://tvtid.tv2.dk/ the program is only 1.5 hours.

Some times I want to record the last program because its a cartoon movie which the kids can finish seeing later.

Anyway to fix this?

WebGrab++.config.xml
<channel update="i" site="tvtid.tv2.dk" site_id="10153" xmltv_id="DR Ramasjang">DR Ramasjang</channel>

$ pacman -Qs wg++
local/wg++ 3.2-2
WebGrab+Plus is a freeware (license via donation) multi-site incremental XMLTV EPG grabber.

$ pacman -Qs mono
local/mono 6.12.0.122-1
Free implementation of the .NET platform including runtime and compiler

Blackbear199
Online
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 2 min

a short explaination...
when webgrab has a start and stop time it gets it correct(it would put a end time of 1.5 hrs after start time in your example above).
when webgrab has no stop time it used the start time of the next program as the stop time,this explains why your seeing the result your getting.
now...
this site does have a stop time but its not being used.
the reason for this is back when the ini was created the stop time of one show didnt match the start time of the next show(the stop time was later than the next show start time).
this make webgrab do a bunch of time correction to make the schedule make sense(yes webgrab can figure this out).
it makes a huge mess of you log file though filling it with a bunch of crap.
that being said you could ask mat8861 to enable the stop time again.
i checked the channel and from what i seen all the start/stop times are correct.
the original ini is from 2019.
maybe the site corrected this problem and the stop time can be used without causing issues.
just have to try it..

allank
Offline
Donator
Joined: 2 years
Last seen: 1 year

Thanks Blackbear199, it makes sense. Sorry for my ignorance, but where do I PM mat8861?

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 15 min

Had a look, the reason why it was disabled is because in some channels there are overlaps due to incorrect stop times, as you can see from log. Some other are ok....so attached version with stop

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 15 min

Blackbear has posted a new revision available on github, that solve the problem

allank
Offline
Donator
Joined: 2 years
Last seen: 1 year

Thanks, checked out revision d2c8d28. Removed guide.xml and ran wg++. However I still see long running programs.

<programme start="20211222184700 +0000" stop="20211223040000 +0000" channel="DR Ramasjang">
<title lang="da">Alvin og de frække jordegern</title>
<desc lang="da">Alvin, Simon og Theodore er måske nok rockstjerner, men de er også helt almindelige børn, der er nødt til at passe skolen og gå ud med skraldet! Sammen med pigerne fra The Chipettes gør de hver dag til en fest - og deres adoptivfar Dave sander hurtigt, at det kræver sin mand at have huset fyldt med syngende jordegern...(n)</desc>
<date>2017</date>
<icon src="http://746506.skal.fun/%3Ca%20href%3D"https://is-cdn.tv2i.dk/epg/ritzau/20211208/d5d3978e-82f2-4eab-98a3-ed801fd0a218?auto=format&amp;amp;crop=faces&amp;amp;fit=crop&amp;amp;ixjsv=1.1.3&amp;amp;q=82&amp;amp;w=620&amp;amp;h=349&quot;%20class=&quot;o-image%20lazyautosizes%20lazyloaded"">https://is-cdn.tv2i.dk/epg/ritzau/20211208/d5d3978e-82f2-4eab-98a3-ed801... />
<video>
<aspect>16:9</aspect>
</video>
</programme>

It should stop at "20211222190000 +0000"

$ head -n2 siteini.pack/Denmark/tvtid.tv2.dk.channels.xml
<?xml version="1.0" encoding="UTF-8"?>
<site generator-info-name="WebGrab+Plus/w MDB &amp; REX Postprocess -- version V3.2.2.4 -- Jan van Straaten" site="tvtid.tv2.dk">

Is there anything I can do to contribute to the code? Been working on open-source projects for more than 2 decades.

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 15 min

for me it's correct, it is as site shows the program. Guide.xml is UTC so add one hours and it match site tv schedule.
Why it should stop at 19.00?

Attachments: 
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