You are here

Ini files

About creating, modifying site INI files. (SiteIni Pack)

Question about scrubing

Forums: 

Hi,

I have a question lets say i want to scrub information from http://tvtid.tv2.dk/  So if I want to scrub the image from the site.

So in html the image looks like this:

<div class="o-article_body_full">
            <figure class="o-media">
  <picture class="o-image_wrap img-16x9">
    <!--[if IE 9]><video style="display: none;"><![endif]-->
    <source data-srcset="//imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D79&amp;t%5B1%5D=canvas%3Awidth%3D140%2Cheight%3D79%2Cmode%3Dcenter&amp;accessToken=794bf87cb17979eb8dde1b38304ba7c1753496e91a1e5df2b317d755a16dcdcf 140w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D113&amp;t%5B1%5D=canvas%3Awidth%3D200%2Cheight%3D113%2Cmode%3Dcenter&amp;accessToken=a76117f832a9e07785ccf7a6a15f5dfd855d39d778e187b98b509cec6052afe4 200w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D169&amp;t%5B1%5D=canvas%3Awidth%3D300%2Cheight%3D169%2Cmode%3Dcenter&amp;accessToken=0ba51c1692690d033527d6251984e2b7da747fd93326b09be6d411080258ee58 300w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D270&amp;t%5B1%5D=canvas%3Awidth%3D480%2Cheight%3D270%2Cmode%3Dcenter&amp;accessToken=8b26d3ce10971fe5d85d8566c52d1a64fdbaa65172143f7ed9c39c437d8f370e 480w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D349&amp;t%5B1%5D=canvas%3Awidth%3D620%2Cheight%3D349%2Cmode%3Dcenter&amp;accessToken=53a2cac26f7c17025fc8980c003de64ae0ded487a9a35e8ba2f151c58b733cae 620w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D529&amp;t%5B1%5D=canvas%3Awidth%3D940%2Cheight%3D529%2Cmode%3Dcenter&amp;accessToken=de8637dbb22fb5a96f2d9d464e4012c23620745b15eb2e751bff74853ede9267 940w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D698&amp;t%5B1%5D=canvas%3Awidth%3D1240%2Cheight%3D698%2Cmode%3Dcenter&amp;accessToken=db2b902a8af0960da2658b138521723bcb022fde89acd46753d89f32fb62cc26 1240w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D1058&amp;t%5B1%5D=canvas%3Awidth%3D1880%2Cheight%3D1058%2Cmode%3Dcenter&amp;accessToken=e4f83441f6bb60dfe59ad4435c5e6ac0a9ca05a453fb5fe77c4f73ac1079c9cb 1880w" sizes="620px" srcset="//imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D79&amp;t%5B1%5D=canvas%3Awidth%3D140%2Cheight%3D79%2Cmode%3Dcenter&amp;accessToken=794bf87cb17979eb8dde1b38304ba7c1753496e91a1e5df2b317d755a16dcdcf 140w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D113&amp;t%5B1%5D=canvas%3Awidth%3D200%2Cheight%3D113%2Cmode%3Dcenter&amp;accessToken=a76117f832a9e07785ccf7a6a15f5dfd855d39d778e187b98b509cec6052afe4 200w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D169&amp;t%5B1%5D=canvas%3Awidth%3D300%2Cheight%3D169%2Cmode%3Dcenter&amp;accessToken=0ba51c1692690d033527d6251984e2b7da747fd93326b09be6d411080258ee58 300w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D270&amp;t%5B1%5D=canvas%3Awidth%3D480%2Cheight%3D270%2Cmode%3Dcenter&amp;accessToken=8b26d3ce10971fe5d85d8566c52d1a64fdbaa65172143f7ed9c39c437d8f370e 480w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D349&amp;t%5B1%5D=canvas%3Awidth%3D620%2Cheight%3D349%2Cmode%3Dcenter&amp;accessToken=53a2cac26f7c17025fc8980c003de64ae0ded487a9a35e8ba2f151c58b733cae 620w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D529&amp;t%5B1%5D=canvas%3Awidth%3D940%2Cheight%3D529%2Cmode%3Dcenter&amp;accessToken=de8637dbb22fb5a96f2d9d464e4012c23620745b15eb2e751bff74853ede9267 940w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D698&amp;t%5B1%5D=canvas%3Awidth%3D1240%2Cheight%3D698%2Cmode%3Dcenter&amp;accessToken=db2b902a8af0960da2658b138521723bcb022fde89acd46753d89f32fb62cc26 1240w, //imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D1058&amp;t%5B1%5D=canvas%3Awidth%3D1880%2Cheight%3D1058%2Cmode%3Dcenter&amp;accessToken=e4f83441f6bb60dfe59ad4435c5e6ac0a9ca05a453fb5fe77c4f73ac1079c9cb 1880w">
    <!--[if IE 9]></video><![endif]-->
    <img src="http://imbo2.tv2.dk/users/tvtid/images/ebf57e4d-0f09-41b2-b3f3-c63dff3edff8.jpg?publicKey=drupal&amp;t%5B0%5D=maxSize%3Aheight%3D349&amp;t%5B1%5D=canvas%3Awidth%3D620%2Cheight%3D349%2Cmode%3Dcenter&amp;t%5B2%5D=compress%3Alevel%3D15&amp;accessToken=21173cf3fcedfbbfd7ee5b43c72fef2b2460c6c3d6634cfcb35097b6d018a4a7" class="o-image lazyautosizes lazyloaded" data-sizes="auto" alt="16x9" sizes="620px">
  </picture>
        </figure>
        </div>

