Skip to content

Commit

Permalink
suppress WCMP2 language property (#865)
Browse files Browse the repository at this point in the history
* suppress WCMP2 language property

* Update discovery.py

* remove whitespace to make flake8 happy !

---------

Co-authored-by: Maaike <[email protected]>
  • Loading branch information
tomkralidis and maaikelimper authored Feb 4, 2025
1 parent b2dab72 commit 464bac7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wis2box-management/wis2box/metadata/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ def publish_discovery_metadata(metadata: Union[dict, str]):
record_mcf = dm.parse_record(metadata)
record = dm.generate(record_mcf)

if 'language' in record['properties']:
_ = record['properties'].pop('language')

distribution_links = dm.get_distribution_links(record, format_='wcmp2')
# update links, do not extend or we get duplicates
record['links'] = distribution_links
Expand Down

0 comments on commit 464bac7

Please sign in to comment.