forked from alastair/python-musicbrainzngs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquery.py
More file actions
25 lines (18 loc) · 1.03 KB
/
query.py
File metadata and controls
25 lines (18 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import musicbrainzngs as m
def main() -> None:
m.set_useragent("application", "0.01", "http://example.com")
print(m.get_artist_by_id("952a4205-023d-4235-897c-6fdb6f58dfaa", []))
# print m.get_label_by_id("aab2e720-bdd2-4565-afc2-460743585f16")
# print m.get_release_by_id("e94757ff-2655-4690-b369-4012beba6114")
# print m.get_release_group_by_id("9377d65d-ffd5-35d6-b64d-43f86ef9188d")
# print m.get_recording_by_id("cb4d4d70-930c-4d1a-a157-776de18be66a")
# print m.get_work_by_id("7e48685c-72dd-3a8b-9274-4777efb2aa75")
# print m.get_releases_by_discid("BG.iuI50.qn1DOBAWIk8fUYoeHM-")
# print m.get_recordings_by_isrc("GBAYE9300106")
m.auth("", "")
# m.submit_barcodes({"e94757ff-2655-4690-b369-4012beba6114": "9421021463277"})
# m.submit_tags(recording_tags={"cb4d4d70-930c-4d1a-a157-776de18be66a":["these", "are", "my", "tags"]})
# m.submit_tags(artist_tags={"952a4205-023d-4235-897c-6fdb6f58dfaa":["NZ", "twee"]})
# m.submit_ratings(recording_ratings={"cb4d4d70-930c-4d1a-a157-776de18be66a":20})
if __name__ == "__main__":
main()