Instinctlol / automatic-twitch-recorder

Checks if a user on twitch is currently streaming and then records the stream via streamlink
187 stars 40 forks source link

Stream filename errors #14

Closed FirestrikeX closed 5 years ago

FirestrikeX commented 5 years ago

The method you're calling to get a valid filename get_valid_filename from utils under watcher.py does not remove back slashes and forward slashes from stream titles leading to an error in writing the file

file_name = curr_time + " - " + self.streamer + " - " + get_valid_filename(self.stream_title) + ".flv"

Instinctlol commented 5 years ago

Thank you. I'm changing to the better suited sanitize_filename. I didn't know this function existed.

Duplicate of #13