Remove unnecessary boilerplate implementations of get_media_type
#1385
Labels
💻 aspect: code
Concerns the software code in the repository
✨ goal: improvement
Improvement to an existing user-facing feature
good first issue
New-contributor friendly
🟩 priority: low
Low priority and doesn't need to be rushed
🧱 stack: catalog
Related to the catalog and Airflow DAGs
Current Situation
In WordPress/openverse-catalog#821 we introduced a default implementation for
ProviderDataIngester::get_media_type
that removes the need for a large number of boilerplate-y implementations of the function in existing provider classes.Suggested Improvement
We can remove those unnecessary lines of code now that the default implementation covers them. This only applies to providers that handle a single media type.
Benefit
Less code 🙂
Implementation
The text was updated successfully, but these errors were encountered: