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:
parent
38d4716dc5
commit
5c2928e13b
@ -1,5 +1,6 @@
|
|||||||
from . import native_v1
|
from . import native_v1
|
||||||
from .audioscrobbler import Audioscrobbler
|
from .audioscrobbler import Audioscrobbler
|
||||||
|
from .audioscrobbler_legacy import AudioscrobblerLegacy
|
||||||
from .listenbrainz import Listenbrainz
|
from .listenbrainz import Listenbrainz
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
@ -11,7 +12,8 @@ native_apis = [
|
|||||||
]
|
]
|
||||||
standardized_apis = [
|
standardized_apis = [
|
||||||
Listenbrainz(),
|
Listenbrainz(),
|
||||||
Audioscrobbler()
|
Audioscrobbler(),
|
||||||
|
AudioscrobblerLegacy()
|
||||||
]
|
]
|
||||||
|
|
||||||
def init_apis(server):
|
def init_apis(server):
|
||||||
|
@ -2,11 +2,11 @@ from ._base import APIHandler
|
|||||||
from ._exceptions import *
|
from ._exceptions import *
|
||||||
from .. import database
|
from .. import database
|
||||||
|
|
||||||
class Audioscrobbler(APIHandler):
|
class AudioscrobblerLegacy(APIHandler):
|
||||||
__apiname__ = "Legacy Audioscrobbler"
|
__apiname__ = "Legacy Audioscrobbler"
|
||||||
__doclink__ = "https://web.archive.org/web/20190531021725/https://www.last.fm/api/submissions"
|
__doclink__ = "https://web.archive.org/web/20190531021725/https://www.last.fm/api/submissions"
|
||||||
__aliases__ = [
|
__aliases__ = [
|
||||||
"legacyaudioscrobbler"
|
"audioscrobbler/1.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
def init(self):
|
def init(self):
|
Loading…
Reference in New Issue
Block a user