Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Generic] `Referer` header required to video download #16849

Closed
bato3 opened this issue Jun 28, 2018 · 0 comments
Closed

[Generic] `Referer` header required to video download #16849

bato3 opened this issue Jun 28, 2018 · 0 comments

Comments

@bato3
Copy link
Contributor

@bato3 bato3 commented Jun 28, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.06.25. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.06.25

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

youtube-dl -v https://vidfile.net/v/5985p4s334p19
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://vidfile.net/v/5985p4s334p19']
[debug] Encodings: locale cp1250, fs mbcs, out cp852, pref cp1250
[debug] youtube-dl version 2018.06.25
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17134
[debug] exe versions: phantomjs 2.1.1
[debug] Proxy map: {}
[generic] 5985p4s334p19: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 5985p4s334p19: Downloading webpage
[generic] 5985p4s334p19: Extracting information
[download] Downloading playlist: [anon] KiraKira Precure La Mode - 25 [1280x720].mp4 • VidFile.net
[generic] playlist [anon] KiraKira Precure La Mode - 25 [1280x720].mp4 • VidFile.net: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://s2.vidfile.net/file/dafd92960b79c27dc29ccf9c922debec/d22e301f0df4b1a4a9506c82f97374bac0429036f81d2a1350e13fbac56b9c2468808aef66326bd86ab24b2ea541a47bc6ac51677b84cbe62d74ae6e0b0457bb/1530191959/5985c4f334c19.mp4'
[download] Destination: [anon] KiraKira Precure La Mode - 25 [1280x720].mp4 • VidFile.net-5985p4s334p19.mp4
[download] 100% of 65.93KiB in 00:00
[download] Finished downloading playlist: [anon] KiraKira Precure La Mode - 25 [1280x720].mp4 • VidFile.net

Description of your issue, suggested solution and other information

Some servers require referrer header. When I provide it manually, download works:

youtube-dl  --add-header Referer:https://vidfile.net/v/5985p4s334p19  https://vidfile.net/v/5985p4s334p19
[generic] 5985p4s334p19: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 5985p4s334p19: Downloading webpage
[generic] 5985p4s334p19: Extracting information
[download] Downloading playlist: [anon] KiraKira Precure La Mode - 25 [1280x720].mp4 • VidFile.net
[generic] playlist [anon] KiraKira Precure La Mode - 25 [1280x720].mp4 • VidFile.net: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[download] Destination: [anon] KiraKira Precure La Mode - 25 [1280x720].mp4 • VidFile.net-5985p4s334p19.mp4
[download]  24.4% of 391.14MiB at 419.10KiB/s ETA 12:02

I suggest that this header be added by default.

@dstftw dstftw closed this in 5e8e2fa Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.