[cleanup] Use format_field where applicable
This commit is contained in:
parent
0bfc53d05c
commit
e0ddbd02bd
26 changed files with 59 additions and 52 deletions
|
|
@ -18,6 +18,7 @@ from ..utils import (
|
|||
clean_html,
|
||||
determine_ext,
|
||||
ExtractorError,
|
||||
format_field,
|
||||
int_or_none,
|
||||
merge_dicts,
|
||||
NO_DEFAULT,
|
||||
|
|
@ -431,7 +432,7 @@ class PornHubIE(PornHubBaseIE):
|
|||
default=None))
|
||||
formats.append({
|
||||
'url': format_url,
|
||||
'format_id': '%dp' % height if height else None,
|
||||
'format_id': format_field(height, template='%dp'),
|
||||
'height': height,
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue