Bump v2.9.2

This commit is contained in:
Lovi 2025-03-08 11:32:13 +01:00
parent 6ce30c90e5
commit 077b935b75
10 changed files with 10 additions and 16 deletions

3
.gitignore vendored
View File

@ -47,5 +47,4 @@ note.txt
cmd.txt
bot_config.json
scripts.json
active_requests.json
StreamingCommunity/Api/Site/altadefinizione/*
active_requests.json

View File

@ -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)

View File

@ -19,7 +19,7 @@ from .title import download_title
# Variable
indice = 8
indice = 3
_useFor = "film_serie"
_deprecate = False
_priority = 2

View File

@ -19,7 +19,7 @@ from .film import download_film
# Variable
indice = 9
indice = 4
_useFor = "film"
_deprecate = False
_priority = 2

View File

@ -20,7 +20,7 @@ from .series import download_thread
# Variable
indice = 3
indice = 6
_useFor = "serie"
_deprecate = False
_priority = 2

View File

@ -19,7 +19,7 @@ from .series import download_series
# Variable
indice = 4
indice = 5
_useFor = "serie"
_deprecate = False
_priority = 2

View File

@ -15,7 +15,7 @@ from .film import download_film
# Variable
indice = 9
indice = 7
_useFor = "film"
_deprecate = False
_priority = 2

View File

@ -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

View File

@ -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'

View File

@ -10,7 +10,7 @@ with open("requirements.txt", "r", encoding="utf-8-sig") as f:
setup(
name="StreamingCommunity",
version="2.9.1",
version="2.9.2",
long_description=read_readme(),
long_description_content_type="text/markdown",
author="Lovi-0",