From ab5b36555951c14d1814db501b6d0ba2d5c90b51 Mon Sep 17 00:00:00 2001 From: BitMaster Admin Date: Wed, 26 Mar 2025 09:24:28 +0000 Subject: [PATCH] Update README.md --- README.md | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 285fd37..43c525f 100644 --- a/README.md +++ b/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