chore: Bump version to 0.6.1 and update decorators to use new cache system

This commit is contained in:
sha
2026-01-02 11:01:08 +00:00
parent 60f32a7e8c
commit e64aaf320b
17 changed files with 799 additions and 27 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ class DefaultExtractor:
def extract_extension(self) -> Optional[str]:
"""Return file extension. Returns None as no extension is available."""
return None
return "ext"
def extract_tmdb_url(self) -> Optional[str]:
"""Return TMDB URL. Returns None as no TMDB URL is available."""
+1 -1
View File
@@ -7,7 +7,7 @@ file system metadata such as size, timestamps, paths, and extensions.
from pathlib import Path
import logging
import os
from ..decorators import cached_method
from ..cache import cached_method
# Set up logging conditionally
if os.getenv('FORMATTER_LOG', '0') == '1':
+1 -1
View File
@@ -8,7 +8,7 @@ from ..constants import (
is_valid_year,
CYRILLIC_TO_ENGLISH
)
from ..decorators import cached_method
from ..cache import cached_method
from ..utils.pattern_utils import PatternExtractor
import langcodes
+1 -1
View File
@@ -2,7 +2,7 @@ from pathlib import Path
from pymediainfo import MediaInfo
from collections import Counter
from ..constants import FRAME_CLASSES, MEDIA_TYPES
from ..decorators import cached_method
from ..cache import cached_method
import langcodes
import logging
+1 -1
View File
@@ -8,7 +8,7 @@ import mutagen
import logging
from pathlib import Path
from ..constants import MEDIA_TYPES
from ..decorators import cached_method
from ..cache import cached_method
logger = logging.getLogger(__name__)