File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from ..utils import (
4
4
ExtractorError ,
5
+ unescapeHTML ,
5
6
unified_strdate ,
6
7
)
7
8
from .subtitles import SubtitlesInfoExtractor
@@ -91,7 +92,8 @@ def _real_extract(self, url):
91
92
92
93
def _get_available_subtitles (self , video_id , info_webpage ):
93
94
res = {}
94
- for sturl in re .findall (r'<track src="([^"]+)"/>' , info_webpage ):
95
+ for sturl_html in re .findall (r'<track src="([^"]+)"/>' , info_webpage ):
96
+ sturl = unescapeHTML (sturl_html )
95
97
m = re .search (r'/(?P<lang>[a-z]+)\.vtt' , sturl )
96
98
if not m :
97
99
continue
Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ def connect(self):
553
553
self ._tunnel ()
554
554
try :
555
555
self .sock = ssl .wrap_socket (sock , self .key_file , self .cert_file , ssl_version = ssl .PROTOCOL_SSLv3 )
556
- except ssl .SSLError as e :
556
+ except ssl .SSLError :
557
557
self .sock = ssl .wrap_socket (sock , self .key_file , self .cert_file , ssl_version = ssl .PROTOCOL_SSLv23 )
558
558
559
559
class HTTPSHandlerV3 (compat_urllib_request .HTTPSHandler ):
You can’t perform that action at this time.
0 commit comments