class ResultParse {
List<nicobrowser.util.Result> parse(InputStream is){
def html = new XmlSlurper(new SAXParser()).parse(is)
- def res = html.'**'.findAll{it.attributes()['class'] == 'thumb_frm'}
+ def res = html.'**'.findAll{it.@class == 'vinfo_title'}
List<nicobrowser.util.Result> list = []
res.each{list += new nicobrowser.util.Result(
- it.P[2].A[0].@href[0].text().replaceAll('watch/','').toString(),
- it.P[2].A[0].SPAN[0].toString())}
+ it.@href[0].text().replaceAll('watch/',''),
+ it.text())}
return list
}