diff --git a/maloja/apis/__init__.py b/maloja/apis/__init__.py index 08576ea..f226513 100644 --- a/maloja/apis/__init__.py +++ b/maloja/apis/__init__.py @@ -1,5 +1,6 @@ from . import native_v1 from .audioscrobbler import Audioscrobbler +from .audioscrobbler_legacy import AudioscrobblerLegacy from .listenbrainz import Listenbrainz import copy @@ -11,7 +12,8 @@ native_apis = [ ] standardized_apis = [ Listenbrainz(), - Audioscrobbler() + Audioscrobbler(), + AudioscrobblerLegacy() ] def init_apis(server): diff --git a/maloja/apis/legacy_audioscrobber.py b/maloja/apis/audioscrobbler_legacy.py similarity index 98% rename from maloja/apis/legacy_audioscrobber.py rename to maloja/apis/audioscrobbler_legacy.py index bdcd569..9aede0d 100644 --- a/maloja/apis/legacy_audioscrobber.py +++ b/maloja/apis/audioscrobbler_legacy.py @@ -2,11 +2,11 @@ from ._base import APIHandler from ._exceptions import * from .. import database -class Audioscrobbler(APIHandler): +class AudioscrobblerLegacy(APIHandler): __apiname__ = "Legacy Audioscrobbler" __doclink__ = "https://web.archive.org/web/20190531021725/https://www.last.fm/api/submissions" __aliases__ = [ - "legacyaudioscrobbler" + "audioscrobbler/1.2", ] def init(self):