From 5c2928e13ba5c1fa282cbd7f8be0fb8afa0cf8da Mon Sep 17 00:00:00 2001 From: Krateng Date: Thu, 29 Oct 2020 15:56:51 +0100 Subject: [PATCH] Renaming and organization --- maloja/apis/__init__.py | 4 +++- .../{legacy_audioscrobber.py => audioscrobbler_legacy.py} | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) rename maloja/apis/{legacy_audioscrobber.py => audioscrobbler_legacy.py} (98%) 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):