########################################################
# LSHunter.tv VideoPortal
########################################################
section=id="@PARAM1@".*?(?:id="e\d+"|</table>\s*</div>\s*(?:<!--[^-]*-->)?\s*</div>)
skill=autoselect
catcher=streams

########################################################
# Streams
########################################################

# example:
# javascript:openWindow("index1.php?option=com_lsh&view=lsh&event_id=126687&tv_id=871&tid=31589&channel=0&tmpl=component&layout=popup&Itemid=322","735","665")

item_infos=javascript:openwindow\("(http://live.realstreamunited.com/index.*?&event_id=([^&]+)&tv_id=([^&]+)&tid=([^&]+)&channel=([^&]+)[^"]+)".*?>Link#([^<]+)</a>
item_order=url.tmp|eid|tvid|tid|channel|link
item_skill=rss

item_info_name=entry.tmp
item_info_from=url.tmp
item_info_convert=replace('%s','?','.')
item_info_convert=getInfo('@PARAM2@','.*<tr(.*?%s.*?)</td>.*')
item_info_build=%s

item_info_name=name
item_info_from=entry.tmp
item_info_convert=replace('%s','?','.')
item_info_convert=parseText('%s','.*alt="([^"]+)".*')
item_info_build=%s

item_info_name=quality
item_info_from=entry.tmp
item_info_convert=replace('%s','?','.')
item_info_convert=parseText('%s','.*(\([\dx]+\)).*')
item_info_convert=ifEmpty('%s','','%s ')
item_info_build=%s

item_info_name=title
item_info_from=quality + name + ' - ' + tid + '-' + link
item_info_build=%s

item_info_name=url
item_info_from=eid + tvid + tid +  channel
item_info_build=%s

#item_url_build=http://lsh.lshunter.tv/static/popups/%s.html
item_url_build=http://live.realstreamunited.com/static/freepopups/%s.html


########################################################
item_infos=<a href='javascript:openwindow\("(http://(?![^\.]+\.lshunter|www.reyhd|web\d+.protv|www.tutele|www.justin.tv|dinozap.tv)[^"]+)"[^>]*>([^<]+)</a>
item_order=url.tmp|link
item_skill=rss

item_info_name=entry.tmp
item_info_from=url.tmp
item_info_convert=replace('%s','?','.')
item_info_convert=getInfo('@PARAM2@','.*?<tr(.*?%s.*?)</td>.*?')
item_info_build=%s

item_info_name=name
item_info_from=entry.tmp
item_info_convert=replace('%s','?','.')
item_info_convert=parseText('%s','.*alt="([^"]+)".*')
item_info_build=%s

item_info_name=quality
item_info_from=entry.tmp
item_info_convert=replace('%s','?','.')
item_info_convert=parseText('%s','.*(\([\dx]+\))')
item_info_convert=ifEmpty('%s','','%s ')
item_info_build=%s

item_info_name=tmp
item_info_from=url.tmp
item_info_convert=parseText('%s','.*event_id=(\d+).*?tid=(\d+).*?channel=(\d+).*','evID|tID|channel')
item_info_build=%s

item_info_name=title
item_info_from=quality + name + ' - ' + tID + channel
item_info_build=%s

item_info_name=tvID
item_info_from=url.tmp
item_info_convert=parseText('%s','.*tv_id=(\d+).*')
item_info_convert=ifEmpty('%s','0','%s')
item_info_build=%s

item_info_name=url
item_info_from='static/freepopups/' + evID + tvID + tID + channel
item_info_build=http://live.realstreamunited.com/%s.html

item_url_build=%s
########################################################
item_infos=<a href="(https?://(?!www.bet365|adserving|www.skytux|www.icaston|www.veemi|www.veetle|www.justin.tv|(?:www.)?reyhd|www.cast365)[^"]+)" target="_blank">((?!download)[^<]*)</a>
item_order=url|link
item_skill=rss

item_info_name=entry.tmp
item_info_from=url
item_info_convert=replace('%s','?','.')
item_info_convert=getInfo('@PARAM2@','.*<tr(.*?%s.*?)</td>.*')
item_info_build=%s

item_info_name=name
item_info_from=entry.tmp
item_info_convert=replace('%s','?','.')
item_info_convert=parseText('%s','.*alt="([^"]+)".*')
item_info_build=%s

item_info_name=title
item_info_from=name + ' - ' + url
item_info_build=%s

item_url_build=%s