mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-06 17:53:40 -08:00
chore: ruff check
This commit is contained in:
@@ -575,7 +575,7 @@ def _get_available_episodes(provider, anime, config, feedback):
|
||||
)
|
||||
|
||||
if not provider_anime_data:
|
||||
feedback.warning(f"Failed to get anime details from provider")
|
||||
feedback.warning("Failed to get anime details from provider")
|
||||
return []
|
||||
|
||||
# Check all available translation types
|
||||
@@ -967,7 +967,7 @@ def _show_final_statistics(download_service, feedback):
|
||||
stats = download_service.get_download_statistics()
|
||||
|
||||
if stats:
|
||||
console.print(f"\n[bold blue]Overall Download Statistics:[/bold blue]")
|
||||
console.print("\n[bold blue]Overall Download Statistics:[/bold blue]")
|
||||
console.print(f"Total episodes tracked: {stats.get('total_episodes', 0)}")
|
||||
console.print(f"Successfully downloaded: {stats.get('downloaded', 0)}")
|
||||
console.print(f"Failed downloads: {stats.get('failed', 0)}")
|
||||
|
||||
@@ -16,7 +16,6 @@ def stats(config: "AppConfig"):
|
||||
from rich.markdown import Markdown
|
||||
from rich.panel import Panel
|
||||
|
||||
from .....core.exceptions import FastAnimeError
|
||||
from .....libs.media_api.api import create_api_client
|
||||
from ....service.auth import AuthService
|
||||
from ....service.feedback import FeedbackService
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
Registry backup command - create full backups of the registry
|
||||
"""
|
||||
|
||||
import shutil
|
||||
import tarfile
|
||||
from pathlib import Path
|
||||
from datetime import datetime
|
||||
|
||||
@@ -346,8 +346,6 @@ def _import_data(registry_service, data: dict, merge: bool, dry_run: bool, feedb
|
||||
"""Import data into the registry."""
|
||||
from .....libs.media_api.types import (
|
||||
MediaFormat,
|
||||
MediaGenre,
|
||||
MediaStatus,
|
||||
MediaType,
|
||||
)
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ def update(
|
||||
else:
|
||||
latest_version = release_json.get("tag_name", "unknown")
|
||||
print(f"[yellow]Update available: {latest_version}[/]")
|
||||
print(f"[dim]Run 'fastanime update' to update[/]")
|
||||
print("[dim]Run 'fastanime update' to update[/]")
|
||||
sys.exit(1)
|
||||
else:
|
||||
print("[cyan]Checking for updates and updating if necessary...[/]")
|
||||
|
||||
Reference in New Issue
Block a user