Skip to content

Commit

Permalink
Add Jamendo's audiodownload_allowed field to metadata (#3524)
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc authored Dec 15, 2023
1 parent ae6ce54 commit 5fe9fea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions catalog/dags/providers/provider_api_scripts/jamendo.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def _get_metadata(data):
"downloads": stats.get("rate_download_total", 0),
"listens": stats.get("rate_listened_total", 0),
"playlists": stats.get("rate_playlisted_total", 0),
"audiodownload_allowed": data.get("audiodownload_allowed", True),
}
return {k: v for k, v in metadata.items() if v is not None}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def test_get_record_data():
"listens": 5616,
"playlists": 0,
"release_date": "2005-04-12",
"audiodownload_allowed": True,
},
"raw_tags": ["instrumental", "speed_medium"],
"audio_set_foreign_identifier": "119",
Expand Down

0 comments on commit 5fe9fea

Please sign in to comment.