https://github.com/kanopi/brightcove_media_migrate
Drupal Module that use migrations to auto-generate Brightcove Video media entities from Brightcove Video entities provided by the Brightcove Video Connector contributed module.
https://github.com/kanopi/brightcove_media_migrate
brightcove do-not-archive drupal internal-tool
Last synced: 4 days ago
JSON representation
Drupal Module that use migrations to auto-generate Brightcove Video media entities from Brightcove Video entities provided by the Brightcove Video Connector contributed module.
- Host: GitHub
- URL: https://github.com/kanopi/brightcove_media_migrate
- Owner: kanopi
- Created: 2022-03-16T01:51:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T18:18:03.000Z (about 2 years ago)
- Last Synced: 2025-03-12T22:00:51.779Z (8 months ago)
- Topics: brightcove, do-not-archive, drupal, internal-tool
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 10
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brightcove Media Migrate
Drupal module that adds migrations and data import functionality.
**Contents**
* Introduction
* Requirements
* Recommended modules
* Installation
* Configuration
* Troubleshooting
* FAQ
* Maintainers
## Introduction
This custom module provides two things:
* A Brightcove Video media entity.
* A special Brightcove media migration.
The [Brightcove Video Connector](https://www.drupal.org/project/brightcove) contributed module automatically synchronizes Brightcove videos and playlists to special entities the module provides (Brightcove Videos and Brightcove Playlists). The Brightcove media migration "migrates" the data in the D9 Brightcove Video entities to D9 Brightcove Video Media entities and can be invoked at any time using the Drupal migrate UI or CLI. It can also be scheduled to run with cron.
## Requirements
* [Brightcove Video Connector](https://www.drupal.org/project/brightcove)
* Media (Core)
* Migrate (Core)
* [Migrate Tools](https://www.drupal.org/project/migrate_tools)
* [Migrate Plus](https://www.drupal.org/project/migrate_plus)
## Recommended modules
* The [Migrate Cron](https://www.drupal.org/project/migrate_cron) module allows us to schedule the Brightcove media process whenever cron is run.
## Installation
These instructions assume you already have the
[Brightcove Video Connector](https://www.drupal.org/project/brightcove)
module and its Media Brightcove sub module enabled and fully configured
to synchronize Brightcove Videos with Drupal.
Install the module as you normally would. Installing the module creates
a Media bundle called **Brightcove Video** which can be customized as
needed, although it is recommended you not delete any of the fields provided
by this module to avoid warnings when migrations are run.
## Configuration
Load the migrations:
`drush cim --partial --source=modules/custom/brightcove_media_migrate/config/install`
Run the initial migration:
`drush mim brightcove_video_media_entities`
Run subsequent migrations - don't update existing videos (only import new ones):
`drush mim brightcove_video_media_entities`
Run subsequent migrations - update existing videos and also import new ones:
`drush mim brightcove_video_media_entities --update`
**Optional:** configure cron to run the migration using the [Migrate Cron](https://www.drupal.org/project/migrate_cron) module or any preferred method.
## Maintainers
* Anne Bonham (https://www.drupal.org/u/banoodle)
* Jim Birch (https://www.drupal.org/u/thejimbirch)
## Sponsored By
* Kanopi Studios (https://kanopi.com/)