old_contents: 
  from lixian_plugins.api import page_parser
  
  import urllib2
  import re
  
  
  def simplecd_links(url):
  	m = re.match(r'(http://(?:www\.)?s[ia]mplecd\.\w+/)(id|entry)/', url)
  	assert m, url
  	site = m.group(1)
  	html = urllib2.urlopen(url).read()
  	ids = re.findall(r'value="(\w+)"\s+name="selectemule"', html)
  	form = '&'.join('rid=' + id for id in ids)
  	q = 'mode=copy&' + form
  	html = urllib2.urlopen(site + 'download/?' + q).read()
  	table = re.search(r'<table id="showall" .*?</table>', html, flags=re.S).group()
  	links = re.findall(r'ed2k://[^\s<>]+', table)
  	return links
  
  @page_parser(['http://simplecd.*/',
                'http://www.simplecd.*/',
                'http://samplecd.*/',
                'http://www.samplecd.*/'])
  def extend_link(url):
  	links = simplecd_links(url)
  	from lixian_hash_ed2k import parse_ed2k_file
  	return [{'url':x, 'name':parse_ed2k_file(x)} for x in links]
  
  
new_contents: 
  from lixian_plugins.api import page_parser
  
  import urllib2
  import re
  
  
  def simplecd_links(url):
  	m = re.match(r'(http://(?:www\.)?s[ia]mplecd\.\w+/)(id|entry)/', url)
  	assert m, url
  	site = m.group(1)
  	html = urllib2.urlopen(url).read()
  	ids = re.findall(r'value="(\w+)"\s+name="selectemule"', html)
  	form = '&'.join('rid=' + id for id in ids)
  	q = 'mode=copy&' + form
  	html = urllib2.urlopen(site + 'download/?' + q).read()
  	table = re.search(r'<table id="showall" .*?</table>', html, flags=re.S).group()
  	links = re.findall(r'ed2k://[^\s<>]+', table)
  	import lixian_url
  	return map(lixian_url.normalize_unicode_link, links)
  
  @page_parser(['http://simplecd.*/',
                'http://www.simplecd.*/',
                'http://samplecd.*/',
                'http://www.samplecd.*/'])
  def extend_link(url):
  	links = simplecd_links(url)
  	from lixian_hash_ed2k import parse_ed2k_file
  	return [{'url':x, 'name':parse_ed2k_file(x)} for x in links]
  
  
subject: fix chinese