devjoghurt / hof-plexexport-bundle
此包提供了Plex媒体库的导出器。
dev-master / 2.0.x-dev
2013-04-15 17:37 UTC
Requires
- symfony/framework-bundle: >=2.1,<2.3-dev
This package is not auto-updated.
Last update: 2024-09-14 15:52:44 UTC
README
HofPlexExportBundle
导出您的Plex媒体库。我要感谢Dachande663和plakna在Plex-Export上的工作。
安装
步骤 1)获取包和库
首先,获取HofPlexExportBundle
使用composer(symfony 2.1 模式)
在composer.json中添加(见https://getcomposer.org.cn/)
"require" : {
// ...
"devjoghurt/hof-plexexport-bundle": "dev-master"
}
步骤 2)注册包
要开始使用包,请在Kernel中注册它
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Hof\PlexExportBundle\HofPlexExportBundle(), ); // ...
步骤 3)(可选)配置包
该包附带合理的默认配置,如下所示。如果您跳过此步骤,将使用这些默认值。
# app/config/config.yml hof_plex_export: config: plex_url: "https://: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() }}
如果您想添加选项或更改模板,可以这样做
{{ plex_export("HofWebsiteBundle:Movies:plex_movies.html.twig",{"stylesheets":false}) }}