use res['title'] to as a new filename#82
Conversation
akash5100
commented
Oct 1, 2022
- closes Update default filename for createMovie and createScreenshot #74
|
Do we need to be worried about the test failure or is it just a side effect of using the dev API? |
That's beta being beta. The image with that ID was deleted. I put a new one there and modified it so it won't get deleted again. Rerunning the job, should pass now. |
|
There is now a windows failure: I wonder if we need to sanitize the title? |
sanitize the title? |
|
Yes, I wonder if the windows error is due to the fact the filesystem does not support all of those characters. If that is the case, the title needs to be cleaned of bad characters. |
|
You can do something like this: import re
clean_filename = re.sub(r"[^\w\-_\. ]", "_", title) |
|
I am going to merge this and update the change and the other issue on a new PR |