1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-02-18 18:17:55 +01:00

Update youtube_dl/extractor/picta.py

This commit is contained in:
oleksis 2020-05-30 23:57:21 -04:00
parent 06ee244086
commit 51c0a46e96

View File

@ -10,6 +10,9 @@ class PictaBaseIE(InfoExtractor):
@staticmethod
def _extract_video(video, video_id=None, require_title=True):
if len(video["results"]) == 0:
raise ExtractorError("Cannot find video!")
title = (
video["results"][0]["nombre"]
if require_title