mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
Update config ...
This commit is contained in:
parent
748b1c9bfa
commit
74bf633cfc
@ -51,23 +51,6 @@ class VideoSource:
|
||||
self.obj_title_manager: TitleManager = TitleManager()
|
||||
self.obj_episode_manager: EpisodeManager = EpisodeManager()
|
||||
|
||||
def get_preview(self) -> None:
|
||||
"""
|
||||
Retrieves preview information of a media-id
|
||||
"""
|
||||
|
||||
try:
|
||||
|
||||
response = requests.post(f"https://{self.base_name}.{self.domain}/api/titles/preview/{self.media_id}", headers = self.headers)
|
||||
response.raise_for_status()
|
||||
|
||||
# Collect all info about preview
|
||||
self.obj_preview = PreviewManager(response.json())
|
||||
|
||||
except Exception as e:
|
||||
logging.error(f"Error collecting preview info: {e}")
|
||||
raise
|
||||
|
||||
def get_count_episodes(self):
|
||||
"""
|
||||
Fetches the total count of episodes available for the anime.
|
@ -12,7 +12,7 @@ from Src.Util.message import start_message
|
||||
|
||||
|
||||
# Logic class
|
||||
from .Core.Vix_player.player import VideoSource
|
||||
from .Core.Player.vixcloud import VideoSource
|
||||
from .Core.Util import manage_selection
|
||||
|
||||
|
||||
|
@ -53,23 +53,6 @@ class VideoSource:
|
||||
self.obj_title_manager: TitleManager = TitleManager()
|
||||
self.obj_episode_manager: EpisodeManager = EpisodeManager()
|
||||
|
||||
def get_preview(self) -> None:
|
||||
"""
|
||||
Retrieves preview information of a media-id
|
||||
"""
|
||||
|
||||
try:
|
||||
|
||||
response = requests.post(f"https://{self.base_name}.{self.domain}/api/titles/preview/{self.media_id}", headers=self.headers)
|
||||
response.raise_for_status()
|
||||
|
||||
# Collect all info about preview
|
||||
self.obj_preview = PreviewManager(response.json())
|
||||
|
||||
except Exception as e:
|
||||
logging.error(f"Error collecting preview info: {e}")
|
||||
raise
|
||||
|
||||
def collect_info_seasons(self) -> None:
|
||||
"""
|
||||
Collect information about seasons.
|
@ -13,7 +13,7 @@ from Src.Util.message import start_message
|
||||
|
||||
|
||||
# Logic class
|
||||
from .Core.Vix_player.player import VideoSource
|
||||
from .Core.Player.vixcloud import VideoSource
|
||||
|
||||
|
||||
# Config
|
||||
|
@ -14,7 +14,7 @@ from Src.Lib.Hls.downloader import Downloader
|
||||
|
||||
|
||||
# Logic class
|
||||
from .Core.Vix_player.player import VideoSource
|
||||
from .Core.Player.vixcloud import VideoSource
|
||||
from .Core.Util import manage_selection, map_episode_title
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@ from Src.Util.os import check_file_existence, suppress_output
|
||||
from Src.Util.console import console
|
||||
from .util import has_audio_stream, need_to_force_to_ts, check_ffmpeg_input, check_duration_v_a
|
||||
from .capture import capture_ffmpeg_real_time
|
||||
from ..M3U8.parser import M3U8_Codec
|
||||
from ..M3U8 import M3U8_Codec
|
||||
|
||||
|
||||
# Config
|
||||
|
@ -1,6 +1,9 @@
|
||||
# 02.04.24
|
||||
# 09.06.24
|
||||
|
||||
from .decryption import M3U8_Decryption
|
||||
from .estimator import M3U8_Ts_Estimator
|
||||
from .parser import M3U8_Parser, M3U8_Codec
|
||||
from .url_fixer import M3U8_UrlFix
|
||||
from .helper import (
|
||||
M3U8_Decryption,
|
||||
M3U8_Ts_Estimator,
|
||||
M3U8_Parser,
|
||||
M3U8_Codec,
|
||||
M3U8_UrlFix
|
||||
)
|
6
Src/Lib/M3U8/helper/__init__.py
Normal file
6
Src/Lib/M3U8/helper/__init__.py
Normal file
@ -0,0 +1,6 @@
|
||||
# 02.04.24
|
||||
|
||||
from .decryptor import M3U8_Decryption
|
||||
from .estimator import M3U8_Ts_Estimator
|
||||
from .parser import M3U8_Parser, M3U8_Codec
|
||||
from .url_fixer import M3U8_UrlFix
|
@ -4,7 +4,7 @@ import logging
|
||||
|
||||
|
||||
# Internal utilities
|
||||
from .lib_parser import load
|
||||
from ..parser import load
|
||||
|
||||
|
||||
# External libraries
|
@ -5,7 +5,7 @@ from collections import namedtuple
|
||||
|
||||
|
||||
# Internal utilities
|
||||
from ..lib_parser import parser
|
||||
from ..parser import parser
|
||||
|
||||
|
||||
# Variable
|
||||
@ -13,7 +13,6 @@ StreamInfo = namedtuple('StreamInfo', ['bandwidth', 'program_id', 'resolution',
|
||||
Media = namedtuple('Media', ['uri', 'type', 'group_id', 'language', 'name','default', 'autoselect', 'forced', 'characteristics'])
|
||||
|
||||
|
||||
|
||||
class M3U8:
|
||||
"""
|
||||
Represents a single M3U8 playlist. Should be instantiated with the content as string.
|
@ -6,7 +6,7 @@ import datetime
|
||||
|
||||
|
||||
# Internal utilities
|
||||
from ..lib_parser import protocol
|
||||
from ..parser import protocol
|
||||
from ._util import (
|
||||
remove_quotes,
|
||||
remove_quotes_parser,
|
@ -13,13 +13,11 @@ def read_file(file_path):
|
||||
return m3u8_content
|
||||
|
||||
|
||||
|
||||
# Import
|
||||
from Src.Lib.M3U8.lib_parser import M3U8
|
||||
from Src.Lib.M3U8.parser import M3U8
|
||||
from Src.Lib.M3U8 import M3U8_Parser
|
||||
|
||||
|
||||
|
||||
# Test data
|
||||
obj_m3u8_parser = M3U8_Parser()
|
||||
base_path_file = os.path.join('Test', 'data', 'm3u8')
|
||||
|
@ -17,7 +17,7 @@
|
||||
"proxy": []
|
||||
},
|
||||
"M3U8_DOWNLOAD": {
|
||||
"tdqm_workers": 4,
|
||||
"tdqm_workers": 3,
|
||||
"tqdm_delay": 0.01,
|
||||
"tqdm_use_large_bar": true,
|
||||
"download_video": true,
|
||||
|
@ -1,7 +1,6 @@
|
||||
requests
|
||||
bs4
|
||||
certifi
|
||||
tqdm
|
||||
rich
|
||||
tqdm
|
||||
unidecode
|
||||
fake-useragent
|
Loading…
x
Reference in New Issue
Block a user