Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial commit for script to create sample data on an Opencast system #50

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

mheyen
Copy link

@mheyen mheyen commented Jun 23, 2021

No description provided.

mheyen added 9 commits June 23, 2021 12:07
Basic request to ingest a test video.
the creator and title of the event are now randomly generated.
more parameters should be added and randomly generated.
The script can now be configured to create a specified number of Series. The events will be randomly added to certain Series.
More meta data (location, series, and more acl details) are added to each event.
Changed the testing video file in the configurations.
@mheyen mheyen marked this pull request as ready for review July 6, 2021 12:58
import os
import sys

sys.path.append(os.path.join(os.path.abspath('..'), "lib"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has to be ../.. for the lib directory here

Copy link
Author

@mheyen mheyen Jul 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me it is working with .. while with ../.. it does not work.
But I am also always calling the script via python generate_events/main.py .

@gregorydlogan
Copy link
Member

I don't seem to be able to find the requisite rest_requests library in pip. A requirements file in the parent directory probably makes sense.

This also is somewhat replaced by https://github.com/opencast/helper-scripts/blob/master/ingest/ingest.py, although this might be more suited for a 'generate a bulk of data' scenario. Are you able to keep working on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants