Skip to content

Commit

Permalink
Update to match revised format of call to MBAPIHelper class
Browse files Browse the repository at this point in the history
  • Loading branch information
rdswift committed Jul 28, 2023
1 parent c5708b2 commit 41b245a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/submit_isrc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020-2021 Bob Swift (rdswift)
# Copyright (C) 2020-2021, 2023 Bob Swift (rdswift)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -43,8 +43,8 @@
the submission was successful.
</p>
'''
PLUGIN_VERSION = '1.0'
PLUGIN_API_VERSIONS = ['2.0', '2.1', '2.2', '2.3', '2.6']
PLUGIN_VERSION = '1.1'
PLUGIN_API_VERSIONS = ['2.0', '2.1', '2.2', '2.3', '2.6', '2.9']
PLUGIN_LICENSE = "GPL-2.0"
PLUGIN_LICENSE_URL = "https://www.gnu.org/licenses/gpl-2.0.txt"

Expand Down Expand Up @@ -226,10 +226,10 @@ def callback(self, album):
# Set up parameters for the helper
client_string = 'Picard_Plugin_{0}-v{1}'.format(PLUGIN_NAME, PLUGIN_VERSION).replace(' ', '_')
handler = self.submission_handler
path_list = ['recording']
path = '/recording'
params = {"client": client_string}

return helper.post(path_list, data, handler, priority=True,
return helper.post(path, data, handler, priority=True,
queryargs=params, parse_response_type="xml",
request_mimetype="application/xml; charset=utf-8")

Expand Down

0 comments on commit 41b245a

Please sign in to comment.