- 'format': 'bestvideo'
- }
- }
-
- def _get_best_stream_url(self, stream):
- best_stream = list(filter(None, [v for k, v in stream.items()]))
- return best_stream.pop(0) if len(best_stream) else None
-
- def _get_stream_urls(self, video_dict):
- stream_dict = video_dict.get('stream', {'provider': {}})
- stream_provider = stream_dict.get('provider')
-
- if not stream_dict[stream_provider]:
- message = 'No stream provider found'
- raise ExtractorError('%s said: %s' % (self.IE_NAME, message), expected=True)
-
- streams = []
- for stream_name, v in stream_dict[stream_provider].items():
- if stream_name in VALID_STREAMS:
- stream_url = self._get_best_stream_url(v)
- if stream_url is None:
- continue
- streams.append((stream_name, stream_url))
- return streams
+ },
+ 'skip': 'No longer available',
+ }, {
+ 'url': 'https://www.mxplayer.in/show/watch-shaitaan/season-1/the-infamous-taxi-gang-of-meerut-online-45055d5bcff169ad48f2ad7552a83d6c',
+ 'info_dict': {
+ 'id': '45055d5bcff169ad48f2ad7552a83d6c',
+ 'ext': 'mp4',
+ 'title': 'The infamous taxi gang of Meerut',
+ 'description': 'md5:033a0a7e3fd147be4fb7e07a01a3dc28',
+ 'season_number': 1,
+ 'episode_number': 1,
+ 'duration': 2332,
+ 'season': 'Season 1',
+ 'series': 'Shaitaan',
+ 'episode': 'Episode 1',
+ },
+ 'params': {
+ 'format': 'best',
+ 'skip_download': True,
+ },
+ 'skip': 'No longer available.',
+ }, {
+ 'url': 'https://www.mxplayer.in/show/watch-aashram/chapter-1/duh-swapna-online-d445579792b0135598ba1bc9088a84cb',
+ 'info_dict': {
+ 'id': 'd445579792b0135598ba1bc9088a84cb',
+ 'display_id': 'duh-swapna-online',
+ 'ext': 'mp4',
+ 'title': 'Duh Swapna',
+ 'description': 'md5:35ff39c4bdac403c53be1e16a04192d8',
+ 'season_number': 1,
+ 'episode_number': 3,
+ 'duration': 2568,
+ 'season': 'Season 1',
+ 'series': 'Aashram',
+ 'episode': 'Episode 3',
+ },
+ 'params': {
+ 'format': 'bv',
+ 'skip_download': True,
+ },
+ }, {
+ 'url': 'https://www.mxplayer.in/show/watch-dangerous/season-1/chapter-1-online-5a351b4f9fb69436f6bd6ae3a1a75292',
+ 'info_dict': {
+ 'id': '5a351b4f9fb69436f6bd6ae3a1a75292',
+ 'display_id': 'chapter-1-online',
+ 'ext': 'mp4',
+ 'title': 'Chapter 1',
+ 'description': 'md5:233886b8598bc91648ac098abe1d288f',
+ 'season_number': 1,
+ 'episode_number': 1,
+ 'duration': 1305,
+ 'season': 'Season 1',
+ 'series': 'Dangerous',
+ 'episode': 'Episode 1',
+ },
+ 'params': {
+ 'format': 'bv',
+ 'skip_download': True,
+ },
+ }, {
+ 'url': 'https://www.mxplayer.in/movie/watch-the-attacks-of-2611-movie-online-0452f0d80226c398d63ce7e3ea40fa2d',
+ 'info_dict': {
+ 'id': '0452f0d80226c398d63ce7e3ea40fa2d',
+ 'ext': 'mp4',
+ 'title': 'The Attacks of 26/11',
+ 'description': 'md5:689bacd29e97b3f31eaf519eb14127e5',
+ 'duration': 6085,
+ },
+ 'params': {
+ 'format': 'best',
+ 'skip_download': True,
+ },
+ 'skip': 'No longer available. Cannot be played on browser',
+ }, {
+ 'url': 'https://www.mxplayer.in/movie/watch-kitne-door-kitne-paas-movie-online-a9e9c76c566205955f70d8b2cb88a6a2',
+ 'info_dict': {
+ 'id': 'a9e9c76c566205955f70d8b2cb88a6a2',
+ 'display_id': 'watch-kitne-door-kitne-paas-movie-online',
+ 'title': 'Kitne Door Kitne Paas',
+ 'duration': 8458,
+ 'ext': 'mp4',
+ 'description': 'md5:fb825f3c542513088024dcafef0921b4',
+ },
+ 'params': {
+ 'format': 'bv',
+ 'skip_download': True,
+ },
+ }, {
+ 'url': 'https://www.mxplayer.in/show/watch-ek-thi-begum-hindi/season-2/game-of-power-online-5e5305c28f1409847cdc4520b6ad77cf',
+ 'info_dict': {
+ 'id': '5e5305c28f1409847cdc4520b6ad77cf',
+ 'display_id': 'game-of-power-online',
+ 'title': 'Game Of Power',
+ 'duration': 1845,
+ 'ext': 'mp4',
+ 'description': 'md5:1d0948d2a5312d7013792d53542407f9',
+ 'series': 'Ek Thi Begum (Hindi)',
+ 'season': 'Season 2',
+ 'season_number': 2,
+ 'episode': 'Episode 2',
+ 'episode_number': 2,
+ },
+ 'params': {
+ 'format': 'bv',
+ 'skip_download': True,
+ },
+ }, {
+ 'url': 'https://www.mxplayer.in/movie/watch-deewane-huye-paagal-movie-online-4f9175c40a11c3994182a65afdd37ec6?watch=true',
+ 'info_dict': {
+ 'id': '4f9175c40a11c3994182a65afdd37ec6',
+ 'display_id': 'watch-deewane-huye-paagal-movie-online',
+ 'title': 'Deewane Huye Paagal',
+ 'duration': 9037,
+ 'ext': 'mp4',
+ 'description': 'md5:d17bd5c651016c4ed2e6f8a4ace15534',
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }]