MDL-70063 block_tag_youtube: Update category config to use category ID
authorMihail Geshoski <mihail@moodle.com>
Sat, 31 Oct 2020 14:52:06 +0000 (22:52 +0800)
committerMihail Geshoski <mihail@moodle.com>
Wed, 11 Nov 2020 13:10:12 +0000 (21:10 +0800)
commitca5850e34172247f02a2ad9275a60fbfa728998d
tree401a3a021fc63e98f38b86789cbe580251471840
parentd330035f1161b96afb08b2c63a9a4df4147f3fcd
MDL-70063 block_tag_youtube: Update category config to use category ID

In YouTube Data API v3, the API call to fetch the videos related to a
certain category expects the category ID to be passed to the
videoCategoryId parameter, instead of the category name. Therefore, the
category config should store the category ID.
blocks/tag_youtube/block_tag_youtube.php
blocks/tag_youtube/edit_form.php
blocks/tag_youtube/lang/en/block_tag_youtube.php
blocks/tag_youtube/upgrade.txt