summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/subliminal_patch/subtitle.py3
-rw-r--r--libs/subzero/language.py3
2 files changed, 2 insertions, 4 deletions
diff --git a/libs/subliminal_patch/subtitle.py b/libs/subliminal_patch/subtitle.py
index 9c8094b86..406baed70 100644
--- a/libs/subliminal_patch/subtitle.py
+++ b/libs/subliminal_patch/subtitle.py
@@ -76,8 +76,7 @@ class Subtitle(Subtitle_):
self.use_original_format = original_format
def __repr__(self):
- r_info = str(self.release_info or self.id).replace("\n", " | ").strip()
- return f"<{self.__class__.__name__}: {r_info} [{self.language}]>"
+ return '<%s %r [%s:%s]>' % (self.__class__.__name__, self.page_link, self.language, self._guessed_encoding)
@property
def text(self):
diff --git a/libs/subzero/language.py b/libs/subzero/language.py
index c7f3c3a2d..199856704 100644
--- a/libs/subzero/language.py
+++ b/libs/subzero/language.py
@@ -112,8 +112,7 @@ class Language(Language_):
bool(self.hi) == bool(other.hi))
def __str__(self):
- info = ";".join(f"{k}={v}" for k, v in vars(self).items() if v)
- return f"<{self.__class__.__name__}: {info}>"
+ return super(Language, self).__str__() + (":forced" if self.forced else "")
@property
def basename(self):