projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ab8066
)
[svt] Improve geo restriction detection and use geo bypass mechanism
author
Sergey M․
<dstftw@gmail.com>
Sat, 4 Feb 2017 11:52:33 +0000
(18:52 +0700)
committer
Sergey M
<dstftw@gmail.com>
Sat, 18 Feb 2017 21:10:08 +0000
(
05:10
+0800)
youtube_dl/extractor/svt.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/svt.py
b/youtube_dl/extractor/svt.py
index 10cf808857e231cee482434010161a93eee85027..f2a2200bf87180f47ada72857a7eb617e0e0138e 100644
(file)
--- a/
youtube_dl/extractor/svt.py
+++ b/
youtube_dl/extractor/svt.py
@@
-38,7
+38,8
@@
class SVTBaseIE(InfoExtractor):
'url': vurl,
})
if not formats and video_info.get('rights', {}).get('geoBlockedSweden'):
- self.raise_geo_restricted('This video is only available in Sweden')
+ self.raise_geo_restricted(
+ 'This video is only available in Sweden', countries=['SE'])
self._sort_formats(formats)
subtitles = {}