How to make a PDF transcript to upload to Avalon.ΒΆ
This page explains how to generate pdfs for a collection of objects using existing metadata already on Avalon and a folder of .vtts with the transcripts.
Download existing metadata by using pyavalon.
In the terminal enter
pyavalon get_file_ids_from_a_collection -c "{collection id}" -i {pre or prod}
.A .csv will generate with metadata for the title, creator, contributor, date, rights information, publisher, subjects, derivative file, a parent work file id, a file id, a file title, and a work title.
Create your own
{collection-name}-pdfs.csv
. Include the following columns:
Use the function pdf-build.py. Change the
collection_title
and the line below it to have the name of your collection and csv you just created. Make sure you have a folder for your pdfs to save and change theoutput_filename
and the vtt location.Run
python pdf-build.py
.To upload to Avalon, look at the documentation Importing media into Avalon via API Key. PDFs can only be imported through the API key, never through spreadsheets.