You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the `json` format, video titles have characters such as `:`
and `'` stripped:
$ tcd --video 497919915 --format json
code review: dlloverflow's VPNMonitor (Python)
[json] ./497919915.json
$ jq .video.title 497919915.json
"code review dlloverflows VPNMonitor (Python)"
This happens because Pipe.output (called on tcd/downloader.py line 92)
mutates video.data before it's written to the JSON file.
Fix the bug by making Pipe.output not mutate its parameter object:
$ python -m tcd --video 497919915 --format json
code review: dlloverflow's VPNMonitor (Python)
[json] ./497919915.json
$ jq .video.title 497919915.json
"code review: dlloverflow's VPNMonitor (Python)"
0 commit comments