Advertisement
ruorbe

.ini

Jan 3rd, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. site {url=plus.es|timezone=Europe/Madrid|maxdays=7|cultureinfo=es-ES|charset=UTF-8|titlematchfactor=70|ratingsystem=ES}
  2. site {keepindexpage|episodesystem=onscreen|allowlastpageoverflow}
  3. url_index{url|http://www.movistarplus.es/guia/|urldate|/?v=json&verticalScroll=true&isMobile=false}
  4. url_index.headers {customheader=Accept-Encoding=gzip,deflate}
  5. urldate.format {datestring|yyyy-MM-dd}
  6. *
  7. index_variable_element.modify {set|"'config_site_id'-CODE"}
  8. index_showsplit.scrub {multi|'index_variable_element'|{"ESTRENO"|}|}]}}
  9. scope.range{(splitindex)|end}
  10. index_temp_1.modify {substring(type=regex)|'index_showsplit' "\"HORA_INICIO\":\"(\d{2}:\d{2})\""}
  11. index_temp_1.modify {cleanup(removeduplicates span=1 link="index_showsplit")}
  12. end_scope
  13. *
  14. scope.range{(indexshowdetails)|end}
  15. index_start.scrub {single|HORA_INICIO":"||"|"}
  16. *index_stop.scrub {single|HORA_FIN":"||"|"}
  17. index_title.scrub {single(separator=":""(" include=first)|"TITULO":"||"|"}
  18. index_title.modify {cleanup(style=unidecode)}
  19. index_category.scrub {single|GENERO|":"|"}
  20. index_category.modify {cleanup}
  21. index_category.modify {remove|\}
  22. *
  23. index_urlshow {url||"URL":"||"}
  24. index_urlshow.modify {remove|\}
  25. index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
  26. end_scope
  27. *
  28. scope.range{(showdetails)|end}    
  29. title.modify {addstart|'index_title'}
  30. titleoriginal.scrub {single|<h1 itemprop="name" class="h-epsilon">|(|)|</h1>}
  31. titleoriginal.modify {remove|)}
  32. subtitle.scrub {single(separator=":" include=last)|<div class="title-image">|<h1 class="h-epsilon">|</h1>|</div>}
  33. subtitle.modify {clear(~ "Episodio")}
  34. subtitle.modify {remove(type=regex)|\(.+?\)}
  35. subtitle.modify {cleanup(style=unidecode)}
  36. subtitle.modify {clear('index_title')}
  37. *
  38. * episodesystem=onscreen disable episodesystem=xmltv_ns below
  39. * ------------------------------------------------------------
  40. temp_1.scrub {single|<div class="title-image">|TEMPORADA|</|</h1>}
  41. episode.scrub {single(separator=":" include=first)|<div class="title-image">|<h1 class="h-epsilon">|</h1>}
  42. episode.modify {clear(~ 'title')}
  43. episode.modify {addstart('temp_1' not "")|Temporada 'temp_1' }
  44. episode.modify {cleanup}
  45. * ------------------------------------------------------------
  46. * episodesystem=xmltv_ns ***change it above in site{....} disable episodesystem=onscreen above
  47. * ------------------------------------------------------------
  48. *temp_1.scrub {single|<div class="title-image">|TEMPORADA|</|</h1>}
  49. *temp_1.modify {cleanup}
  50. *temp_3.modify {addend ('temp_1' not "")|'temp_1'}
  51. *temp_3.modify {calculate(not~"/" format=F0)|1 -}
  52. *temp_2.scrub {single(separator=":" include=first)|<div class="title-image">|Episodio|</h1>|</div>}
  53. *temp_2.modify {cleanup}
  54. *temp_2.modify {calculate(not="" format=F0)|1 -}
  55. *episode.modify {clear}
  56. *episode.modify {addend('temp_3' >= "0")|'temp_3'}
  57. *episode.modify {addend|.}
  58. *episode.modify {addend|'temp_2'}
  59. *episode.modify {addend|.}
  60. *episode.modify {clear(="..")}
  61. * ------------------------------------------------------------
  62. description.scrub {multi|<div itemprop="description"|<p>|</p>|</div>}
  63. description.modify {cleanup}
  64. *category.scrub {single(separator=" / ")|<p itemprop="genre">||</p>|</p>}
  65. director.scrub {single|Director</h3>|<span  itemprop="name" >|</span>|</p>}|<h3}
  66. actor.scrub {multi|<h3 class="heading">Reparto</h3>|<span  itemprop="name" >|</span>|</div>}
  67. productiondate.scrub {single|<p  itemprop="datePublished"|content="|"|  >}
  68. showicon.scrub {single|<div class="cover">|<img src="|"| alt}
  69. ratingicon.scrub {url|http://www.plus.es|Calificación</h3><img src="||"|"}
  70. rating.scrub {single|Calificación</h3><img src="/assets/images/icons/svg|/|"| }
  71. rating.modify {remove|.svg}
  72. rating.modify {cleanup(style=upper)}
  73. *
  74. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  75. * to add SxEx: [subtitle] back to title or subtitle remove the * from the beginning of the lines below
  76. * this will give a warning that the index_title is different from showdetails title in
  77. * webgrab++.log,they can be ignored.
  78. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  79. *temp_3.modify {addstart('episode' not "")|'episode'}
  80. *temp_3.modify {replace(not "")|Temporada |S} *replace S with T for TxEx format
  81. *temp_3.modify {replace(not "")| Episodio |E}
  82. *temp_3.modify {addend('subtitle' not "")|: 'subtitle'}
  83. *title.modify {addend('temp_3' not "")| 'temp_3'} *adds to title
  84. *subtitle.modify {clear} *enable if you use season/episode in subtitle
  85. *subtitle.modify {addstart('temp_3' not "")| 'temp_3' } *adds to subtitle
  86. *episode.modify {clear} * enable to remove season/episode element from epg data
  87. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  88. * end section
  89. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  90. end_scope
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement