# duplicate video container showing in custom recipe with blocks v1.17

**URL:** https://support.prodi.gy/t/duplicate-video-container-showing-in-custom-recipe-with-blocks-v1-17/7440
**Category:** Uncategorized
**Tags:** front-end
**Created:** [November 22, 2024, 12:35am UTC](https://support.prodi.gy/t/duplicate-video-container-showing-in-custom-recipe-with-blocks-v1-17/7440 "2024-11-22T00:35:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![awconway](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/awconway/32/2379_2.png) [@awconway](https://support.prodi.gy/u/awconway)
#### Post date: [November 22, 2024, 12:35am UTC](https://support.prodi.gy/t/duplicate-video-container-showing-in-custom-recipe-with-blocks-v1-17/7440/1 "2024-11-22T00:35:40Z")

</div>

I have been using the blocks interface with a custom recipe to annotate video. In 1.17 the video container is being duplicated (i.e. two instances of the video on top of each other). works fine in 1.16. my blocks config is:

```python
    blocks = [
        {"view_id": "audio"},
        {"view_id": "choice"},
        {
            "view_id": "text_input",
            "field_rows": 4,
            "field_label": "Notes",
            "field_id": "notes",
            "field_autofocus": False,
        },
    ]

```

---

<div class="post-metadata">

### Author: ![magdaaniol](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/magdaaniol/32/2787_2.png) [@magdaaniol](https://support.prodi.gy/u/magdaaniol)
#### Post date: [November 25, 2024, 6:37pm UTC](https://support.prodi.gy/t/duplicate-video-container-showing-in-custom-recipe-with-blocks-v1-17/7440/2 "2024-11-25T18:37:37Z")

</div>

Hi @awconway ,

Apologies for this and thanks for the report - we'll try to fix it asap and ping you when the patch is out.

---

<div class="post-metadata">

### Author: ![magdaaniol](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/magdaaniol/32/2787_2.png) [@magdaaniol](https://support.prodi.gy/u/magdaaniol)
#### Post date: [November 26, 2024, 12:48pm UTC](https://support.prodi.gy/t/duplicate-video-container-showing-in-custom-recipe-with-blocks-v1-17/7440/3 "2024-11-26T12:48:42Z")

</div>

Hi @awconway,

Thank you again for bringing this to our attention. We've investigated what appeared to be a regression and wanted to provide a detailed explanation.

In version 1.17.0, we enhanced our data structure validation to be more consistent across all view types. While this improvement brings better reliability and predictability, it does require a small configuration adjustment for the `choice` block containing video content.

Previously, `choice` block would silently ignore `video` content, while other view types required explicit configuration. Now, `video` content is handled the same way as `audio` throughout the application, requiring you to explicitly nullify it in the `choice` config to prevent duplication.

To resolve this, please add the following to your configuration:

```python
   blocks = [
        {"view_id": "audio"},
        {"view_id": "choice", "video": None},
        {
            "view_id": "text_input",
            "field_rows": 4,
            "field_label": "Notes",
            "field_id": "notes",
            "field_autofocus": False,
        },
    ]

```

We understand that any breaking change can be disruptive, even if minor. However, more consistent configuration and validation is definitely an improvement.  
We'll update the docs to make this requirement more obvious going forward.

---

<div class="post-metadata">

### Author: ![awconway](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/awconway/32/2379_2.png) [@awconway](https://support.prodi.gy/u/awconway)
#### Post date: [December 12, 2024, 2:08am UTC](https://support.prodi.gy/t/duplicate-video-container-showing-in-custom-recipe-with-blocks-v1-17/7440/4 "2024-12-12T02:08:26Z")

</div>

thanks - appreciate the explanation
