aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/inc.py
diff options
context:
space:
mode:
authorUnknown <blackjack4494@web.de>2020-09-03 04:06:30 +0200
committerUnknown <blackjack4494@web.de>2020-09-03 04:06:30 +0200
commit53d26f24069590f47985dfd1eb3f4c90642e676a (patch)
tree7768d8013f0e0c4a304a8284b3a4a6ede721bd58 /youtube_dl/extractor/inc.py
parente367127957d37b51720ebc6f8cea5430ef67e863 (diff)
downloadhypervideo-pre-53d26f24069590f47985dfd1eb3f4c90642e676a.tar.lz
hypervideo-pre-53d26f24069590f47985dfd1eb3f4c90642e676a.tar.xz
hypervideo-pre-53d26f24069590f47985dfd1eb3f4c90642e676a.zip
[skip travis] revert automerge for now
Diffstat (limited to 'youtube_dl/extractor/inc.py')
-rw-r--r--youtube_dl/extractor/inc.py59
1 files changed, 0 insertions, 59 deletions
diff --git a/youtube_dl/extractor/inc.py b/youtube_dl/extractor/inc.py
deleted file mode 100644
index d5b258a0f..000000000
--- a/youtube_dl/extractor/inc.py
+++ /dev/null
@@ -1,59 +0,0 @@
-from __future__ import unicode_literals
-
-from .common import InfoExtractor
-from .kaltura import KalturaIE
-
-
-class IncIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?inc\.com/(?:[^/]+/)+(?P<id>[^.]+).html'
- _TESTS = [{
- 'url': 'http://www.inc.com/tip-sheet/bill-gates-says-these-5-books-will-make-you-smarter.html',
- 'md5': '7416739c9c16438c09fa35619d6ba5cb',
- 'info_dict': {
- 'id': '1_wqig47aq',
- 'ext': 'mov',
- 'title': 'Bill Gates Says These 5 Books Will Make You Smarter',
- 'description': 'md5:bea7ff6cce100886fc1995acb743237e',
- 'timestamp': 1474414430,
- 'upload_date': '20160920',
- 'uploader_id': 'video@inc.com',
- },
- 'params': {
- 'skip_download': True,
- },
- }, {
- # div with id=kaltura_player_1_kqs38cgm
- 'url': 'https://www.inc.com/oscar-raymundo/richard-branson-young-entrepeneurs.html',
- 'info_dict': {
- 'id': '1_kqs38cgm',
- 'ext': 'mp4',
- 'title': 'Branson: "In the end, you have to say, Screw it. Just do it."',
- 'description': 'md5:21b832d034f9af5191ca5959da5e9cb6',
- 'timestamp': 1364403232,
- 'upload_date': '20130327',
- 'uploader_id': 'incdigital@inc.com',
- },
- 'params': {
- 'skip_download': True,
- },
- }, {
- 'url': 'http://www.inc.com/video/david-whitford/founders-forum-tripadvisor-steve-kaufer-most-enjoyable-moment-for-entrepreneur.html',
- 'only_matching': True,
- }]
-
- def _real_extract(self, url):
- display_id = self._match_id(url)
- webpage = self._download_webpage(url, display_id)
-
- partner_id = self._search_regex(
- r'var\s+_?bizo_data_partner_id\s*=\s*["\'](\d+)', webpage,
- 'partner id', default='1034971')
-
- kaltura_id = self._search_regex(
- r'id=(["\'])kaltura_player_(?P<id>.+?)\1', webpage, 'kaltura id',
- default=None, group='id') or self._parse_json(self._search_regex(
- r'pageInfo\.videos\s*=\s*\[(.+)\];', webpage, 'kaltura id'),
- display_id)['vid_kaltura_id']
-
- return self.url_result(
- 'kaltura:%s:%s' % (partner_id, kaltura_id), KalturaIE.ie_key())