My question is how do I know what to scrub from html to get picture shown as "showicon", how can i sort out the useful info?.

UK SKY and VIRGIN

Forums: 

Hi anybody else having issues with the grab in UK, mine started last night and cant get any epg been fine for a year.

[Warning ] no robots data found
[Warning ] skipped robots check
[Warning ] error downloading page: The request timed out (1sec)
[Warning ] Retry 1 of 2 times
[Warning ] error downloading page: The request timed out (2sec)
[Warning ] Retry 2 of 2 times
[        ] Job finished at 07/02/2018 19:56:06 done in 6s
[Critical] Unhandled Exception
[Critical] 
Array index is out of range.
[Critical] 
  at (wrapper stelemref) object:virt_stelemref_sealed_class (intptr,object)
  at WGconsole.SiteIni.UrlBuilder (WGconsole.ChannelToUpdate chan, Int32 day, Int32 pagenbr, Boolean subpage, WGconsole.Scrub scrub) [0x00000] in <filename unknown>:0 
  at WGconsole.Program.ConsoleApplication (System.String[] args) [0x00000] in <filename unknown>:0 
[Critical] For detailed info, see log file /home/wg++/WebGrab++.log.txt
[Critical] Execution stopped

 

Thanks 

tv.nu live information

Forums: 

Hi,

I'm having trouble to grab live information from the site tv.nu

I want it to look something like this:

<video>
      <aspect>Direktsändning</aspect>
    </video>

I added this line to the ini file:

videoaspect.scrub {single|\u003Cp class=\u0022indent-bottom--small\u0022\u003E|"Direkts\u00E4ndning"|\u003C\/p\u003E}

And this is from the site

<p class="indent-bottom--small">
            Direktsändning från C More-studion.
        </p>

I can't figure out what I'm doing wrong if someone can guide my in the right direction.

ini for timesofindia.indiatimes.com

Forums: 

any pls update ini for timesofindia.indiatimes.com .

Updated uk-sky.com.channels

Forums: 

I updated uk-sky.com.channels as it had not been updated for 2 years. I added the Missing Channels. Plus Added the Regional Channels and the Transmission Area. Ive Also Done A Breakdown of the Channel Groups, Cleaned up an &amp signs.

Should Be working.  In the next couple of day i will add the missing logos and rename channels to pull up the logos.  If any one wishes to sent me a logo template for photoshop that  would awesome thanks

 

Enrich program code in xml with content type

Forums: 

Hi,

I'm grabbing from cinemagia.ro the epg for Disney Junior channel. The information does not specify if the program is a tv show or a movie. Since all (almoust) all programs are thshows is there a way to enrich the progrmms with an aditionl information that can define the program as a tv show. Sample code below

Thanks

 <programme start="20180118105000 +0200" stop="20180118111500 +0200" channel="Disney Junior">
    <title lang="ro">Garda Felină</title>
    <desc lang="ro">Kion, fiul lui Simba, isi conduce prietenii care fac parte din Garda Leilor pentru a proteja Pride Lands(n)</desc>
  </programme>

Mts.rs

Forums: 

hi,can somebody tell what's wrong with mts.rs.ini here is my log

[ ]
[ ] WebGrab+Plus/w MDB & REX Postprocess -- version V2.1
[ ]
[ ] Jan van Straaten
[ ] Francis De Paemeleere
[ ]
[ ] thanks to Paul Weterings and all the contributing users
[ ] --------------------------------------------------------------------------------
[ ]
[ ] Job started at 14/01/2018 11:56:58
[ Debug ]
[ Debug ] Running on: Microsoft Windows NT 6.1.7601 Service Pack 1
[ Debug ] Environment: 4.0.30319.42000
[ Debug ]
[ Debug ] Loading timezone data
[ Debug ] Embedded timezones source: WGconsole.WG.Common.timezonesdata.txt
[ Debug ] Reading config file: C:\Users\Ivan\AppData\Local\WebGrab+Plus\WebGrab++.config.xml
[ Info ] found: C:\Users\Ivan\AppData\Local\WebGrab+Plus\siteini.pack\Serbia\mts.rs.ini -- Revision 01
[ Info ] input file C:\Users\Ivan\AppData\Local\WebGrab+Plus\guide.xml not found ... created a new one ...
[ Info ]
[ Info ]
[ Info ] i=index .=same c=change g=gab r=replace n=new
[ Info ]
[ Info ]
[ Info ] Group (0) :
[ Info ] update requested for - 1 - out of - 1 - channels for 1 day(s)
[ Debug ]
[ Info ] ( 1/1 ) MTS.RS -- chan. (xmltv_id=RTS1) -- mode Force
[Warning ] no robots data found
[Warning ] skipped robots check
[Warning ] error downloading page: The operation has timed out (5sec)
[Warning ] Retry 1 of 4 times
[Warning ] error downloading page: The operation has timed out (10sec)
[Warning ] Retry 2 of 4 times

Problems with replacing back slash with forward slash

Forums: 

Hi, I apologize for asking a stupid question, but say for example if I have this temp value to store the URL:

index_temp_1.modify{set|"http://something.com/v\attachfiles_3422\3sthumdai\44dsdsd.jpg"}

and I want to change the backslash to forward slash, how can I do it? I've tried 

index_temp_1.modify{replace|\|/}

but the debugger refuses to acknowledge there are 2 expressions. I guess it got confused between \ and | ?

I also tried {replace|\\|/} but again, didn't seem to do the trick. 

Pages

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl