feat: Bump version to 0.4.2, update TMDBExtractor to include original language in title, and adjust media formatter value formatters
This commit is contained in:
BIN
dist/renamer-0.4.2-py3-none-any.whl
vendored
Normal file
BIN
dist/renamer-0.4.2-py3-none-any.whl
vendored
Normal file
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "renamer"
|
name = "renamer"
|
||||||
version = "0.4.1"
|
version = "0.4.2"
|
||||||
description = "Terminal-based media file renamer and metadata viewer"
|
description = "Terminal-based media file renamer and metadata viewer"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ class TMDBExtractor:
|
|||||||
"""Extract TMDB original title"""
|
"""Extract TMDB original title"""
|
||||||
movie_info = self._get_movie_info()
|
movie_info = self._get_movie_info()
|
||||||
if movie_info:
|
if movie_info:
|
||||||
return movie_info.get('original_title')
|
return f"({movie_info.get('original_language')}) {movie_info.get('original_title')}"
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def extract_year(self) -> Optional[str]:
|
def extract_year(self) -> Optional[str]:
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ class MediaFormatter:
|
|||||||
"label": "Year",
|
"label": "Year",
|
||||||
"label_formatters": [TextFormatter.bold, TextFormatter.blue],
|
"label_formatters": [TextFormatter.bold, TextFormatter.blue],
|
||||||
"value": self.extractor.get("year") or "<None>",
|
"value": self.extractor.get("year") or "<None>",
|
||||||
"value_formatters": [TextFormatter.yellow, DateFormatter.format_year],
|
"value_formatters": [TextFormatter.yellow],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Special info",
|
"label": "Special info",
|
||||||
|
|||||||
Reference in New Issue
Block a user