add hook to add playtime

This commit is contained in:
j 2010-06-16 12:56:55 +02:00
parent a41dfb43ca
commit 208250d863

View file

@ -124,7 +124,10 @@ def make_meta_file(file, url, params = {}, flag = Event(),
if params.has_key('url-list') and params['url-list']:
data['url-list'] = params['url-list'].split('|')
if params.has_key('playtime') and params['playtime']:
data['info']['playtime'] = params['playtime']
h.write(bencode(data))
h.close()