Few changes

This commit is contained in:
chu23465 2025-04-29 15:52:57 +05:30
parent 4eeda5414d
commit b1454b8b95
3 changed files with 18 additions and 1 deletions

View File

@ -33,6 +33,7 @@ Support for Sport replays or live streams is not planned. It's a whole thing wit
## Usage ## Usage
### Windows
1. Install Microsoft Visual C++ Redistributable - [link](https://aka.ms/vs/17/release/vc_redist.x64.exe). 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. 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. 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 ## Updating

View File

@ -8,6 +8,7 @@ from datetime import datetime
import base64 import base64
import click import click
import m3u8 import m3u8
from sys import platform
from vinetrimmer.objects import MenuTrack, Title, Tracks from vinetrimmer.objects import MenuTrack, Title, Tracks
from vinetrimmer.services.BaseService import BaseService from vinetrimmer.services.BaseService import BaseService
@ -134,6 +135,12 @@ class DisneyPlus(BaseService):
if self.range == "DV+HDR": if self.range == "DV+HDR":
self.scenario = "android~unlimited" 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() self.configure()
def get_titles(self): def get_titles(self):

View File

@ -24,7 +24,7 @@ cdm_api:
credentials: credentials:
iTunes: 'username:password' iTunes: 'username:password'
Hotstar: 'username:password' Hotstar: 'username:password'
DisneyPlus: 'tjp4252@gmail.com:Tjcooke@121382' DisneyPlus: 'username:password'
directories: directories:
temp: '' temp: ''