You are here

ncplus.pl ini request

19 posts / 0 new
Last post
en0x
Offline
Joined: 9 years
Last seen: 8 years
ncplus.pl ini request

Hi,

Would anyone help me to create an ini file for http://ncplus.pl/program-tv/motowizja ? this is polish. I never created ini but would like some help at least on the basic scrapper and then I will manage to add more stuff to it. Thanks

1NSdbZVbpZDX
Offline
Joined: 9 years
Last seen: 6 years

there:

not only motowizja but the whole site & channels listed

cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 2 months

Hi. Am try use this but have eroor. Any idea?

 

[        ]
[        ]             WebGrab+Plus/w MDB & REX Postprocess -- version V1.56.15            
[        ]
[        ]                                 Jan van Straaten                                
[        ]                              Francis De Paemeleere                              
[        ]
[        ]             thanks to Paul Weterings and all the contributing users             
[        ] --------------------------------------------------------------------------------
[        ]
[        ] Job started at 21/03/2016 11:19:56
[  Debug ]
[  Debug ] Running  on: Microsoft Windows NT 6.1.7601 Service Pack 1
[  Debug ] Environment: 4.0.30319.34209
[  Debug ]
[  Debug ] Reading config file: C:\ProgramData\ServerCare\WebGrab\WebGrab++.config.xml
[  Debug ] Loading timezone data
[  Debug ] Embedded timezones source: WGconsole.WG.Common.timezonesdata.txt
[  Debug ] timezone=UTC+01:00 mapped with timezone_id "Europe/Paris"
[  Debug ] found: C:\ProgramData\ServerCare\WebGrab\ncplus.pl.ini -- Revision 0
[  Debug ] xmltv input file - C:\ProgramData\ServerCare\WebGrab\Guide.xml - found
[  Debug ] 0 superfluous shows removed
[  Info  ]
[  Info  ] update requested for - 1 - out of - 1 - channels for 7 day(s)
[  Info  ] update mode - set per individual channel
[  Info  ]
[  Info  ]
[  Info  ]       i=index  .=same  c=change  g=gab  r=replace  n=new
[  Info  ]
[  Debug ]
[  Info  ] (   1/1   ) NCPLUS.PL -- chan. (xmltv_id=4FUN.TV) -- mode incremental
[  Warn  ]
Nieprawidłowy specyfikator formatu.
[  Warn  ] timepattern    doesnot fit to
[  Warn  ] time scrubbed 12:00
[  Error ] Unable to update channel 4FUN.TV
[Critical] Generic syntax exception:
[Critical]    message:
[  Error ] Current culture: en-GB
[  Error ] time parsing error : Ciąg nie został rozpoznany jako prawidłowy element DateTime.
[  Error ] index_date time scrubbed :
[  Error ] computer date/time format: 21/03/2016 11:19:59
[  Info  ] Existing guide data restored!
[  Debug ]
[  Debug ] 0 shows in 1 channels
[  Debug ] 0 updated shows
[  Debug ] 0 new shows added
[  Info  ]
[  Info  ]
[        ] Job finished at 21/03/2016 11:19:59 done in 3s
[  Debug ] statistics upload error: Serwer zdalny zwrócił błąd: (500) Wewnętrzny błąd serwera.

 

cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 2 months

Thanks, Is working now.

cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 2 months

Possible to add

index_category.scrub

rating.scrub

starrating.scrub

 

 

I tried this but it does not work 

index_category.scrub {regex||<span class="cat-container">(.*?)</span>||}

rating.scrub {single|<li class="info-item age">|<img class="tv-icon" src="https://webgrabplus.com/s/programmeTv/classic/ico/%7C" alt|</span>}
rating.modify {replace(~ "age-0-")|'rating'|wszystkie }
rating.modify {replace(~ "age-1-")|'rating'|16+}
rating.modify {replace(~ "age-2-")|'rating'|++O?}
rating.modify {replace(~ "age-3-")|'rating'|7+}
rating.modify {replace(~ "age-4-")|'rating'|12+}

starrating.scrub {single|<div class="info-item rating">|alt="ocena |"/>|</div>}
starrating.modify {addend(not "")|/5}

 

cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 2 months

Category is here, red color.

 

 

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

And above that, the category you point to is not a show category, but a channel category. And that is not supported by xmltv.

cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 2 months

Ohh, ok. Tanks.

cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 2 months

When I start downloading epg at 13:00, does not receive data between 00:00 - 13:00

Attachments: 
1NSdbZVbpZDX
Offline
Joined: 9 years
Last seen: 6 years

disable *index_stop.scrub cheeky

cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 2 months

Stil this same.

1NSdbZVbpZDX
Offline
Joined: 9 years
Last seen: 6 years

here is a new approach

kind of slow from here tho' but at least grabs whole day shows:

*request: ini needs regex to allow only alphanumeric & unicode chars (anyone inspired?)

cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 2 months

Thanks. Is working.

But not all chanel from your list.

How you get site_id="790"

    <channel update="i" site="ncplus.pl" site_id="790" xmltv_id="Polsat HD">Polsat HD</channel>

What must change to wkrin this site_id="polsat-hd"?

    <channel update="i" site="ncplus.pl" site_id="polsat-hd" xmltv_id="Polsat HD">Polsat HD</channel>

1NSdbZVbpZDX
Offline
Joined: 9 years
Last seen: 6 years

just use NEW channel list with NEW ini, don't mix 'em

cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 2 months

Ok. Thanks.

Last ask. Time is forward 2 hours from epg.

1NSdbZVbpZDX
Offline
Joined: 9 years
Last seen: 6 years

adjust timezone in ini to your region requirements i.e.

change (UTC+01:00 to UTC-01:00) I guess...

cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 2 months

Try change UTC to other, but stil this same.

All time is difrent 2 hour.

cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 2 months

Hi. AM have problem. Try grabbing

this channel

<channel update="i" site="ncplus.pl" site_id="1041" xmltv_id="Eleven Extra">Eleven Extra</channel>

 

Frist day epg show ok, but next day show epg from other chennel. TVP 1 HD

This file have epg from this 2 channel.

epg.xml

Attachments: 
cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 2 months

Thank you very much. Now it works correctly.

 

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