mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-06 19:45:24 +00:00
Minor fix.
This commit is contained in:
parent
f9590763f2
commit
8e6c211822
@ -73,7 +73,9 @@ def donwload_video(scape_info_serie: GetSerieInfo, index_episode_selected: int)
|
|||||||
|
|
||||||
|
|
||||||
def download_thread(dict_serie: MediaItem):
|
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 and set up video source
|
||||||
start_message()
|
start_message()
|
||||||
|
@ -99,6 +99,12 @@ def donwload_episode(scape_info_serie: GetSerieInfo, index_season_selected: int,
|
|||||||
|
|
||||||
|
|
||||||
def download_series(dict_serie: MediaItem) -> None:
|
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 and set up video source
|
||||||
start_message()
|
start_message()
|
||||||
|
@ -4,8 +4,6 @@ import sys
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from typing import Tuple
|
|
||||||
|
|
||||||
|
|
||||||
# External libraries
|
# External libraries
|
||||||
import httpx
|
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.
|
Extracts the version from the HTML text of a webpage.
|
||||||
|
|
||||||
@ -75,7 +73,14 @@ def get_version(text: str) -> tuple[str, list]:
|
|||||||
raise
|
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
|
# 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}")
|
domain_to_use, base_url = search_domain(SITE_NAME, '<meta name="author" content="StreamingCommunity">', f"https://{SITE_NAME}")
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
},
|
},
|
||||||
"SITE": {
|
"SITE": {
|
||||||
"streamingcommunity": {
|
"streamingcommunity": {
|
||||||
"video_workers": 4,
|
"video_workers": 2,
|
||||||
"audio_workers": 2,
|
"audio_workers": 2,
|
||||||
"domain": "boston"
|
"domain": "boston"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user