Minor fix.

This commit is contained in:
Lovi-0 2024-06-26 23:16:23 +02:00
parent f9590763f2
commit 8e6c211822
4 changed files with 19 additions and 6 deletions

View File

@ -73,7 +73,9 @@ def donwload_video(scape_info_serie: GetSerieInfo, index_episode_selected: int)
def download_thread(dict_serie: MediaItem):
"""Download all episode of a thread"""
"""
Download all episode of a thread
"""
# Start message and set up video source
start_message()

View File

@ -99,6 +99,12 @@ def donwload_episode(scape_info_serie: GetSerieInfo, index_season_selected: int,
def download_series(dict_serie: MediaItem) -> None:
"""
Download all episodes of a TV series.
Parameter:
- dict_serie (MediaItem): obj with url name type and score
"""
# Start message and set up video source
start_message()

View File

@ -4,8 +4,6 @@ import sys
import json
import logging
from typing import Tuple
# External libraries
import httpx
@ -34,7 +32,7 @@ table_show_manager = TVShowManager()
def get_version(text: str) -> tuple[str, list]:
def get_version(text: str):
"""
Extracts the version from the HTML text of a webpage.
@ -75,7 +73,14 @@ def get_version(text: str) -> tuple[str, list]:
raise
def get_version_and_domain() -> Tuple[str, str]:
def get_version_and_domain():
"""
Retrieve the current version and domain of the site.
This function performs the following steps:
1. Determines the correct domain to use for the site by searching for a specific meta tag.
2. Fetches the content of the site to extract the version information.
"""
# Find new domain if prev dont work
domain_to_use, base_url = search_domain(SITE_NAME, '<meta name="author" content="StreamingCommunity">', f"https://{SITE_NAME}")

View File

@ -57,7 +57,7 @@
},
"SITE": {
"streamingcommunity": {
"video_workers": 4,
"video_workers": 2,
"audio_workers": 2,
"domain": "boston"
},