This MR introduces the function that the media.ccc.de embed is preferred over the YouTube embed.
As we already have a custom field ( mediaccc )that contains the full link to media.ccc.de this only adds the /oembed to the end of the URL and display's it in a iframe similar to the one that displays the YouTube content. If we at some point switch from the full URL to the ID as we do with YouTube this needs to be changed. (But as all the field inputs need to be changed as well I think we'll stick to the full URL..)
If the mediaccc custom field is not set, the YouTube ID will be used and the "old" iframe will be shown.
Changes in this MR:
If media.ccc.de link is present use it for the iframe instead of YouTube
If no media.ccc.de link is present fallback to YouTube
This MR introduces the function that the media.ccc.de embed is preferred over the YouTube embed. As we already have a custom field (
mediaccc
)that contains the full link to media.ccc.de this only adds the/oembed
to the end of the URL and display's it in a iframe similar to the one that displays the YouTube content. If we at some point switch from the full URL to the ID as we do with YouTube this needs to be changed. (But as all the field inputs need to be changed as well I think we'll stick to the full URL..) If themediaccc
custom field is not set, the YouTube ID will be used and the "old" iframe will be shown.Changes in this MR: