mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 07:40:41 -08:00
- Implemented `restore` command to restore the media registry from backup files, with options for verification and backup of current registry. - Created `search` command to search through the local media registry with various filtering options. - Added `stats` command to display detailed statistics about the local media registry, including breakdowns by genre, format, and year. - Developed `sync` command to synchronize the local registry with a remote media API, allowing for both download and upload of media lists. - Included example usage for the registry commands in `examples.py`. - Fixed tag filtering logic in `MediaRegistryService` to ensure correct filtering based on tags.
32 lines
656 B
Python
32 lines
656 B
Python
"""
|
|
Example usage for the registry command
|
|
"""
|
|
|
|
main = """
|
|
|
|
Examples:
|
|
# Sync with remote AniList
|
|
fastanime registry sync --upload --download
|
|
|
|
# Show detailed registry statistics
|
|
fastanime registry stats --detailed
|
|
|
|
# Search local registry
|
|
fastanime registry search "attack on titan"
|
|
|
|
# Export registry to JSON
|
|
fastanime registry export --format json --output backup.json
|
|
|
|
# Import from backup
|
|
fastanime registry import backup.json
|
|
|
|
# Clean up orphaned entries
|
|
fastanime registry clean --dry-run
|
|
|
|
# Create full backup
|
|
fastanime registry backup --compress
|
|
|
|
# Restore from backup
|
|
fastanime registry restore backup.tar.gz
|
|
"""
|