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

Handle Facebook redirects #19020

Open
5 of 9 tasks
0xallie opened this issue Jan 27, 2019 · 0 comments
Open
5 of 9 tasks

Handle Facebook redirects #19020

0xallie opened this issue Jan 27, 2019 · 0 comments

Comments

@0xallie
Copy link
Contributor

0xallie commented Jan 27, 2019

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 2019.01.27. 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 2019.01.27

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

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


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 ```):

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--ignore-config', 'https://l.facebook.com/l.php?u=https%3A%2F%2Fok.ru%2Fvideo%2F1274065521345&h=AT2mRnAJLGMpYgIwmKA1sGV-1c0XRBry7NcYI-8fHr5pJLsi0f67MaTZ_zmJpzOjAH44W_rID39xemEXoRye_w0JEXOqO49eIlHr5G8nn9FlQdnKnwJYlKzUPgb27tK9OQuRCzXdbhaq1KrhTqdzrmjiKBtCflSzrz1NAyd4F6i05YYSJEgW_1yiRWI_2lQd4iR0CGm9zHG1yoK7uI5diqwA7XsLUtNZgre7O48vvF8BCWPflOkj9pXXnyfwgNcFdmyL3pydi78_LmCC6jiLrs93_b5lW0TQzzW0ZZ5LmsPieJwvTe3Y_svspv7TBYMOpm10Lgy-Tp8KChGdmUCTOnONHyknNegObgNid6hUgftc0c855iiVRBr4MPnNORBg9Lb7kPJ3nflOVzemKF0oPPOfkigiYi4oCcTHpTZ2zXkHMKVsD1fmsxQmD0W4XuheAOkq9rRp1bsTaL90kMfetOb6F2-WFKze8fO3Gj4aPG8e_2VOh0HRRQYusgALcNzcSbpIhS7WrLd1KS_vWadHFw1rI4KyrUmJ4XNb85eC7kAUc9sIS4kkORwMQEknVmUl2JfMZ23AD6CQf8f12Nu8AsKwbzmTWjcrgRKiHoEOp1Z-3cbqbbpKYuVzuu3EEfQxJkTuEgUoEc__4XpDsl--mg']
[debug] Encodings: locale cp65001, fs utf-8, out utf-8, pref cp65001
[debug] youtube-dl version 2019.01.27
[debug] Python version 3.7.1 (CPython) - Windows-10-10.0.17763-SP0
[debug] exe versions: ffmpeg N-92202-gf72b9904fe, ffprobe N-92202-gf72b9904fe
[debug] Proxy map: {}
[generic] l.php?u=https://ok: Requesting header
[redirect] Following redirect to https://www.facebook.com/flx/warn/?u=https%3A%2F%2Fok.ru%2Fvideo%2F1274065521345&h=AT1LIIQMuNBvpDW2-v2FdZ5sHj-NOrfM-V8k0vmZ5Q7HZUZq_F58I9x82RoGVTrVNJobOpquZrhl7JQZk0hAhuwaHQ2nRiT3Nk4vdd1fgIqwfzxC-rDEcNFtfvMrEva-JyaQYV_FuTY_mqMFX8nMIshS5WdrX2UafAZK95r6QD8TfFR3IHg4HtOwPCne9zG1jkLrQ6pP-ydMCZuPQRQHA2JoH65h2LpneHUziDMd1rqlZf8ecoAqqDwFXwNqDm0rawnStGYb1O6tb4ebHMcl3MH9x2EklWZ3LGgUE9vZp9w2hQDX_QoYeYEEwrSIzY-8f2zkfU059P3a8p_ki1tf0VvQtoGqsQOGJ-2243Ujd28RTF_z5Ya206MJJuuSgtQqec5k3-Q_ye-F4cWPUkxJBX3XKAvJhF-bvTbRh58eNMsSHt_KSNnDmuVyZ43Y5my0AfyxUGdA8a3gvSXq3k1hOiEAeQX1B1hqR3-Sew7q8r1Xrd-rm46-USP61WmeArJbVztWVv2_iPBeETv27BRxCujKJeId3LWBM6PiO62oCFi22Ialo2fJzzC0n56VoXBy8OBD-ofLxLxMpTEWLkJLmiBrgn4ldufj4Vdf4UCEGdjMqVoQRlDlcpoeOkWSuwWoqUfFO-hyO9kf5BUzRm0MhA
[generic] ?u=https://ok: Requesting header
WARNING: Falling back on generic information extractor.
[generic] ?u=https://ok: Downloading webpage
[generic] ?u=https://ok: Extracting information
[redirect] Following redirect to https://www.facebook.com/flx/warn/?u=https://ok.ru/video/1274065521345&h=AT1LIIQMuNBvpDW2-v2FdZ5sHj-NOrfM-V8k0vmZ5Q7HZUZq_F58I9x82RoGVTrVNJobOpquZrhl7JQZk0hAhuwaHQ2nRiT3Nk4vdd1fgIqwfzxC-rDEcNFtfvMrEva-JyaQYV_FuTY_mqMFX8nMIshS5WdrX2UafAZK95r6QD8TfFR3IHg4HtOwPCne9zG1jkLrQ6pP-ydMCZuPQRQHA2JoH65h2LpneHUziDMd1rqlZf8ecoAqqDwFXwNqDm0rawnStGYb1O6tb4ebHMcl3MH9x2EklWZ3LGgUE9vZp9w2hQDX_QoYeYEEwrSIzY-8f2zkfU059P3a8p_ki1tf0VvQtoGqsQOGJ-2243Ujd28RTF_z5Ya206MJJuuSgtQqec5k3-Q_ye-F4cWPUkxJBX3XKAvJhF-bvTbRh58eNMsSHt_KSNnDmuVyZ43Y5my0AfyxUGdA8a3gvSXq3k1hOiEAeQX1B1hqR3-Sew7q8r1Xrd-rm46-USP61WmeArJbVztWVv2_iPBeETv27BRxCujKJeId3LWBM6PiO62oCFi22Ialo2fJzzC0n56VoXBy8OBD-ofLxLxMpTEWLkJLmiBrgn4ldufj4Vdf4UCEGdjMqVoQRlDlcpoeOkWSuwWoqUfFO-hyO9kf5BUzRm0MhA&_fb_noscript=1
[generic] 1274065521345&h=AT1LIIQMuNBvpDW2-v2FdZ5sHj-NOrfM-V8k0vmZ5Q7HZUZq_F58I9x82RoGVTrVNJobOpquZrhl7JQZk0hAhuwaHQ2nRiT3Nk4vdd1fgIqwfzxC-rDEcNFtfvMrEva-JyaQYV_FuTY_mqMFX8nMIshS5WdrX2UafAZK95r6QD8TfFR3IHg4HtOwPCne9zG1jkLrQ6pP-ydMCZuPQRQHA2JoH65h2LpneHUziDMd1rqlZf8ecoAqqDwFXwNqDm0rawnStGYb1O6tb4ebHMcl3MH9x2EklWZ3LGgUE9vZp9w2hQDX_QoYeYEEwrSIzY-8f2zkfU059P3a8p_ki1tf0VvQtoGqsQOGJ-2243Ujd28RTF_z5Ya206MJJuuSgtQqec5k3-Q_ye-F4cWPUkxJBX3XKAvJhF-bvTbRh58eNMsSHt_KSNnDmuVyZ43Y5my0AfyxUGdA8a3gvSXq3k1hOiEAeQX1B1hqR3-Sew7q8r1Xrd-rm46-USP61WmeArJbVztWVv2_iPBeETv27BRxCujKJeId3LWBM6PiO62oCFi22Ialo2fJzzC0n56VoXBy8OBD-ofLxLxMpTEWLkJLmiBrgn4ldufj4Vdf4UCEGdjMqVoQRlDlcpoeOkWSuwWoqUfFO-hyO9kf5BUzRm0MhA&_fb_noscript=1: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 1274065521345&h=AT1LIIQMuNBvpDW2-v2FdZ5sHj-NOrfM-V8k0vmZ5Q7HZUZq_F58I9x82RoGVTrVNJobOpquZrhl7JQZk0hAhuwaHQ2nRiT3Nk4vdd1fgIqwfzxC-rDEcNFtfvMrEva-JyaQYV_FuTY_mqMFX8nMIshS5WdrX2UafAZK95r6QD8TfFR3IHg4HtOwPCne9zG1jkLrQ6pP-ydMCZuPQRQHA2JoH65h2LpneHUziDMd1rqlZf8ecoAqqDwFXw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oQRlDlcpoeOkWSuwWoqUfFO-hyO9kf5BUzRm0MhA&_fb_noscript=1: Extracting information
ERROR: Unsupported URL: https://www.facebook.com/flx/warn/?u=https://ok.ru/video/1274065521345&h=AT1LIIQMuNBvpDW2-v2FdZ5sHj-NOrfM-V8k0vmZ5Q7HZUZq_F58I9x82RoGVTrVNJobOpquZrhl7JQZk0hAhuwaHQ2nRiT3Nk4vdd1fgIqwfzxC-rDEcNFtfvMrEva-JyaQYV_FuTY_mqMFX8nMIshS5WdrX2UafAZK95r6QD8TfFR3IHg4HtOwPCne9zG1jkLrQ6pP-ydMCZuPQRQHA2JoH65h2LpneHUziDMd1rqlZf8ecoAqqDwFXwNqDm0rawnStGYb1O6tb4ebHMcl3MH9x2EklWZ3LGgUE9vZp9w2hQDX_QoYeYEEwrSIzY-8f2zkfU059P3a8p_ki1tf0VvQtoGqsQOGJ-2243Ujd28RTF_z5Ya206MJJuuSgtQqec5k3-Q_ye-F4cWPUkxJBX3XKAvJhF-bvTbRh58eNMsSHt_KSNnDmuVyZ43Y5my0AfyxUGdA8a3gvSXq3k1hOiEAeQX1B1hqR3-Sew7q8r1Xrd-rm46-USP61WmeArJbVztWVv2_iPBeETv27BRxCujKJeId3LWBM6PiO62oCFi22Ialo2fJzzC0n56VoXBy8OBD-ofLxLxMpTEWLkJLmiBrgn4ldufj4Vdf4UCEGdjMqVoQRlDlcpoeOkWSuwWoqUfFO-hyO9kf5BUzRm0MhA&_fb_noscript=1
Traceback (most recent call last):
  File "c:\users\nyuszika7h\appdata\local\programs\python\python37\lib\site-packages\youtube_dl\YoutubeDL.py", line 793, in extract_info
    ie_result = ie.extract(url)
  File "c:\users\nyuszika7h\appdata\local\programs\python\python37\lib\site-packages\youtube_dl\extractor\common.py", line 508, in extract
    ie_result = self._real_extract(url)
  File "c:\users\nyuszika7h\appdata\local\programs\python\python37\lib\site-packages\youtube_dl\extractor\generic.py", line 3320, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.facebook.com/flx/warn/?u=https://ok.ru/video/1274065521345&h=AT1LIIQMuNBvpDW2-v2FdZ5sHj-NOrfM-V8k0vmZ5Q7HZUZq_F58I9x82RoGVTrVNJobOpquZrhl7JQZk0hAhuwaHQ2nRiT3Nk4vdd1fgIqwfzxC-rDEcNFtfvMrEva-JyaQYV_FuTY_mqMFX8nMIshS5WdrX2UafAZK95r6QD8TfFR3IHg4HtOwPCne9zG1jkLrQ6pP-ydMCZuPQRQHA2JoH65h2LpneHUziDMd1rqlZf8ecoAqqDwFXwNqDm0rawnStGYb1O6tb4ebHMcl3MH9x2EklWZ3LGgUE9vZp9w2hQDX_QoYeYEEwrSIzY-8f2zkfU059P3a8p_ki1tf0VvQtoGqsQOGJ-2243Ujd28RTF_z5Ya206MJJuuSgtQqec5k3-Q_ye-F4cWPUkxJBX3XKAvJhF-bvTbRh58eNMsSHt_KSNnDmuVyZ43Y5my0AfyxUGdA8a3gvSXq3k1hOiEAeQX1B1hqR3-Sew7q8r1Xrd-rm46-USP61WmeArJbVztWVv2_iPBeETv27BRxCujKJeId3LWBM6PiO62oCFi22Ialo2fJzzC0n56VoXBy8OBD-ofLxLxMpTEWLkJLmiBrgn4ldufj4Vdf4UCEGdjMqVoQRlDlcpoeOkWSuwWoqUfFO-hyO9kf5BUzRm0MhA&_fb_noscript=1

Description of your issue, suggested solution and other information

Facebook redirect URLs have worked with youtube-dl until now as it follows HTTP redirects, however sometimes it redirects to a warning page, causing youtube-dl to fail. It would be nice if youtube-dl could handle this and just extract the URL from the u query parameter. This should be pretty simple but I don't have time to submit a PR right now I'm not sure what's the best way to implement it.

adi928 referenced this issue in adi928/youtube-dl Feb 1, 2019
@adi928 adi928 mentioned this issue Feb 1, 2019
9 tasks
adi928 referenced this issue in adi928/youtube-dl Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants