diff options
author | Remita Amine <remitamine@gmail.com> | 2017-02-21 17:50:36 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2017-02-21 17:52:50 +0100 |
commit | 33dc173cdc84efbc1f794033480af0e4af459891 (patch) | |
tree | 2cf9b06698e4fe96b7994a88cc1ec20bef14b039 /youtube_dl/extractor/telequebec.py | |
parent | 3444844b04ae482edc5a353d9125b45ba47cd8d8 (diff) |
[telequebec] use geo bypass mechanism
Diffstat (limited to 'youtube_dl/extractor/telequebec.py')
-rw-r--r-- | youtube_dl/extractor/telequebec.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/telequebec.py b/youtube_dl/extractor/telequebec.py index 4043fcb92..82d73c31d 100644 --- a/youtube_dl/extractor/telequebec.py +++ b/youtube_dl/extractor/telequebec.py @@ -2,7 +2,10 @@ from __future__ import unicode_literals from .common import InfoExtractor -from ..utils import int_or_none +from ..utils import ( + int_or_none, + smuggle_url, +) class TeleQuebecIE(InfoExtractor): @@ -28,7 +31,7 @@ class TeleQuebecIE(InfoExtractor): return { '_type': 'url_transparent', 'id': media_id, - 'url': 'limelight:media:' + media_data['streamInfo']['sourceId'], + 'url': smuggle_url('limelight:media:' + media_data['streamInfo']['sourceId'], {'geo_countries': ['CA']}), 'title': media_data['title'], 'description': media_data.get('descriptions', [{'text': None}])[0].get('text'), 'duration': int_or_none(media_data.get('durationInMilliseconds'), 1000), |