mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 20:15:24 +00:00
Fix episode anime
This commit is contained in:
parent
959adbab22
commit
020ade73cd
@ -15,7 +15,7 @@ from StreamingCommunity.TelegramHelp.telegram_bot import TelegramSession, get_bo
|
|||||||
|
|
||||||
# Logic class
|
# Logic class
|
||||||
from .util.ScrapeSerie import ScrapeSerieAnime
|
from .util.ScrapeSerie import ScrapeSerieAnime
|
||||||
from StreamingCommunity.Api.Template.Util import manage_selection
|
from StreamingCommunity.Api.Template.Util import manage_selection, dynamic_format_number
|
||||||
from StreamingCommunity.Api.Template.Class.SearchType import MediaItem
|
from StreamingCommunity.Api.Template.Class.SearchType import MediaItem
|
||||||
|
|
||||||
|
|
||||||
@ -64,8 +64,7 @@ def download_episode(index_select: int, scrape_serie: ScrapeSerieAnime, video_so
|
|||||||
video_source.get_embed(obj_episode.id)
|
video_source.get_embed(obj_episode.id)
|
||||||
|
|
||||||
# Create output path
|
# Create output path
|
||||||
title_name = f"{obj_episode.number}.mp4"
|
title_name = f"{scrape_serie.series_name}_EP_{dynamic_format_number(int(obj_episode.number))}.mp4"
|
||||||
title_name = f"{scrape_serie.series_name}_EP_{obj_episode.number}.mp4"
|
|
||||||
|
|
||||||
if scrape_serie.is_series:
|
if scrape_serie.is_series:
|
||||||
mp4_path = os_manager.get_sanitize_path(os.path.join(ANIME_FOLDER, scrape_serie.series_name))
|
mp4_path = os_manager.get_sanitize_path(os.path.join(ANIME_FOLDER, scrape_serie.series_name))
|
||||||
|
@ -119,8 +119,8 @@ def MP4_downloader(url: str, path: str, referer: str = None, headers_: dict = No
|
|||||||
bar_format=f"{Colors.YELLOW}[MP4]{Colors.WHITE}: "
|
bar_format=f"{Colors.YELLOW}[MP4]{Colors.WHITE}: "
|
||||||
f"{Colors.RED}{{percentage:.2f}}% {Colors.MAGENTA}{{bar}} {Colors.WHITE}[ "
|
f"{Colors.RED}{{percentage:.2f}}% {Colors.MAGENTA}{{bar}} {Colors.WHITE}[ "
|
||||||
f"{Colors.YELLOW}{{n_fmt}}{Colors.WHITE} / {Colors.RED}{{total_fmt}} {Colors.WHITE}] "
|
f"{Colors.YELLOW}{{n_fmt}}{Colors.WHITE} / {Colors.RED}{{total_fmt}} {Colors.WHITE}] "
|
||||||
f"{Colors.YELLOW}{{elapsed}} {Colors.WHITE}< {Colors.CYAN}{{remaining}} {Colors.WHITE}| "
|
f"{Colors.YELLOW}{{elapsed}} {Colors.WHITE}< {Colors.CYAN}{{remaining}}{Colors.WHITE}, "
|
||||||
f"{Colors.YELLOW}{{rate_fmt}}{{postfix}} {Colors.WHITE}]",
|
f"{Colors.YELLOW}{{rate_fmt}}{{postfix}} ",
|
||||||
unit='iB',
|
unit='iB',
|
||||||
unit_scale=True,
|
unit_scale=True,
|
||||||
desc='Downloading',
|
desc='Downloading',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user