Browse Source

[tapely] Add Referer header (Closes #4138)

master
Naglis Jonaitis 10 years ago
parent
commit
1a92e086a7
1 changed files with 1 additions and 0 deletions
  1. 1
      youtube_dl/extractor/tapely.py

1
youtube_dl/extractor/tapely.py

@ -50,6 +50,7 @@ class TapelyIE(InfoExtractor):
request = compat_urllib_request.Request(playlist_url) request = compat_urllib_request.Request(playlist_url)
request.add_header('X-Requested-With', 'XMLHttpRequest') request.add_header('X-Requested-With', 'XMLHttpRequest')
request.add_header('Accept', 'application/json') request.add_header('Accept', 'application/json')
request.add_header('Referer', url)
playlist = self._download_json(request, display_id) playlist = self._download_json(request, display_id)

Loading…
Cancel
Save