uuid: edfbfc9e-d52c-40e0-836b-a71673ebbb32
langcode: en
status: true
dependencies: {  }
id: gronze_media_youtube
class: null
field_plugin_method: null
cck_plugin_method: null
migration_tags:
  - files
  - gronze
  - media_youtube
  - level2
migration_group: gronze_files
label: 'Media youtube migration from Gronze D7'
source:
  plugin: d7_file_entity_item_gronze
  scheme: youtube
  type: video
  high_water_property:
    name: fid
    alias: fm
process:
  langcode:
    plugin: default_value
    default_value: es
  field_media_oembed_video:
    plugin: str_replace
    source: uri
    search: 'youtube://v/'
    replace: 'https://www.youtube.com/watch?v='
  field_tags:
    plugin: sub_process
    source: field_tags
    process:
      target_id:
        plugin: migration_lookup
        migration: gronze_taxonomy_tags
        source: tid
        no_stub: true
  status: status
  created: timestamp
  changed: timestamp
  uid:
    plugin: migration_lookup
    migration: gronze_user_accounts
    source: uid
    no_stub: true
destination:
  plugin: 'entity:media'
  default_bundle: remote_video
migration_dependencies:
  required:
    - gronze_taxonomy_tags
