mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-02-05 10:10:10 +09:00
Coding standard: use compat_str
This commit is contained in:
parent
cec9f4bf3c
commit
d4512dfd52
@ -1,11 +1,8 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
try:
|
|
||||||
unicode
|
|
||||||
except NameError:
|
|
||||||
unicode = str
|
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
from ..compat import compat_str
|
||||||
|
|
||||||
|
|
||||||
class Pac12IE(InfoExtractor):
|
class Pac12IE(InfoExtractor):
|
||||||
@ -65,7 +62,7 @@ class Pac12IE(InfoExtractor):
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
# cv['id'] might be an integer, string, or missing.
|
# cv['id'] might be an integer, string, or missing.
|
||||||
'id': unicode(cv.get('id') or video_id),
|
'id': compat_str(cv.get('id') or video_id),
|
||||||
'title': (cv.get('title')
|
'title': (cv.get('title')
|
||||||
or self._html_search_meta(
|
or self._html_search_meta(
|
||||||
['og:title', 'twitter:title',
|
['og:title', 'twitter:title',
|
||||||
|
Loading…
Reference in New Issue
Block a user