|||}
index_subtitle.scrub {single||class="_showinfo">||}
index_urlchannellogo.scrub {regex||^.*src=\"([^\"]*)\"[^>]*class=\"canalimg\"||}
scope.range {(indexshowdetails)|end}
* get premiere from title
index_premiere.modify {addstart('index_title'~"tag-estreno")|true}
* remove premiere tag from title
index_title.modify {remove(type=regex)|<[^>]*tag-estreno[^>]*>.*?[^>]*>}
index_title.modify {cleanup(tags="<"">")}
index_title.modify {cleanup(tags="<"">")}
index_subtitle.modify {cleanup(tags="<"">")}
index_description.modify {cleanup(tags="<"">")}
end_scope
index_urlshow {url|http://www.entutele.com|class="vershow"|href="|">|">}
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the detail pages
title.scrub {single|class="show_desc"||
|}
*description.scrub {single|class="show_desc"|>|]*>(.*?)<[^>]*(?:id="recom"\|id="show_filtro")||}
scope.range {(showdetails)|end}
* get original title
titleoriginal.modify {substring(type=regex)|'description' "
]*>(.*?)
"}
titleoriginal.modify {remove(type=regex)|\s*Título original\s*:\s*}
titleoriginal.modify {remove(type=regex)|^(.*?")[^"]*(".*?)$} * sometimes the original title is only between "" with other text around it
* remove original title from description
description.modify {remove(type=regex)|
]*>(.*?)
}
* remove title from description
description.modify {remove(type=regex)|
}
* remove social media links from description
description.modify {remove(type=regex)|(<[^>]*class="social"[^>]*>.*?)<[^>]*class="tags"[^>]*>}
* get the categories
category.modify {substring(type=regex)|'description' "]*class="tags"[^>]*>(.*?)
"}
category.modify {cleanup(tags="<"">")}
category.modify {replace|/|\|}
category.modify {remove(type=regex)|^(\s*).*?(\s*)$}
category.modify {cleanup(removeduplicates=equal)}
* remove categories from description
description.modify {remove(type=regex)|]*class="tags"[^>]*>.*?
}
* get actors from description
actor.modify {substring(type=regex)|'description' "<[^>]*>Reparto:<[^>]*>(.*?)<"}
actor.modify {cleanup(tags="<"">")}
actor.modify {replace|,|\|}
description.modify {remove(type=regex)|(<[^>]*>Reparto:<[^>]*>.*?)<}
description.modify {cleanup(tags="<"">")}
end_scope
* _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
* ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
*
** @auto_xml_channel_start
*scope.range {(channellist)|end}
*url_index{url|http://www.entutele.com/programacion/todos}
*index_site_id.scrub {regex||href=\"([^\"]*)\"[^>]*>[^>]*alt=\"[^\"]*\"[^>]*class=\"canalimg\"||}
*index_site_channel.scrub {regex||href=\"[^\"]*\"[^>]*>[^>]*alt=\"([^\"]*)\"[^>]*class=\"canalimg\"||}
**index_site_id.scrub {multi|||Qué es Entutele
}
*scope.range {(channellist)|end}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
*end_scope
** @auto_xml_channel_end