Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/Noembed/Provider/Audiomack.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package Noembed::Provider::Audiomack;

use parent 'Noembed::oEmbedProvider';

sub provider_name {"Audiomack"}
sub patterns {'https?://audiomack\.com/(song|album|playlist)/.+'}
sub oembed_url {'https://audiomack.com/oembed'}

1;
3 changes: 2 additions & 1 deletion share/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h2>Usage</h2>
for the <code>url</code> parameter. Noembed also supports a <code>callback</code>
parameter for JSONP.
</p>

<p>
An example request might look like this:
</p>
Expand Down Expand Up @@ -156,6 +156,7 @@ <h3>Other</h3>
</ul>
<h3>Existing oEmbed Sites</h3>
<ul>
<li>Audiomack</li>
<li>Clyp</li>
<li>Flickr</li>
<li>Funny or Die</li>
Expand Down
17 changes: 17 additions & 0 deletions share/providers.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,23 @@
}
]
},
{
"provider_name": "Audiomack",
"provider_url": "https:\/\/audiomack.com",
"endpoints": [
{
"schemes": [
"http:\/\/audiomack.com\/song\/*",
"https:\/\/audiomack.com\/song\/*",
"http:\/\/audiomack.com\/album\/*",
"https:\/\/audiomack.com\/album\/*",
"http:\/\/audiomack.com\/playlist\/*",
"https:\/\/audiomack.com\/playlist\/*"
],
"url": "https:\/\/audiomack.com\/oembed"
}
]
},
{
"provider_name": "AudioSnaps",
"provider_url": "http:\/\/audiosnaps.com",
Expand Down