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

Add support for amp-soundcloud #640

Merged
merged 1 commit into from
Feb 21, 2017
Merged

Add support for amp-soundcloud #640

merged 1 commit into from
Feb 21, 2017

Conversation

amedina
Copy link
Member

@amedina amedina commented Feb 18, 2017

Getting this PR started for review and discussion.

@amedina amedina self-assigned this Feb 18, 2017
@amedina amedina requested review from pbakaus and mjangda February 18, 2017 23:44
Copy link
Contributor

@mjangda mjangda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a question in the id extraction method, but otherwise looks good!

$parsed_url = parse_url( $url );
parse_str( $parsed_url['path'], $path );
$tok = explode("/", $parsed_url['path']);
$tok = explode("_", $tok[2]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the _ explode here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad; not needed. Fixed.

@amedina amedina force-pushed the amedina/amp-soundcloud branch from 038bd12 to f827814 Compare February 20, 2017 23:38
@mjangda mjangda merged commit 5018623 into master Feb 21, 2017
@mjangda mjangda deleted the amedina/amp-soundcloud branch February 21, 2017 16:27
@amedina amedina mentioned this pull request Jul 6, 2017
@westonruter
Copy link
Member

@amedina as part of #806 I found the implementation here to not be complete. In particular, an oEmbed for SoundCloud looks like:

https://soundcloud.com/jack-villano-villano/mozart-requiem-in-d-minor

Not like:

https://api.soundcloud.com/tracks/89299804

Additionally, I found the soundcloud shortcode handling wasn't working as expected. For one thing, the Jetpack plugin only recognizes the url attribute whereas WordPress.com also apparently supports the id attribute.

So I've amended the PR #829 to fix up the SoundCloud handling: 0b729b1

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

Successfully merging this pull request may close these issues.

3 participants