Skip to content

Commit 49a9583

Browse files
committed
Fix ruff
1 parent f6a36d6 commit 49a9583

File tree

14 files changed

+17
-18
lines changed

14 files changed

+17
-18
lines changed

StreamingCommunity/Api/Service/crunchyroll/film.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ def download_film(select_title: MediaItem) -> str:
9393
playback_token = token or query_params.get('playbackGuid', [None])[0]
9494
if playback_token:
9595
client.delete_active_stream(url_id, playback_token)
96-
console.print("[dim]Playback session closed[/dim]")
96+
console.print("[dim]Playback session closed")
9797

9898
return status['path'], status['stopped']

StreamingCommunity/Api/Service/crunchyroll/series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scra
5353

5454
# Get episode information
5555
obj_episode = scrape_serie.selectEpisode(index_season_selected, index_episode_selected-1)
56-
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.get('name')}[/magenta] ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
56+
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.get('name')} ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
5757

5858
# Define filename and path for the downloaded video
5959
mp4_name = f"{map_episode_title(scrape_serie.series_name, index_season_selected, index_episode_selected, obj_episode.get('name'))}.{extension_output}"
@@ -104,7 +104,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scra
104104
playback_token = token or query_params.get('playbackGuid', [None])[0]
105105
if playback_token:
106106
client.delete_active_stream(url_id, playback_token)
107-
console.print("[dim]Playback session closed[/dim]")
107+
console.print("[dim]Playback session closed")
108108

109109
return status['path'], status['stopped']
110110

StreamingCommunity/Api/Service/discovery/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scra
5050

5151
# Get episode information
5252
obj_episode = scrape_serie.selectEpisode(index_season_selected, index_episode_selected - 1)
53-
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name}[/magenta] ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
53+
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name} ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
5454

5555
# Define output path
5656
mp4_name = f"{map_episode_title(scrape_serie.series_name, index_season_selected, index_episode_selected, obj_episode.name)}.{extension_output}"

StreamingCommunity/Api/Service/dmax/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scra
5151

5252
# Get episode information
5353
obj_episode = scrape_serie.selectEpisode(index_season_selected, index_episode_selected-1)
54-
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name}[/magenta] ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
54+
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name} ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
5555

5656
# Define filename and path for the downloaded video
5757
mp4_name = f"{map_episode_title(scrape_serie.series_name, index_season_selected, index_episode_selected, obj_episode.name)}.{extension_output}"

StreamingCommunity/Api/Service/guardaserie/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scra
5353
# Get episode information
5454
obj_episode = scrape_serie.selectEpisode(index_season_selected, index_episode_selected-1)
5555
index_season_selected_formatted = dynamic_format_number(str(index_season_selected))
56-
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.tv_name} \\ [magenta]{obj_episode.get('name')}[/magenta] ([cyan]S{index_season_selected_formatted}E{index_episode_selected}) \n")
56+
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.tv_name} \\ [magenta]{obj_episode.get('name')} ([cyan]S{index_season_selected_formatted}E{index_episode_selected}) \n")
5757

5858
# Define filename and path for the downloaded video
5959
mp4_name = f"{map_episode_title(scrape_serie.tv_name, index_season_selected_formatted, index_episode_selected, obj_episode.get('name'))}.{extension_output}"

StreamingCommunity/Api/Service/mediasetinfinity/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scra
5353

5454
# Get episode information
5555
obj_episode = scrape_serie.selectEpisode(index_season_selected, index_episode_selected-1)
56-
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name}[/magenta] ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
56+
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name} ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
5757

5858
# Define filename and path for the downloaded video
5959
mp4_name = f"{map_episode_title(scrape_serie.series_name, index_season_selected, index_episode_selected, obj_episode.name)}.{extension_output}"

StreamingCommunity/Api/Service/raiplay/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scra
5656

5757
# Get episode information
5858
obj_episode = scrape_serie.selectEpisode(index_season_selected, index_episode_selected-1)
59-
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name}[/magenta] ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
59+
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name} ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
6060

6161
# Define filename and path
6262
mp4_name = f"{map_episode_title(scrape_serie.series_name, index_season_selected, index_episode_selected, obj_episode.name)}.{extension_output}"

StreamingCommunity/Api/Service/realtime/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scra
5151

5252
# Get episode information
5353
obj_episode = scrape_serie.selectEpisode(index_season_selected, index_episode_selected-1)
54-
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name}[/magenta] ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
54+
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name} ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
5555

5656
# Define filename and path for the downloaded video
5757
mp4_name = f"{map_episode_title(scrape_serie.series_name, index_season_selected, index_episode_selected, obj_episode.name)}.{extension_output}"

StreamingCommunity/Api/Service/streamingcommunity/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scra
5252

5353
# Get episode information
5454
obj_episode = scrape_serie.selectEpisode(index_season_selected, index_episode_selected-1)
55-
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name}[/magenta] ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
55+
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name} ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
5656

5757
# Define filename and path for the downloaded video
5858
mp4_name = f"{map_episode_title(scrape_serie.series_name, index_season_selected, index_episode_selected, obj_episode.name)}.{extension_output}"

StreamingCommunity/Api/Service/tubitv/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scra
5252

5353
# Get episode information
5454
obj_episode = scrape_serie.selectEpisode(index_season_selected, index_episode_selected-1)
55-
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name}[/magenta] ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
55+
console.print(f"\n[yellow]Download: [red]{site_constants.SITE_NAME} → [cyan]{scrape_serie.series_name} \\ [magenta]{obj_episode.name} ([cyan]S{index_season_selected}E{index_episode_selected}) \n")
5656

5757
# Define filename and path for the downloaded video
5858
mp4_name = f"{map_episode_title(scrape_serie.series_name, index_season_selected, index_episode_selected, obj_episode.name)}.{extension_output}"

0 commit comments

Comments
 (0)