Skip to content

Commit

Permalink
Merge pull request omeka#1670 from Avnerus/develop
Browse files Browse the repository at this point in the history
Support text/json+oembed (Soundclound)
  • Loading branch information
zerocrates authored Nov 30, 2020
2 parents 2a76cf2 + b48976e commit 15280b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/src/Media/Ingester/OEmbed.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function ingest(Media $media, Request $request, ErrorStore $errorStore)

$document = $response->getBody();
$dom = new Query($document);
$oEmbedLinks = $dom->queryXpath('//link[@rel="alternate" or @rel="alternative"][@type="application/json+oembed"]');
$oEmbedLinks = $dom->queryXpath('//link[@rel="alternate" or @rel="alternative"][@type="application/json+oembed" or @type="text/json+oembed"]');
if (!count($oEmbedLinks)) {
$errorStore->addError('o:source', 'No OEmbed links were found at the given URI');
return;
Expand Down

0 comments on commit 15280b5

Please sign in to comment.