Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer media.ccc.de over YouTube #129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Prefer media.ccc.de over YouTube #129

wants to merge 1 commit into from

Conversation

td00
Copy link

@td00 td00 commented Nov 2, 2023

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
  • Add YouTube link to the "LINKS" Sidebar
  • Renamed "Media.CCC" to "Media.CCC.de"

- 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
- Add YouTube link to the "LINKS" Sidebar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant