1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 02:14:32 +01:00

Remove one time variables and make them inline

This commit is contained in:
Hanif Birgani 2020-03-22 00:07:23 +04:30
parent 3d5ae9e0d3
commit 47c3ebde43

View File

@ -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')),