Add ČSFD Anubis bypass, drop legacy preset tags, rename Země → Země původu

This commit is contained in:
2026-06-12 20:30:14 +02:00
parent 22a14b1e41
commit 86c689b9f1
14 changed files with 349 additions and 146 deletions
+2 -5
View File
@@ -51,9 +51,6 @@ class File:
self.title = None
self.csfd_link = None
self.csfd_cache = None
if self.tagmanager:
tag = self.tagmanager.add_tag("Stav", "Nové")
self.tags.append(tag)
def _build_record(self) -> dict:
data = {
@@ -142,7 +139,7 @@ class File:
def apply_csfd_tags(
self, add_genres: bool = True, add_year: bool = True, add_country: bool = True
) -> dict:
"""Načte informace z CSFD a přiřadí tagy (Žánr, Rok, Země); cachuje data.
"""Načte informace z CSFD a přiřadí tagy (Žánr, Rok, Země původu); cachuje data.
Returns:
dict s klíči 'success', 'movie'/'error', 'tags_added'
@@ -173,7 +170,7 @@ class File:
if add_year and movie.year:
_add("Rok", str(movie.year))
if add_country and movie.country:
_add("Země", movie.country)
_add("Země původu", movie.country)
# Use the CSFD title if we don't have one yet
if movie.title and not self.title: