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