Skip to content

Commit

Permalink
err fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fagci committed Mar 25, 2021
1 parent 43fd99c commit 0ed64bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtsp_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def capture(stream_url, prefer_ffmpeg=False, capture_callback=None):
if captured and capture_callback:
import subprocess
subprocess.Popen([capture_callback, stream_url,
str(img_path), geoip_str_online(up.hostname)]).communicate(timeout=25)
str(img_path), geoip_str_online(up.hostname).encode().decode('ascii', errors='ignore')]).communicate(timeout=25)


def main(urls_file, ff=False, cb=''):
Expand Down

0 comments on commit 0ed64bb

Please sign in to comment.