Skip to content

Commit

Permalink
Revert "[mailru] Fix extraction (closes #24530) (#25239)"
Browse files Browse the repository at this point in the history
This reverts commit adc13b0.
  • Loading branch information
tjw1184 committed May 16, 2020
1 parent d9d0bdf commit 35eac33
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions youtube_dl/extractor/mailru.py
Expand Up @@ -128,12 +128,6 @@ def _real_extract(self, url):
'http://api.video.mail.ru/videos/%s.json?new=1' % video_id,
video_id, 'Downloading video JSON')

headers = {}

video_key = self._get_cookies('https://my.mail.ru').get('video_key')
if video_key:
headers['Cookie'] = 'video_key=%s' % video_key.value

formats = []
for f in video_data['videos']:
video_url = f.get('url')
Expand All @@ -146,7 +140,6 @@ def _real_extract(self, url):
'url': video_url,
'format_id': format_id,
'height': height,
'http_headers': headers,
})
self._sort_formats(formats)

Expand Down

0 comments on commit 35eac33

Please sign in to comment.