denshoproject / ddr-cmdln

Command-line tools for automating the Densho Digital Repository's various processes.
Other
0 stars 2 forks source link

ddrindex does not generate correct ES json `template` attribute for some A/V entities #155

Closed GeoffFroh closed 5 years ago

GeoffFroh commented 5 years ago

When using ddrindex publish to push up some entities with audio/video content that is hosted externally at IA, the template attribute is not properly generated.

This is due to either empty or incorrect selection of mimetype data that is retrieved from IA by the archivedotorg module. See:

https://github.com/densho/ddr-cmdln/blob/master/ddr/DDR/archivedotorg.py#L137 https://github.com/densho/ddr-cmdln/blob/master/ddr/DDR/archivedotorg.py#L131

GeoffFroh commented 5 years ago

Root cause of https://github.com/densho/ddr-public/issues/123

gjost commented 5 years ago

Fixed in ddr-cmdln commit d4d23ae for package ddrlocal-master_2.8.5.