1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

[linkedin:learning] add support for subtitle

fix import error in Python 2.X
This commit is contained in:
Frank Wang 2019-04-26 09:40:32 +08:00
parent 4284081fda
commit 4157ae7d5c

View File

@ -2,7 +2,12 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import re import re
from itertools import zip_longest
try:
from itertools import zip_longest
except ImportError:
from itertools import izip_longest as zip_longest
from .common import InfoExtractor from .common import InfoExtractor
from ..utils import ( from ..utils import (