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

Facebook URL (with Ampersand?) #3477

Closed
RingoTheDog opened this issue Aug 9, 2014 · 2 comments
Closed

Facebook URL (with Ampersand?) #3477

RingoTheDog opened this issue Aug 9, 2014 · 2 comments

Comments

@RingoTheDog
Copy link

@RingoTheDog RingoTheDog commented Aug 9, 2014

...seems to choke on some Facebook URLs.

Example URL: https://www.facebook.com/cindyweather?fref=ts#!/photo.php?v=10152183998945793&set=o.117696861636147&type=2&theater

First I thought it was ampersand related:

Escaping the ampersand did not work:
[Edit]the gibhub webpage is replacing my & amp; by ampersand in my example here...ha ha ha[/edit]

C:>youtube-dl -v "https://www.facebook.com/cindyweather?fref=ts#!/ph
oto.php?v=10152183998945793&set=o.117696861636147&type=2&theater"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://www.facebook.com/cindyweather?fref=ts

!/photo.php?v=10152183998945793&set=o.117696861636147&type=2&theate

r']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2014.08.05
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[generic] photo.php?v=10152183998945793&set=o: Requesting header
WARNING: Falling back on generic information extractor.
[generic] photo.php?v=10152183998945793&set=o: Downloading webpage
[generic] photo.php?v=10152183998945793&set=o: Extracting information
ERROR: Unsupported URL: https://www.facebook.com/cindyweather?fref=ts#!/photo.ph
p?v=10152183998945793&set=o.117696861636147&type=2&theater; please r
eport this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the
--verbose flag and include its complete output. Make sure you are using the late
st version; type youtube-dl -U to update.
Traceback (most recent call last):
File "youtube_dl\extractor\generic.pyo", line 457, in _real_extract
File "youtube_dl\utils.pyo", line 1420, in parse_xml
File "xml\etree\ElementTree.pyo", line 1300, in XML
File "xml\etree\ElementTree.pyo", line 1642, in feed
File "xml\etree\ElementTree.pyo", line 1506, in _raiseerror
ParseError: undefined entity: line 38, column 5024
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 516, in extract_info
File "youtube_dl\extractor\common.pyo", line 170, in extract
File "youtube_dl\extractor\generic.pyo", line 752, in _real_extract
ExtractorError: Unsupported URL: https://www.facebook.com/cindyweather?fref=ts#!
/photo.php?v=10152183998945793&set=o.117696861636147&type=2&theater;
please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl
with the --verbose flag and include its complete output. Make sure you are using
the latest version; type youtube-dl -U to update.

Putting URL in quotes did not work:
C:>youtube-dl -v "https://www.facebook.com/cindyweather?fref=ts#!/ph
oto.php?v=10152183998945793&set=o.117696861636147&type=2&theater"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://www.facebook.com/cindyweather?fref=ts

!/photo.php?v=10152183998945793&set=o.117696861636147&type=2&theater']

[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2014.08.05
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[generic] photo.php?v=10152183998945793&set=o: Requesting header
WARNING: Falling back on generic information extractor.
[generic] photo.php?v=10152183998945793&set=o: Downloading webpage
[generic] photo.php?v=10152183998945793&set=o: Extracting information
ERROR: Unsupported URL: https://www.facebook.com/cindyweather?fref=ts#!/photo.ph
p?v=10152183998945793&set=o.117696861636147&type=2&theater; please report this i
ssue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose fl
ag and include its complete output. Make sure you are using the latest version;
type youtube-dl -U to update.
Traceback (most recent call last):
File "youtube_dl\extractor\generic.pyo", line 457, in _real_extract
File "youtube_dl\utils.pyo", line 1420, in parse_xml
File "xml\etree\ElementTree.pyo", line 1300, in XML
File "xml\etree\ElementTree.pyo", line 1642, in feed
File "xml\etree\ElementTree.pyo", line 1506, in _raiseerror
ParseError: undefined entity: line 38, column 5024
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 516, in extract_info
File "youtube_dl\extractor\common.pyo", line 170, in extract
File "youtube_dl\extractor\generic.pyo", line 752, in _real_extract
ExtractorError: Unsupported URL: https://www.facebook.com/cindyweather?fref=ts#!
/photo.php?v=10152183998945793&set=o.117696861636147&type=2&theater; please repo
rt this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --v
erbose flag and include its complete output. Make sure you are using the latest
version; type youtube-dl -U to update.

Removing the last part of the URL (&type=2&theater) DOES download the video but it throws a "The syntax of the command is incorrect" at the end....(and possibly related: I could not get this to work with the -o output filename option)

C:>youtube-dl -v https://www.facebook.com/photo.php?v=10152183998945
793&set=o.117696861636147
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://www.facebook.com/photo.php?v=10152183
998945793']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2014.08.05
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[facebook] 10152183998945793: Downloading webpage
[debug] Invoking downloader on u'https://fbcdn-video-a.akamaihd.net/hvideo-ak-xp
f1/v/t43.1792-2/10536074_10152184002010793_1325312948_n.mp4?oh=54b8207ed3c39ea66
f87ac4a8ccc381f&oe=53E65994&gda=1407606761_bb26442f3d733b4957123097bcf66a98'

[download] Destination: _-10152183998945793.mp4
[download] 100% of 15.05MiB in 00:07
The syntax of the command is incorrect.

Thanks as always
RIngo

@jaimeMF jaimeMF closed this in a6da7b6 Aug 10, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 10, 2014

The problem was that the Facebook extractor didn't recognize the url. It will work in the next release, thanks for the report.

In the last output you posted it worked because you have removed the fref=ts#! part, the The syntax of the command is incorrect. message is because you haven't escaped the & or quoted the url

@RingoTheDog
Copy link
Author

@RingoTheDog RingoTheDog commented Aug 10, 2014

As always..AMAZING!!

Thanks again.
Ringo

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
2 participants
You can’t perform that action at this time.