Commit 83b875d1 authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3306354 by phenaproxima: Add support for iHeartRadio

parent f33e0e08
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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',
  ];
+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 &amp; 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>&lt;![CDATA[&lt;iframe width="100%" height="400" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&amp;url=https%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F299122044&amp;show_artwork=true"&gt;&lt;/iframe&gt;]]&gt;</html>
    <author-name>DJ Aphrodite</author-name>
    <author-url>https://soundcloud.com/dj-aphrodite</author-url>
</oembed>
+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 &amp; 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>&lt;![CDATA[&lt;iframe width="100%" height="400" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?visual=true&amp;url=https%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F299122044&amp;show_artwork=true"&gt;&lt;/iframe&gt;]]&gt;</html>
    <author-name>DJ Aphrodite</author-name>
    <author-url>https://soundcloud.com/dj-aphrodite</author-url>
</oembed>
Loading