You are here

Remove Shows with zero life time

9 posts / 0 new
Last post
karimf
Offline
Joined: 9 years
Last seen: 7 years
Remove Shows with zero life time

Hi all,

I was wondering how I could remove shows from the xmltv file that have start time=stop time.

These are errors in the site I'm grabing and I need to remove them because they conflict with the rest of the shows.

Thanks in advance.

WGMaker
Offline
WGMaker's picture
WG++ Team memberDonator
Joined: 11 years
Last seen: 4 hours
Is the support helpful?
support us

Basically these shouldn't occur unless they also occur on the tvguide website. If they do not occur there there is a shortcoming in the siteini. If that is the case please tell us which siteini this is.
There is also a solution for it in the config, skip, see
http://www.webgrabplus.com/documentation/configuration/webgrabconfigxml

<skip>5,1</skip>

remove shows that are longer then 5 hours and shorter then 1 minute​

Jan

karimf
Offline
Joined: 9 years
Last seen: 7 years

Hi Jan,

Thanks for your reply.

The site I'm grabbing is a bit of a mess. The issue is on the site as you see 2 shows with same start time on the webpage itself and it happens with more than 2 shows (it happens in couples...many "2 shows" sharing the same start time).

That's why I'm going to use the skip function like you mentioned.

Thanks again for your help.

karimf
Offline
Joined: 9 years
Last seen: 7 years

Hi Jan,

The <skip> function in the config.xml works fine. Unfortunately it conflicts with another site I'm using: canada.com (which has no start and end times as you know) so it removes all shows from canada.com

Is there another way using the ini file to remove shows with zero length ?

Thanks in advance for your continuous support.

All the best.

 

 

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 11 years
Last seen: 1 week
Is the support helpful?
support us

I can think about one way, but it involves some tricks.

Do you have the siteini?

karimf
Offline
Joined: 9 years
Last seen: 7 years

Hi Francis,

thanks for offering to help.

Here is the siteini, not a great ini file, but that's what I'm capable of :) (maybe I'm getting old) At least it is working :)

You'll find it includes your lines you sent me earlier this morning about scrubing showicon (they worked perfectly)

again, thanks for offering to help Francis.

Attachments: 
karimf
Offline
Joined: 9 years
Last seen: 7 years

Forgot to mention that the problem is with 1 channel only:

http://www.niletc.tv/Schedule/5/Cinema

Thanks a lot.

WGMaker
Offline
WGMaker's picture
WG++ Team memberDonator
Joined: 11 years
Last seen: 4 hours
Is the support helpful?
support us
karimf wrote:

Hi Jan,

The <skip> function in the config.xml works fine. Unfortunately it conflicts with another site I'm using: canada.com (which has no start and end times as you know) so it removes all shows from canada.com​

Hi, I checked canada.com and that worked fine here!! It properly grabs the times from the detail page. Do you have a logfile and a config?

Jan

karimf
Offline
Joined: 9 years
Last seen: 7 years

Hi Jan,

Thanks for your reply.

Canada.com (using your guide "howtocustomise") is working fine. But when I apply the <skip>10,1</skip> all shows are considered skipped as shorter than 1 minute.

The log and the config are attached also the ini I'm using after applying the steps you mentioned in the guide.

I hope you could point me out to the error.

Thanks again for your help.

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