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

@ -125,6 +125,9 @@ def make_meta_file(file, url, params = {}, flag = Event(),
if params.has_key('url-list') and params['url-list']: if params.has_key('url-list') and params['url-list']:
data['url-list'] = params['url-list'].split('|') 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.write(bencode(data))
h.close() h.close()