-
Type:
Improvement
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 14.1
-
Component/s: Repository, Catalog, Learning resources , Video
-
Labels:
-
Funded by:
When embedding a youtube video in the Video learning resource the system should check for the video license and set the license field in OpenOlat accordingly.
The video license can be fetched using the google API:
# Get all the metadata https://www.googleapis.com/youtube/v3/videos?id=ey0Wh4zyMFc&part=snippet&key=YOUR API KEY => title, description, thubnail (URL for posterframe), ChannelTitle (for author and copyright owner) # Get video license: : https://www.googleapis.com/youtube/v3/videos?id=ayrbWKSFN88&part=status&key=YOURAPIKEY => "license": "youtube" or "creativeCommon"
To implement this the "auto-fetch" a youtube API key must be added to the config.
Desired auto-fill features:
- ChannelTitle => Authors
- title => Title
- description => Description
- license => License (https://support.google.com/youtube/answer/2797468)
- youtube -> "All rights reserved"
- creativeCommon -> CC BY
- ChannelTitle -> License owner
- thumbnail => Posterframe (download)