pxgamer/plex-picker

从您的 Plex 库中选择电影的工程。

v1.2.2 2017-12-06 10:07 UTC

This package is auto-updated.

Last update: 2024-09-11 14:57:24 UTC


README

Latest Version on Packagist Software License Build Status Style CI Code Coverage Total Downloads

从您的 Plex 库中选择视频的工程。

结构

src/
tests/
vendor/

安装

通过 Composer

$ composer require pxgamer/plex-picker

用法

use \pxgamer\PlexPicker\Picker;

// Create a new Picker class
$client = new Picker();

// Create the data object
$data = [
    'unwatched' => 1, // You can search by watched/unwatched videos
    'actor' => 1, // You can search by actor ID
    'duplicate' => 1, // You can check for duplicates
    'year' => 2017, // You can search by year
];

// In fact, you can use any of the filters.

// Initialise the base URL of your server
$client->_setBaseUrl('https://demo.plex.local:32400');

// Set your token (will soon have a login function to get a token)
$client->setToken('5KaVLQiL531414faD7PfZ3');

// Set the data (using an array)
$client->setData($data);

// Get the list of videos from the server
$client->_get();

// Select the video
$client->chooseVideo();

echo 'Chosen Film: '. $client->videoData['title'] . ' (' . $client->videoData['year'] . ')';

变更日志

有关最近更改的更多信息,请参阅 CHANGELOG

测试

$ composer test

贡献

有关详细信息,请参阅 CONTRIBUTINGCODE_OF_CONDUCT

安全性

如果您发现任何与安全性相关的问题,请通过电子邮件 owzie123@gmail.com 反馈,而不是使用问题跟踪器。

致谢

许可证

MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件