mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 08:34:32 +01:00
Remove one time variables and make them inline
This commit is contained in:
parent
3d5ae9e0d3
commit
47c3ebde43
@ -75,12 +75,9 @@ class AparatIE(InfoExtractor):
|
|||||||
self._sort_formats(
|
self._sort_formats(
|
||||||
formats, field_preference=('height', 'width', 'tbr', 'format_id'))
|
formats, field_preference=('height', 'width', 'tbr', 'format_id'))
|
||||||
|
|
||||||
title = self._og_search_title(webpage)
|
|
||||||
description = self._og_search_description(webpage)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'title': title,
|
'title': self._og_search_title(webpage),
|
||||||
'description': description,
|
'description': self._og_search_description(webpage),
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'thumbnail': url_or_none(options.get('poster')),
|
'thumbnail': url_or_none(options.get('poster')),
|
||||||
'duration': int_or_none(options.get('duration')),
|
'duration': int_or_none(options.get('duration')),
|
||||||
|
Loading…
Reference in New Issue
Block a user