You are here

SubPage question

8 posts / 0 new
Last post
izi
Offline
Donator
Joined: 7 years
Last seen: 5 months
SubPage question

Hi,

The tvguide site has sub pages per channel based on the number of shows.

The siteini has the subpage definition subpage.format {list(format=D1 step=1 count=6)|1}

This creates pageIndex=1 on first url line and pageIndex=2 on second line until pageIndex=6.

However, sometimes a channels has more shorter showes that goes into the 7 subpage.

If I change the subpage to count=7 this creates a lot of overhead.

Is there a way to make it dynamic based on the number that the website show at the bottom of the sub page?

When the query is for 1 day from time 00:00 to 23:59 the website show the first subpage for the channel with a line of numbers at the bottom with the actual subpages that are for that day. A channel with just 15 showes will have just 1 2 numbers for subpage. See example.

izi
Offline
Donator
Joined: 7 years
Last seen: 5 months

I found this code on the page: (shown as image because I couldnt copy/paste)

 

izi
Offline
Donator
Joined: 7 years
Last seen: 5 months

yes

you are amazing!

izi
Offline
Donator
Joined: 7 years
Last seen: 5 months

Hi again,

I noticed in the log these warnings after each channel:

[  Debug ] subpage string composer for 'count':
[  Debug ] WARNING : cannot parse  to an integer value

 

Is it a concern?

izi
Offline
Donator
Joined: 7 years
Last seen: 5 months

will it help you if I attach here the code snippet from the website?

izi
Offline
Donator
Joined: 7 years
Last seen: 5 months

But all data is grabbed, it gets this warning on the last entry per subpage

izi
Offline
Donator
Joined: 7 years
Last seen: 5 months

Do you mean to say that the siteini you are using gives you no data?

izi
Offline
Donator
Joined: 7 years
Last seen: 5 months

I thought so but asked just in case you have a solution.

 

Thank you 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