app/utils/title.py

6 lines
115 B
Python
Raw Permalink Normal View History

2024-04-19 16:59:43 +00:00
import os
2024-04-19 20:02:44 +00:00
2024-04-19 16:59:43 +00:00
def Title(title: str):
return str(os.path.basename(title)).split('.')[0].title().replace('_', ' ')