Is it possible to add videos in bulk by a script instead of using the upload page of MediaCMS? #960
Replies: 2 comments 5 replies
-
Using the Django shell you can run this script that will allow you to import all the files within a directory without uploading and having a copy created. Enter the shell Then run the script below, remember to swap out the directory_path to the directory that you want to import.
|
Beta Was this translation helpful? Give feedback.
-
hey, I'm trying to use the above script, but I am wondering if this is a typo, since it doesn't work: --- edit --- through some trial & error I managed to get it to run. steps: make sure to:
steps:
this feels very roundabout, so there must be a proper way to do it, but this worked for me. |
Beta Was this translation helpful? Give feedback.
-
Hello all,
I have a lot of videos that I want to add without using the upload feature of MediaCMS because I prefer to script this when possible. Maybe someone already did this before and wants to share his/her experiences? The reason that I want to script this is because the upload page of MediaCMS often gets erros like "upload failed", where afterwards strangely enough the upload succeeded. This is just one example. Maybe the API can be used for example?
I have limited experience in Python but I am learning and also really want to learn.
Many thanks for your thoughts!
Beta Was this translation helpful? Give feedback.
All reactions