Update README.md
This commit is contained in:
34
README.md
34
README.md
@@ -1,13 +1,20 @@
|
||||
# pyplayready
|
||||
All of this is already public. Almost 100% of this code has been derived from the mspr_toolkit.
|
||||
|
||||
## Installation
|
||||
## Installation on Ubuntu 22.04
|
||||
```shell
|
||||
pip install pyplayready
|
||||
apt update && apt install -y python3 python3-pip
|
||||
```
|
||||
```shell
|
||||
git clone https://github.com/ready-dl/pyplayready.git
|
||||
```
|
||||
```shell
|
||||
pip3 install pyplayready
|
||||
```
|
||||
|
||||
Run `pyplayready --help` to view available cli functions
|
||||
|
||||
|
||||
## Devices
|
||||
Run the command below to create a Playready Device (.prd) from a `bgroupcert.dat` and `zgpriv.dat`:
|
||||
```shell
|
||||
@@ -75,25 +82,30 @@ cdm.close(session_id)
|
||||
|
||||
## Remote Usage
|
||||
|
||||
## Start pyplayready as Server
|
||||
### Start pyplayready as Server
|
||||
Serve your local CDM and Playready Devices Remotely.
|
||||
|
||||
Usage: pyplayready serve [OPTIONS] CONFIG_PATH
|
||||
**Usage:** `pyplayready serve [OPTIONS] [CONFIG_PATH]`
|
||||
|
||||
[CONFIG_PATH] is a path to a serve config file. See `serve.example.yml` for an example config file.
|
||||
**[OPTIONS]**
|
||||
```bash
|
||||
-h, --host TEXT Host to serve from.
|
||||
-p, --port INTEGER Port to serve from.
|
||||
--help Show this message and exit.
|
||||
```
|
||||
|
||||
Example:
|
||||
|
||||
**[CONFIG_PATH]**
|
||||
is a path to a serve config file is located. See `serve.example.yml` for an example config file.
|
||||
|
||||
### Example:
|
||||
```shell
|
||||
pyplayready serve -h 0.0.0.0 -p 9999 /root/pyplayready/serve.yml
|
||||
```
|
||||
> [!IMPORTANT]
|
||||
> Host as 127.0.0.1 may block remote access even if port-forwarded. Instead, use 0.0.0.0 and ensure the TCP port you choose is forwarded.
|
||||
|
||||
Options:
|
||||
-h, --host TEXT Host to serve from.
|
||||
-p, --port INTEGER Port to serve from.
|
||||
--help Show this message and exit.
|
||||
|
||||
|
||||
|
||||
## Script for remote Key request
|
||||
|
||||
|
||||
Reference in New Issue
Block a user