add hook to add playtime
This commit is contained in:
parent
a41dfb43ca
commit
208250d863
1 changed files with 4 additions and 1 deletions
|
@ -124,7 +124,10 @@ 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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue