mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-05 02:55:25 +00:00
Bump v2.9.2
This commit is contained in:
parent
6ce30c90e5
commit
077b935b75
3
.gitignore
vendored
3
.gitignore
vendored
@ -47,5 +47,4 @@ note.txt
|
||||
cmd.txt
|
||||
bot_config.json
|
||||
scripts.json
|
||||
active_requests.json
|
||||
StreamingCommunity/Api/Site/altadefinizione/*
|
||||
active_requests.json
|
@ -8,14 +8,12 @@ class Episode:
|
||||
self.data = data
|
||||
|
||||
self.id: int = data.get('id', 0)
|
||||
self.scws_id: int = data.get('scws_id', 0)
|
||||
self.number: int = data.get('number', 1)
|
||||
self.name: str = data.get('name', '')
|
||||
self.plot: str = data.get('plot', '')
|
||||
self.duration: int = data.get('duration', 0)
|
||||
|
||||
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:
|
||||
def __init__(self):
|
||||
@ -89,12 +87,9 @@ class Season:
|
||||
self.season_data = season_data
|
||||
|
||||
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.name: str = season_data.get('name', '')
|
||||
self.slug: str = season_data.get('slug', '')
|
||||
self.plot: str = season_data.get('plot', '')
|
||||
self.type: str = season_data.get('type', '')
|
||||
self.seasons_count: int = season_data.get('seasons_count', 0)
|
||||
|
||||
|
@ -19,7 +19,7 @@ from .title import download_title
|
||||
|
||||
|
||||
# Variable
|
||||
indice = 8
|
||||
indice = 3
|
||||
_useFor = "film_serie"
|
||||
_deprecate = False
|
||||
_priority = 2
|
||||
|
@ -19,7 +19,7 @@ from .film import download_film
|
||||
|
||||
|
||||
# Variable
|
||||
indice = 9
|
||||
indice = 4
|
||||
_useFor = "film"
|
||||
_deprecate = False
|
||||
_priority = 2
|
||||
|
@ -20,7 +20,7 @@ from .series import download_thread
|
||||
|
||||
|
||||
# Variable
|
||||
indice = 3
|
||||
indice = 6
|
||||
_useFor = "serie"
|
||||
_deprecate = False
|
||||
_priority = 2
|
||||
|
@ -19,7 +19,7 @@ from .series import download_series
|
||||
|
||||
|
||||
# Variable
|
||||
indice = 4
|
||||
indice = 5
|
||||
_useFor = "serie"
|
||||
_deprecate = False
|
||||
_priority = 2
|
||||
|
@ -15,7 +15,7 @@ from .film import download_film
|
||||
|
||||
|
||||
# Variable
|
||||
indice = 9
|
||||
indice = 7
|
||||
_useFor = "film"
|
||||
_deprecate = False
|
||||
_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
|
||||
if not video_audio_same_duration:
|
||||
logging.info("[red]Use shortest input.")
|
||||
console.log("[red]Use shortest input ...")
|
||||
ffmpeg_cmd.extend(['-shortest', '-strict', 'experimental'])
|
||||
|
||||
# Overwrite
|
||||
|
@ -1,5 +1,5 @@
|
||||
__title__ = 'StreamingCommunity'
|
||||
__version__ = '2.9.1'
|
||||
__version__ = '2.9.2'
|
||||
__author__ = 'Arrowar'
|
||||
__description__ = 'A command-line program to download film'
|
||||
__copyright__ = 'Copyright 2024'
|
||||
|
Loading…
x
Reference in New Issue
Block a user