From b1454b8b957b030df3a4fdbddfef1659abd8db4f Mon Sep 17 00:00:00 2001 From: chu23465 <130033130+chu23465@users.noreply.github.com> Date: Tue, 29 Apr 2025 15:52:57 +0530 Subject: [PATCH] Few changes --- README.md | 10 ++++++++++ vinetrimmer/services/disneyplus.py | 7 +++++++ vinetrimmer/vinetrimmer.yml | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e57663f..a696439 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ Support for Sport replays or live streams is not planned. It's a whole thing wit ## Usage +### Windows 1. Install Microsoft Visual C++ Redistributable - [link](https://aka.ms/vs/17/release/vc_redist.x64.exe). 2. Ensure Python is installed in your system (cannot be from the the Microsoft Store). Refer to [link](https://www.python.org/downloads/) or on Ubuntu -> `sudo apt install python3`. I recommend python 3.10.11 (or higher). Python 3.13 does not work. @@ -52,6 +53,15 @@ Support for Sport replays or live streams is not planned. It's a whole thing wit 8. Run desired command using poetry. +### Linux + +This is in beta for linux. + +Command: + +``` +wget https://github.com/chu23465/VT-PR/raw/refs/heads/dev/install.sh && chmod +x install.sh && bash install.sh +``` ## Updating diff --git a/vinetrimmer/services/disneyplus.py b/vinetrimmer/services/disneyplus.py index 435b269..a5b7021 100644 --- a/vinetrimmer/services/disneyplus.py +++ b/vinetrimmer/services/disneyplus.py @@ -8,6 +8,7 @@ from datetime import datetime import base64 import click import m3u8 +from sys import platform from vinetrimmer.objects import MenuTrack, Title, Tracks from vinetrimmer.services.BaseService import BaseService @@ -134,6 +135,12 @@ class DisneyPlus(BaseService): if self.range == "DV+HDR": self.scenario = "android~unlimited" + if "linux" in platform: + import yaml + #Read YAML file + with open("./vinetrimmer/config/Services/disneyplus.yml", 'r') as stream: + self.config = yaml.safe_load(stream) + self.configure() def get_titles(self): diff --git a/vinetrimmer/vinetrimmer.yml b/vinetrimmer/vinetrimmer.yml index 4a1993c..16a18d6 100644 --- a/vinetrimmer/vinetrimmer.yml +++ b/vinetrimmer/vinetrimmer.yml @@ -24,7 +24,7 @@ cdm_api: credentials: iTunes: 'username:password' Hotstar: 'username:password' - DisneyPlus: 'tjp4252@gmail.com:Tjcooke@121382' + DisneyPlus: 'username:password' directories: temp: ''