mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
Bump v2.9.2
This commit is contained in:
parent
6ce30c90e5
commit
077b935b75
1
.gitignore
vendored
1
.gitignore
vendored
@ -48,4 +48,3 @@ cmd.txt
|
|||||||
bot_config.json
|
bot_config.json
|
||||||
scripts.json
|
scripts.json
|
||||||
active_requests.json
|
active_requests.json
|
||||||
StreamingCommunity/Api/Site/altadefinizione/*
|
|
||||||
|
@ -8,14 +8,12 @@ class Episode:
|
|||||||
self.data = data
|
self.data = data
|
||||||
|
|
||||||
self.id: int = data.get('id', 0)
|
self.id: int = data.get('id', 0)
|
||||||
self.scws_id: int = data.get('scws_id', 0)
|
|
||||||
self.number: int = data.get('number', 1)
|
self.number: int = data.get('number', 1)
|
||||||
self.name: str = data.get('name', '')
|
self.name: str = data.get('name', '')
|
||||||
self.plot: str = data.get('plot', '')
|
|
||||||
self.duration: int = data.get('duration', 0)
|
self.duration: int = data.get('duration', 0)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"Episode(id={self.id}, number={self.number}, name='{self.name}', plot='{self.plot}', duration={self.duration} sec)"
|
return f"Episode(id={self.id}, number={self.number}, name='{self.name}', duration={self.duration} sec)"
|
||||||
|
|
||||||
class EpisodeManager:
|
class EpisodeManager:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -89,12 +87,9 @@ class Season:
|
|||||||
self.season_data = season_data
|
self.season_data = season_data
|
||||||
|
|
||||||
self.id: int = season_data.get('id', 0)
|
self.id: int = season_data.get('id', 0)
|
||||||
self.scws_id: int = season_data.get('scws_id', 0)
|
|
||||||
self.imdb_id: int = season_data.get('imdb_id', 0)
|
|
||||||
self.number: int = season_data.get('number', 0)
|
self.number: int = season_data.get('number', 0)
|
||||||
self.name: str = season_data.get('name', '')
|
self.name: str = season_data.get('name', '')
|
||||||
self.slug: str = season_data.get('slug', '')
|
self.slug: str = season_data.get('slug', '')
|
||||||
self.plot: str = season_data.get('plot', '')
|
|
||||||
self.type: str = season_data.get('type', '')
|
self.type: str = season_data.get('type', '')
|
||||||
self.seasons_count: int = season_data.get('seasons_count', 0)
|
self.seasons_count: int = season_data.get('seasons_count', 0)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ from .title import download_title
|
|||||||
|
|
||||||
|
|
||||||
# Variable
|
# Variable
|
||||||
indice = 8
|
indice = 3
|
||||||
_useFor = "film_serie"
|
_useFor = "film_serie"
|
||||||
_deprecate = False
|
_deprecate = False
|
||||||
_priority = 2
|
_priority = 2
|
||||||
|
@ -19,7 +19,7 @@ from .film import download_film
|
|||||||
|
|
||||||
|
|
||||||
# Variable
|
# Variable
|
||||||
indice = 9
|
indice = 4
|
||||||
_useFor = "film"
|
_useFor = "film"
|
||||||
_deprecate = False
|
_deprecate = False
|
||||||
_priority = 2
|
_priority = 2
|
||||||
|
@ -20,7 +20,7 @@ from .series import download_thread
|
|||||||
|
|
||||||
|
|
||||||
# Variable
|
# Variable
|
||||||
indice = 3
|
indice = 6
|
||||||
_useFor = "serie"
|
_useFor = "serie"
|
||||||
_deprecate = False
|
_deprecate = False
|
||||||
_priority = 2
|
_priority = 2
|
||||||
|
@ -19,7 +19,7 @@ from .series import download_series
|
|||||||
|
|
||||||
|
|
||||||
# Variable
|
# Variable
|
||||||
indice = 4
|
indice = 5
|
||||||
_useFor = "serie"
|
_useFor = "serie"
|
||||||
_deprecate = False
|
_deprecate = False
|
||||||
_priority = 2
|
_priority = 2
|
||||||
|
@ -15,7 +15,7 @@ from .film import download_film
|
|||||||
|
|
||||||
|
|
||||||
# Variable
|
# Variable
|
||||||
indice = 9
|
indice = 7
|
||||||
_useFor = "film"
|
_useFor = "film"
|
||||||
_deprecate = False
|
_deprecate = False
|
||||||
_priority = 2
|
_priority = 2
|
||||||
|
@ -242,7 +242,7 @@ def join_audios(video_path: str, audio_tracks: List[Dict[str, str]], out_path: s
|
|||||||
|
|
||||||
# Use shortest input path for video and audios
|
# Use shortest input path for video and audios
|
||||||
if not video_audio_same_duration:
|
if not video_audio_same_duration:
|
||||||
logging.info("[red]Use shortest input.")
|
console.log("[red]Use shortest input ...")
|
||||||
ffmpeg_cmd.extend(['-shortest', '-strict', 'experimental'])
|
ffmpeg_cmd.extend(['-shortest', '-strict', 'experimental'])
|
||||||
|
|
||||||
# Overwrite
|
# Overwrite
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
__title__ = 'StreamingCommunity'
|
__title__ = 'StreamingCommunity'
|
||||||
__version__ = '2.9.1'
|
__version__ = '2.9.2'
|
||||||
__author__ = 'Arrowar'
|
__author__ = 'Arrowar'
|
||||||
__description__ = 'A command-line program to download film'
|
__description__ = 'A command-line program to download film'
|
||||||
__copyright__ = 'Copyright 2024'
|
__copyright__ = 'Copyright 2024'
|
||||||
|
2
setup.py
2
setup.py
@ -10,7 +10,7 @@ with open("requirements.txt", "r", encoding="utf-8-sig") as f:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="StreamingCommunity",
|
name="StreamingCommunity",
|
||||||
version="2.9.1",
|
version="2.9.2",
|
||||||
long_description=read_readme(),
|
long_description=read_readme(),
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
author="Lovi-0",
|
author="Lovi-0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user