1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Renaming and organization

This commit is contained in:
Krateng 2020-10-29 15:56:51 +01:00
parent 38d4716dc5
commit 5c2928e13b
2 changed files with 5 additions and 3 deletions

View File

@ -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):

View File

@ -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):