You are here

Sportsnet ini

5 posts / 0 new
Last post
DannyJames
Offline
DannyJames's picture
Joined: 8 years
Last seen: 6 years
Sportsnet ini

Does Anybody Know Of A Working .ini File For The Following:

  <channel site="tvpassport.com" xmltv_id="Sportsnet Ontario" site_id="sportsnet-ontario/254" update="i">Sportsnet Ontario</channel>
  <channel site="tvpassport.com" xmltv_id="Sportsnet One" site_id="sportsnet-one/8249" update="i">Sportsnet One</channel>
  <channel site="tvpassport.com" xmltv_id="Sportsnet 360" site_id="sportsnet-360/336" update="i">Sportsnet 360</channel>
  <channel site="tvpassport.com" xmltv_id="Sportsnet World" site_id="sportsnet-world/4442" update="i">Sportsnet World</channel>

The tvpassport.com isn't working "no shows in index page!".

 

 

DannyJames
Offline
DannyJames's picture
Joined: 8 years
Last seen: 6 years

I Can't Seem To Get It To Work I Just Get No Shows In Index Page.

Below Is My .ini File

**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: tvpassport.com
* @MinSWversion: 1.1.1/56.27
* @Revision 0 - [18/07/2016] Blackbear199
*  - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=tvpassport.com|timezone=America/New_York|maxdays=4|cultureinfo=en-US|charset=UTF-8|titlematchfactor=90}
site {ratingsystem=US|episodesystem=onscreen}
url_index{url|http://www.tvpassport.com/tv-listings/stations/|channel|/|urldate|}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {datestring|yyyy-MM-dd}
*
index_showsplit.scrub {multi|<div id="itemheader||</div></div></div>|</div></div></div>}
*index_urlshow {url||<a href="https://webgrabplus.com/%7C%7C">|">} *not used
*index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
index_urlchannellogo {url(scope=datelogo)||<div class="col-xs-12 col-sm-2 stn-logo">|src="|"|</div>}
*
scope.range{(indexshowdetails)|end}
index_start.scrub {single|data-listDateTime="||"|"}
index_title.scrub {single|data-showName="||"|"}
index_subtitle.scrub {single|data-episodeTitle="||"|"}
*
index_temp_1.scrub {single|data-guest="||"|"}
index_description.scrub {single|data-description="||"|"}
index_description.modify {addend('index_temp_1' not "")|Guests: 'index_temp_1'..}
index_category.scrub {single(separator=", ""/")|data-showType="||"|"}
index_starrating.scrub {single|data-starRating="||"|"}
index_rating.scrub {single|data-rating="||"|"}
*
index_director.scrub {single(separator=", ")|data-director="||"|"}
index_actor.scrub {single(separator=", ")|data-cast="||"|"}
index_productiondate.scrub {single|data-year="||"|"}
*
index_starrating.modify {clear("0")}
index_title.modify {set("Movie")|'index_subtitle'}
index_subtitle.modify {clear('index_title')}
end_scope

**  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _
**      #####  PROVIDER FILE CREATION (only to create the xxx-channel.xml file)
**
*
* enter you zip/postal code(no spaces) in the site_id="xxxxx",use this line in you webgrab++config.xml
* to create a provider list.
* example...
* <channel update="i" site="tvpassport.com" site_id="10001" xmltv_id="dummy">dummy</channel>
* <channel update="i" site="tvpassport.com" site_id="L9H1N3" xmltv_id="dummy">dummy</channel>
*
** @auto_xml_channel_start
*url_index {url|http://www.tvpassport.com/index.php/lineups}
*url_index.headers {accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8}
*url_index.headers {contenttype=application/x-www-form-urlencoded}
*url_index.headers {postdata=postalCode='index_variable_element'}
*
*index_variable_element.modify {set(scope=urlindex)|'config_site_id'}
*index_site_id.scrub {multi|<div class="col-xs-12  lineup-results ">|<a href='http://www.tvpassport.com/lineups/set/|?lineupname|</div>}
*index_site_channel.scrub {multi|<div class="col-xs-12  lineup-results ">|&tz='>|</a>|</div>}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
** @auto_xml_channel_end
*---------------------------------------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------------------------------------
**  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _
**      #####  CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
* use a provider line from the file created above
*
** @auto_xml_channel_start
*url_index {url|http://www.tvpassport.com/lineups/set/|channel|?lineupname=##provider##&tz=}
*
*scope.range{(urlindex)|end}
*index_temp_9.modify {set|'config_xmltv_id'}
*index_temp_9.modify {cleanup(style=urlencode)}
*url_index.modify {replace|##provider##|'index_temp_9'}
*end_scope
*
*index_site_id.scrub {multi|<div class="grid_section_gap">|href="http://www.tvpassport.com/tv-listings/stations/|">|</div><div id = "bottom">}
*index_site_channel.scrub {multi|<div class="grid_section_gap">|data-stationName="|"|</div><div id = "bottom">}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
** @auto_xml_channel_end

 

How Do I Create The Channel List? I Usually Do It By Removing The * From The .ini Which I Have Tried But Doesn't Work Still.

"* use a provider line from the file created above" Do I Remove The * From This Line As I Thought You Remove The First * Of Each Line.

Blackbear199 wrote:

they all work fine,you have something else wrong..

Group (0) :
update requested for - 4 - out of - 4 - channels for 1 day(s)
(   1/4   ) TVPASSPORT.COM -- chan. (xmltv_id=Sportsnet Ontario) -- mode Force
innnnnnnnnnnnnnnnnnnnnnnn

(   2/4   ) TVPASSPORT.COM -- chan. (xmltv_id=Sportsnet One) -- mode Force
innnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn

(   3/4   ) TVPASSPORT.COM -- chan. (xmltv_id=Sportsnet 360) -- mode Force
innnnnnnnnnnnnnnnnnnn

(   4/4   ) TVPASSPORT.COM -- chan. (xmltv_id=Sportsnet World) -- mode Force
innnnnnnnnnnnnnnnnnnnnnnnnnnn

 

Job finished at 21/11/2016 18:34:56 done in 4s

 

DannyJames
Offline
DannyJames's picture
Joined: 8 years
Last seen: 6 years

 

This Is What I Get When Running For One Channel:

<channel site="tvpassport.com" xmltv_id="Sportsnet Ontario" site_id="sportsnet-ontario/254" update="i">Sportsnet Ontario</channel>

DannyJames
Offline
DannyJames's picture
Joined: 8 years
Last seen: 6 years

Seems To Be Working By Changing The Following:

From:
<user-agent>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; yie9)</user-agent>

To:
<user-agent>Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0</user-agent>

 

No Changes To The .ini File And It Now Pulls The Channels.

DannyJames
Offline
DannyJames's picture
Joined: 8 years
Last seen: 6 years

The Last Request, If I Wanted The Data Returned To Sync With My Timezone (UK) How Would I Do That?

Would I Change The Line:

site {url=tvpassport.com|timezone=America/New_York|maxdays=4|cultureinfo=en-US|charset=UTF-8|titlematchfactor=90}

to

site {url=tvpassport.com|timezone=Europe/London|maxdays=4|cultureinfo=en-US|charset=UTF-8|titlematchfactor=90}

 

or would this not work?
 

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