**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: telerama.fr * @MinSWversion: 2.1 * @Revision 1 - [07/10/2017] Netuddki * - Fixed starttime * @Revision 0 - [20/09/2017] Netuddki * - create * @Remarks: your_remarks * @header_end **------------------------------------------------------------------------------------------------ site {url=telerama.fr|timezone=Europe/Paris|maxdays=7|cultureinfo=fr-FR|charset=UTF-8|titlematchfactor=90} site {ratingsystem=FR} * *site {episodesystem=onscreen} *Enable for Onscreen Episode System site {episodesystem=xmltv_ns} *Enable for xmltv_ns Episode System * urldate.format {datestring|yyyy-MM-dd} * url_index{url|https://api.telerama.fr/v1/programmes/telechargement?appareil=android_tablette&dates=|urldate|&id_chaines=|channel|&nb_par_page=100&api_signature=##hash##&api_cle=apitel-5304b49c90511} url_index.headers {customheader=Accept-Encoding=gzip,deflate} * scope.range {(urlindex)|end} global_temp_1.modify {calculate(format=date,yyyy-MM-dd)|'urldate'} global_temp_1.modify {set|/v1/programmes/telechargementappareilandroid_tablettedates'global_temp_1'id_chaines'config_site_id'nb_par_page100} global_temp_1.modify {set(type=run)|telerama-sha1.sh|sha1 'global_temp_1' Eufea9cuweuHeif} global_temp_1.modify {remove|(stdin)= } global_temp_1.modify {cleanup} url_index.modify {replace|##hash##|'global_temp_1'} end_scope * index_showsplit.scrub {multi|{"annee|||}}]} index_showsplit.modify {cleanup(style=unidecode)} * index_start.scrub {regex||"debut":"(.*?)"||} index_stop.scrub {regex||"fin":"(.*?)"||} index_title.scrub {regex||"titre":"(.*?)","||} index_titleoriginal.scrub {regex||"titre_original":"(.*?)","||} index_titleoriginal.modify {remove|'index_title'} index_subtitle.scrub {regex||"soustitre":"(.*?)","||} index_subtitle.modify {remove(type=regex)|Episode \d+} * index_description.scrub {regex||"resume":"(.*?)","||} index_description.modify {addstart("")|Pas de description disponible} * index_showicon.scrub {regex||"grande169":"(.*?)"||} index_showicon.modify {remove|\} * index_temp_1.scrub {regex||"id_role":"1".*?"nom":".*?","prenom":".*?","||} index_actor.modify {substring(type=regex)|'index_temp_1' "nom\":\"(.*?\",\"prenom\":\".*?)\""} index_actor.modify {replace|","prenom":"| } * index_temp_2.scrub {regex||"id_role":"2".*?"nom":".*?","prenom":".*?","||} index_director.modify {substring(type=regex)|'index_temp_2' "nom\":\"(.*?\",\"prenom\":\".*?)\""} index_director.modify {replace|","prenom":"| } * index_temp_3.scrub {regex||"id_role":"3".*?"nom":".*?","prenom":".*?","||} index_writer.modify {substring(type=regex)|'index_temp_3' "nom\":\"(.*?\",\"prenom\":\".*?)\""} index_writer.modify {replace|","prenom":"| } * index_temp_4.scrub {regex||"id_role":"4".*?"nom":".*?","prenom":".*?","||} index_composer.modify {substring(type=regex)|'index_temp_4' "nom\":\"(.*?\",\"prenom\":\".*?)\""} index_composer.modify {replace|","prenom":"| } * index_temp_6.scrub {regex||"id_role"\:"(?:6\|12020)".*?"nom"\:".*?","prenom"\:".*?","||} index_presenter.modify {substring(type=regex)|'index_temp_6' "nom\":\"(.*?\",\"prenom\":\".*?)\""} index_presenter.modify {replace|","prenom":"| } * index_temp_7.scrub {regex||"saison":([1-9]+)||} index_temp_7.modify {addstart(not "")|S} index_temp_8.scrub {regex||"numero_episode":([1-9]+)||} index_temp_8.modify {addstart(not "")|E} index_temp_8.modify {addstart('index_temp_7' not "")|'index_temp_7'} index_episode.modify {set(pattern="S'S1'E'E1'""S'S1'""E'E1'")|'index_temp_8'} * index_country.scrub {regex||"libelle_nationalite":"(.*?)","||} index_country.modify {cleanup(style=sentence)} * index_temp_9.scrub {regex||"est_hd":(.*?),"||} index_videoquality.modify {addstart('index_temp_9' ~ "true")|HD} * index_rating.scrub {regex||"nom_court":"(.*?)","||} * index_category.scrub {regex||"genre_specifique":"(.*?)","||} * index_productiondate.scrub {regex||_realisation":"([1-9]+)||} * * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index {url|http://television.telerama.fr/tele/liste_chaines.php} *index_site_channel.scrub {regex||
.*?(.*?)||} *index_site_id.scrub {regex||
.*?