mirror of
https://github.com/soimort/you-get.git
synced 2025-02-04 01:03:54 +03:00
[youtube] unescape HTML entities, fix #1462
This commit is contained in:
parent
455e5b90d9
commit
669d7b5586
@ -236,7 +236,7 @@ class YouTube(VideoExtractor):
|
|||||||
start = '{:0>2}:{:0>2}:{:06.3f}'.format(int(h), int(m), s).replace('.', ',')
|
start = '{:0>2}:{:0>2}:{:06.3f}'.format(int(h), int(m), s).replace('.', ',')
|
||||||
m, s = divmod(finish, 60); h, m = divmod(m, 60)
|
m, s = divmod(finish, 60); h, m = divmod(m, 60)
|
||||||
finish = '{:0>2}:{:0>2}:{:06.3f}'.format(int(h), int(m), s).replace('.', ',')
|
finish = '{:0>2}:{:0>2}:{:06.3f}'.format(int(h), int(m), s).replace('.', ',')
|
||||||
content = text.firstChild.nodeValue
|
content = unescape_html(text.firstChild.nodeValue)
|
||||||
|
|
||||||
srt += '%s\n' % str(seq)
|
srt += '%s\n' % str(seq)
|
||||||
srt += '%s --> %s\n' % (start, finish)
|
srt += '%s --> %s\n' % (start, finish)
|
||||||
|
Loading…
Reference in New Issue
Block a user