On turning a title into a safe URL, filename, etc. Stack Overflow question: [[https://stackoverflow.com/questions/295135/turn-a-string-into-a-valid-filename|Turn a string into a valid filename?]] [[https://github.com/un33k/python-slugify|python-slugify]] seems the best approach, and is available as a Debian package. Django defines two functions, [[https://github.com/django/django/blob/main/django/utils/text.py#L235|get_valid_filename()]] and [[https://github.com/django/django/blob/main/django/utils/text.py#L400|slugify()]]; it's not clear the difference between the two, but slugify offers more. [[https://docs.djangoproject.com/en/4.0/ref/utils/#django.utils.text.slugify|Docs for slugify()]]. TODO: Get the version I have for my TV renaming scripts.