projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
faac1c1
)
[laola1tv:embed] Set correct stream access URL scheme (closes #16341)
author
Sergey M․
<dstftw@gmail.com>
Fri, 2 Nov 2018 19:44:35 +0000
(
02:44
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 2 Nov 2018 19:45:37 +0000
(
02:45
+0700)
youtube_dl/extractor/laola1tv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/laola1tv.py
b/youtube_dl/extractor/laola1tv.py
index d985bd3caae8c69b0534523a06897b31307e1457..fa217365a37853f471440d8138d0e20bc4115d52 100644
(file)
--- a/
youtube_dl/extractor/laola1tv.py
+++ b/
youtube_dl/extractor/laola1tv.py
@@
-33,7
+33,8
@@
class Laola1TvEmbedIE(InfoExtractor):
def _extract_token_url(self, stream_access_url, video_id, data):
return self._download_json(
def _extract_token_url(self, stream_access_url, video_id, data):
return self._download_json(
- stream_access_url, video_id, headers={
+ self._proto_relative_url(stream_access_url, 'https:'), video_id,
+ headers={
'Content-Type': 'application/json',
}, data=json.dumps(data).encode())['data']['stream-access'][0]
'Content-Type': 'application/json',
}, data=json.dumps(data).encode())['data']['stream-access'][0]
@@
-225,7
+226,7
@@
class Laola1TvIE(Laola1TvBaseIE):
class EHFTVIE(Laola1TvBaseIE):
IE_NAME = 'ehftv'
class EHFTVIE(Laola1TvBaseIE):
IE_NAME = 'ehftv'
- _VALID_URL = r'https?://(?:www\.)?ehftv\.com/[a-z]+(-[a-z]+)?/[^/]+/(?P<id>[^/?#&]+)'
+ _VALID_URL = r'https?://(?:www\.)?ehftv\.com/[a-z]+(
?:
-[a-z]+)?/[^/]+/(?P<id>[^/?#&]+)'
_TESTS = [{
'url': 'https://www.ehftv.com/int/video/paris-saint-germain-handball-pge-vive-kielce/1166761',
_TESTS = [{
'url': 'https://www.ehftv.com/int/video/paris-saint-germain-handball-pge-vive-kielce/1166761',