1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-01-24 21:47:54 +01:00

[picta] Fix API_BASE_URL

This commit is contained in:
Oleksis 2019-02-26 21:33:14 -05:00
parent 62b9e7c2c6
commit 3fb09eecd5

View File

@ -12,7 +12,7 @@ from .common import InfoExtractor
class PictaBaseIE(InfoExtractor):
API_BASE_URL = 'https://www.picta.cu/api/v1/'
API_BASE_URL = 'https://api.picta.cu/api/v1/'
def _extract_video(self, video, video_id=None, require_title=True):
title = video['results'][0]['nombre'] if require_title else video.get('results')[0].get('nombre')