diff --git a/spip2md/articles.py b/spip2md/articles.py index 6867c14..65b6ec8 100644 --- a/spip2md/articles.py +++ b/spip2md/articles.py @@ -49,12 +49,10 @@ class Article: ) def get_path(self) -> str: - return ( - slugify(self.get_section()) + "/" + slugify(f"{self.id}-{self.title}") + "/" - ) + return slugify(self.get_section()) + "/" + slugify(f"{self.title}") + "/" def get_filename(self) -> str: - return "index.fr.md" + return "index." + self.lang + ".md" def get_authors(self) -> tuple: return ( diff --git a/spip2md/main.py b/spip2md/main.py index 0aaeebb..10c2651 100755 --- a/spip2md/main.py +++ b/spip2md/main.py @@ -60,9 +60,7 @@ for article in unknown_chars_articles: nb: int = len(unknown_chars_apparitions) s: str = "s" if nb > 1 else "" print( - f"\n{BOLD}{nb}{RESET} unknown character{s} " - + f"detected in article {BOLD}{article.id}{RESET}" - + f"\n{BOLD}Title:{RESET} " + f"\n{BOLD}{nb}{RESET} unknown character{s} in {BOLD}{article.lang}{RESET} " + highlight_unknown_chars(article.title) ) for text in unknown_chars_apparitions: