The HofPlexExportBundle
exports your Plex media library.
My thanks goes to Dachande663 and plakna for their work in Plex-Export
First, grab the HofPlexExportBundle:
Add on composer.json (see http://getcomposer.org/)
"require" : {
// ...
"devjoghurt/hof-plexexport-bundle": "dev-master"
}
To start using the bundle, register it in your Kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Hof\PlexExportBundle\HofPlexExportBundle(),
);
// ...
The bundle comes with a sensible default configuration, which is listed below. If you skip this step, these defaults will be used.
# app/config/config.yml
hof_plex_export:
config:
plex_url: "http://localhost:32400"
data_dir: "%kernel.root_dir%/../web/bundles/hofplexexport/media"
img_path: "../bundles/hofplexexport/media"
thumbnail_width: 150
thumbnail_height: 250
sections: "all"
sort_skip_words: "a,the,der,die,das"
template: "HofPlexExportBundle:PlexExport:plex_movies.html.twig"
{{ plex_export() }}
If you want to add options or change your template, you can do something like this:
{{ plex_export("HofWebsiteBundle:Movies:plex_movies.html.twig",{"stylesheets":false}) }}