# Plays.tv Onebox for Discourse

**URL:** https://meta.discourse.org/t/plays-tv-onebox-for-discourse/54637
**Category:** Plugin
**Created:** [December 22, 2016, 7:48am UTC](https://meta.discourse.org/t/plays-tv-onebox-for-discourse/54637 "2016-12-22T07:48:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [December 22, 2016, 7:48am UTC](https://meta.discourse.org/t/plays-tv-onebox-for-discourse/54637/1 "2016-12-22T07:48:13Z")

</div>

# [Discourse Plays.tv Onebox](https://github.com/critcola/discourse-playstv-onebox)

This plugin for Discourse extends Onebox to add support for embedding videos from [Plays.tv](https://plays.tv/) in Discourse posts.

## Demo

See it in action and test it out for yourself on [Crit Cola’s Discourse](https://critcola.com/?utm_source=meta.discourse.org&utm_medium=plugin-topic&utm_term=demo&utm_content=discourse-playstv-onebox&utm_campaign=development).

## Installation

Add the plugin’s repository URL to your container’s `app.yml` file, for example:

```yml
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/critcola/discourse-playstv-onebox.git

```

Rebuild the container:

```plaintext
cd /var/discourse
./launcher rebuild app

```

For the plugin to apply retroactively, you’ll need to rebake old posts:

```plaintext
cd /var/discourse
./launcher enter app
rake posts:rebake

```

## License

The Discourse [Plays.tv](http://Plays.tv) Onebox plugin is released under the MIT License.
