$def with (r) $code: rec = r[0] fl = r[1] id = r[2] if r[3]: lock = r[3][0] else: lock = None name = 'topic'+id stitle = rec[1][1:rec[1].find('(')-1] if rec[0]>2147483647: simplecd=True else: simplecd=False def emsize(link): if len(link.split('|'))<4: return 'Unknown' if len(link.split('|'))>=4 and link.split('|')[3].isdigit(): n = int(link.split('|')[3]) else: n = 0 if n < 1024: return '%d Bytes' % n elif n < 1024*1024: n2 = n/1.0/1024 return '%3.1f KB' % n2 elif n < 1024*1024*1024: n2 = n/1.0/1024/1024 return '%3.1f MB' % n2 elif n < 1024*1024*1024*1024: n2 = n/1.0/1024/1024/1024 return '%3.1f GB' % n2 def format(content): return content.replace('\n','
') def relatedlink(rl): if rl == None: rl = '' links = [ x.split('`') for x in rl.split('\n') ] rtn = '''
%s
''' % '相关资源:'.decode('utf-8') for link in links: if len(link)==2: rtn += '%s
\n'%(link[0],link[1]) rtn += '
\n' return rtn def emlink(ed2k): links = ed2k.split('`') rtn = '''''' i = 0 while i+1 < len(links): if links[i].startswith('ed2k') and 'ed2k://' in links[i+1]: rtn += '''\n''' % (links[i],name,links[i],links[i],links[i+2],name,emsize(links[i])) k = 1 for sub in getsubs(links[i+1]): sname = "%s" % name rtn += '''\n''' % (sub[0],sname,'字幕'.decode('utf-8'),sub[0],sub[0],links[i+2].rsplit('.',1)[0]+'.'+sub[1].split('.')[-2]+'.'+sub[1].split('.')[-1],sname,emsize(sub[0])) k += 1 i += 3 else: rtn += '''''' % (links[i],name,links[i],links[i],links[i+1],name,emsize(links[i])) i += 2 rtn += '''
'''+'下面是用户共享的文件列表,推荐使用'.decode('utf-8')+'''eMule '''+'进行下载,您可以点击这些文件名进行下载'.decode('utf-8')+'''
Below are files shared by users, please use eMule to download them
%s %s
[%s]%s %s
%s %s
''' % name return rtn SimpleCD:让分享变得简单 $rec[1] 下载|emule|download $if fl:

复制下列链接,在emule中选择新建任务即可

$:fl $else:
论坛 |  订阅更新 |  意见反馈 | 
 
$if lock: $if rec[6].encode('utf-8') in ['电影','剧集','综艺']:
Topic ID: $:rec[0]
$:rec[1]
发布者:$lock.owner
状态:$:rec[2]
摘要:$:rec[3]
发布时间:$:rec[4]
更新时间:$:rec[5]
类别:$:rec[6],$:rec[7]
字幕:去射手网搜索字幕
$:emlink(rec[8]) $:relatedlink(rec[10])
This is a popup window!

资源介绍

$:format(rec[9])

用户评论

评论载入中...