X-Git-Url: https://jfr.im/git/yt-dlp.git/blobdiff_plain/10db0d2f573af31bdaea8e7a010476d896d90f88..9f14daf22b4080ae1531a772ee7574959af4e2fa:/yt_dlp/extractor/pinterest.py diff --git a/yt_dlp/extractor/pinterest.py b/yt_dlp/extractor/pinterest.py index 09aeea340..2c6cd6d4b 100644 --- a/yt_dlp/extractor/pinterest.py +++ b/yt_dlp/extractor/pinterest.py @@ -1,8 +1,4 @@ -# coding: utf-8 -from __future__ import unicode_literals - import json -import re from .common import InfoExtractor from ..compat import compat_str @@ -56,7 +52,6 @@ def _extract_video(self, data, extract_formats=True): 'height': int_or_none(format_dict.get('height')), 'duration': duration, }) - self._sort_formats(formats) description = data.get('description') or data.get('description_html') or data.get('seo_description') timestamp = unified_timestamp(data.get('created_at')) @@ -165,7 +160,7 @@ def suitable(cls, url): PinterestCollectionIE, cls).suitable(url) def _real_extract(self, url): - username, slug = re.match(self._VALID_URL, url).groups() + username, slug = self._match_valid_url(url).groups() board = self._call_api( 'Board', slug, { 'slug': slug,