Skip to content

Commit

Permalink
Fixed output stripping for invalid characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
PetterKraabol committed Jun 4, 2019
1 parent d28abb4 commit 058dfc2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/PetterKraabol/Twitch-Chat-Downloader',
version='3.0.8',
version='3.0.9',
zip_safe=True,
)
2 changes: 1 addition & 1 deletion tcd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .settings import Settings

__name__: str = 'tcd'
__version__: str = '3.0.8'
__version__: str = '3.0.9'
__all__: List[Callable] = [Arguments, Settings, Downloader, Logger, Log]


Expand Down
3 changes: 2 additions & 1 deletion tcd/pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def output(self, video_data: dict) -> str:
:param video_data: Video data
:return: Output string
"""
output_string = ''.join(c for c in self.format(video_data) if c in self.valid_directory_characters)
video_data['title'] = ''.join(c for c in video_data['title'] if c in self.valid_directory_characters)
output_string = ''.join(c for c in self.format(video_data) if c in self.valid_directory_characters + '/')
return '{}/{}'.format(Arguments().output.rstrip('/').rstrip('\\'), output_string)

@staticmethod
Expand Down

0 comments on commit 058dfc2

Please sign in to comment.