mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-02 16:37:59 +09:00
Coding standard: use compat_str
This commit is contained in:
parent
cec9f4bf3c
commit
d4512dfd52
@ -1,11 +1,8 @@
|
||||
# coding: utf-8
|
||||
from __future__ import unicode_literals
|
||||
try:
|
||||
unicode
|
||||
except NameError:
|
||||
unicode = str
|
||||
|
||||
from .common import InfoExtractor
|
||||
from ..compat import compat_str
|
||||
|
||||
|
||||
class Pac12IE(InfoExtractor):
|
||||
@ -65,7 +62,7 @@ class Pac12IE(InfoExtractor):
|
||||
|
||||
return {
|
||||
# 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')
|
||||
or self._html_search_meta(
|
||||
['og:title', 'twitter:title',
|
||||
|
Loading…
Reference in New Issue
Block a user