Loading config/optional/media.type.remote_audio.yml +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ dependencies: - media_remote_audio id: remote_audio label: 'Remote audio' description: 'A remotely hosted audio file from SoundCloud or Spotify.' description: 'A remotely hosted audio file from SoundCloud, Spotify, or iHeartRadio.' source: 'oembed:audio' queue_thumbnail_downloads: false new_revision: false Loading media_remote_audio.info.yml +1 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,6 @@ name: 'Remote Audio' type: module package: 'Media' core_version_requirement: ^9.2.9 || ^10 description: 'Provides a media source for SoundCloud and Spotify via oEmbed.' description: 'Provides a media source for SoundCloud, Spotify, and iHeartRadio via oEmbed.' dependencies: - drupal:media media_remote_audio.module +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ function media_remote_audio_media_source_info_alter(array &$definitions) { 'default_name_metadata_attribute' => 'default_name', 'default_thumbnail_filename' => 'no-thumbnail.png', 'thumbnail_uri_metadata_attribute' => 'thumbnail_uri', 'providers' => ['SoundCloud', 'Spotify'], 'providers' => ['iHeartRadio', 'SoundCloud', 'Spotify'], 'class' => OEmbed::class, 'provider' => 'media_remote_audio', ]; Loading tests/fixtures/SoundCloud-no_thumbnail_size.xml 0 → 100644 +20 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- Simulates a SoundCloud resource where the thumbnail size is not defined or derivable from the URL. --> <oembed> <version type="float">1.0</version> <type>rich</type> <provider-name>SoundCloud</provider-name> <provider-url>https://soundcloud.com</provider-url> <height type="integer">400</height> <width>100%</width> <title>Drum And Bass Style - DJ & Studio Mix - 2016 / 2017 by DJ Aphrodite</title> <description>2016 to 2017 DJ and Studio Mix. A proper mix up of recent tunes, favourites and classics.</description> <thumbnail-url>https://i1.sndcdn.com/artworks-000199665517-s4ylni.jpg</thumbnail-url> <html><![CDATA[<iframe width="100%" height="400" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=https%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F299122044&show_artwork=true"></iframe>]]></html> <author-name>DJ Aphrodite</author-name> <author-url>https://soundcloud.com/dj-aphrodite</author-url> </oembed> tests/fixtures/SoundCloud-thumbnail_size_in_url.xml 0 → 100644 +19 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- Simulates a SoundCloud resource where the thumbnail size is derived from the URL. --> <oembed> <version type="float">1.0</version> <type>rich</type> <provider-name>SoundCloud</provider-name> <provider-url>https://soundcloud.com</provider-url> <height type="integer">400</height> <width>100%</width> <title>Drum And Bass Style - DJ & Studio Mix - 2016 / 2017 by DJ Aphrodite</title> <description>2016 to 2017 DJ and Studio Mix. A proper mix up of recent tunes, favourites and classics.</description> <thumbnail-url>https://i1.sndcdn.com/artworks-000199665517-s4ylni-t500x500.jpg</thumbnail-url> <html><![CDATA[<iframe width="100%" height="400" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=https%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F299122044&show_artwork=true"></iframe>]]></html> <author-name>DJ Aphrodite</author-name> <author-url>https://soundcloud.com/dj-aphrodite</author-url> </oembed> Loading
config/optional/media.type.remote_audio.yml +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ dependencies: - media_remote_audio id: remote_audio label: 'Remote audio' description: 'A remotely hosted audio file from SoundCloud or Spotify.' description: 'A remotely hosted audio file from SoundCloud, Spotify, or iHeartRadio.' source: 'oembed:audio' queue_thumbnail_downloads: false new_revision: false Loading
media_remote_audio.info.yml +1 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,6 @@ name: 'Remote Audio' type: module package: 'Media' core_version_requirement: ^9.2.9 || ^10 description: 'Provides a media source for SoundCloud and Spotify via oEmbed.' description: 'Provides a media source for SoundCloud, Spotify, and iHeartRadio via oEmbed.' dependencies: - drupal:media
media_remote_audio.module +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ function media_remote_audio_media_source_info_alter(array &$definitions) { 'default_name_metadata_attribute' => 'default_name', 'default_thumbnail_filename' => 'no-thumbnail.png', 'thumbnail_uri_metadata_attribute' => 'thumbnail_uri', 'providers' => ['SoundCloud', 'Spotify'], 'providers' => ['iHeartRadio', 'SoundCloud', 'Spotify'], 'class' => OEmbed::class, 'provider' => 'media_remote_audio', ]; Loading
tests/fixtures/SoundCloud-no_thumbnail_size.xml 0 → 100644 +20 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- Simulates a SoundCloud resource where the thumbnail size is not defined or derivable from the URL. --> <oembed> <version type="float">1.0</version> <type>rich</type> <provider-name>SoundCloud</provider-name> <provider-url>https://soundcloud.com</provider-url> <height type="integer">400</height> <width>100%</width> <title>Drum And Bass Style - DJ & Studio Mix - 2016 / 2017 by DJ Aphrodite</title> <description>2016 to 2017 DJ and Studio Mix. A proper mix up of recent tunes, favourites and classics.</description> <thumbnail-url>https://i1.sndcdn.com/artworks-000199665517-s4ylni.jpg</thumbnail-url> <html><![CDATA[<iframe width="100%" height="400" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=https%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F299122044&show_artwork=true"></iframe>]]></html> <author-name>DJ Aphrodite</author-name> <author-url>https://soundcloud.com/dj-aphrodite</author-url> </oembed>
tests/fixtures/SoundCloud-thumbnail_size_in_url.xml 0 → 100644 +19 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- Simulates a SoundCloud resource where the thumbnail size is derived from the URL. --> <oembed> <version type="float">1.0</version> <type>rich</type> <provider-name>SoundCloud</provider-name> <provider-url>https://soundcloud.com</provider-url> <height type="integer">400</height> <width>100%</width> <title>Drum And Bass Style - DJ & Studio Mix - 2016 / 2017 by DJ Aphrodite</title> <description>2016 to 2017 DJ and Studio Mix. A proper mix up of recent tunes, favourites and classics.</description> <thumbnail-url>https://i1.sndcdn.com/artworks-000199665517-s4ylni-t500x500.jpg</thumbnail-url> <html><![CDATA[<iframe width="100%" height="400" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&url=https%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F299122044&show_artwork=true"></iframe>]]></html> <author-name>DJ Aphrodite</author-name> <author-url>https://soundcloud.com/dj-aphrodite</author-url> </oembed>