diff --git a/live_recorder.py b/live_recorder.py index 21b7912..283be82 100644 --- a/live_recorder.py +++ b/live_recorder.py @@ -104,11 +104,11 @@ def get_filename(self, title, format): '?': '?', '/': '/', '\\': '\', - '|': '|', + '|': '|' } for half, full in char_dict.items(): title = title.replace(half, full) - filename = f'[{live_time}]{self.flag}{title}.{format}' + filename = f'[{live_time}]{self.flag}{title[:200]}.{format}' return filename def get_streamlink(self):