mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed api key unpacking
This commit is contained in:
parent
22172d8b57
commit
cbd93d2b33
@ -79,7 +79,7 @@ def get_scrobbles_num_external(**keys):
|
|||||||
|
|
||||||
@api.get("tracks")
|
@api.get("tracks")
|
||||||
def get_tracks_external(**keys):
|
def get_tracks_external(**keys):
|
||||||
k_filter, _, _, _ = uri_to_internal(keys,forceArtist=True)
|
k_filter, _, _, _, _ = uri_to_internal(keys,forceArtist=True)
|
||||||
ckeys = {**k_filter}
|
ckeys = {**k_filter}
|
||||||
|
|
||||||
result = get_tracks(**ckeys)
|
result = get_tracks(**ckeys)
|
||||||
@ -108,7 +108,7 @@ def get_charts_artists_external(**keys):
|
|||||||
|
|
||||||
@api.get("charts/tracks")
|
@api.get("charts/tracks")
|
||||||
def get_charts_tracks_external(**keys):
|
def get_charts_tracks_external(**keys):
|
||||||
k_filter, k_time, _, _ = uri_to_internal(keys,forceArtist=True)
|
k_filter, k_time, _, _, _ = uri_to_internal(keys,forceArtist=True)
|
||||||
ckeys = {**k_filter, **k_time}
|
ckeys = {**k_filter, **k_time}
|
||||||
|
|
||||||
result = get_charts_tracks(**ckeys)
|
result = get_charts_tracks(**ckeys)
|
||||||
@ -165,7 +165,7 @@ def get_top_tracks_external(**keys):
|
|||||||
|
|
||||||
@api.get("artistinfo")
|
@api.get("artistinfo")
|
||||||
def artistInfo_external(**keys):
|
def artistInfo_external(**keys):
|
||||||
k_filter, _, _, _ = uri_to_internal(keys,forceArtist=True)
|
k_filter, _, _, _, _ = uri_to_internal(keys,forceArtist=True)
|
||||||
ckeys = {**k_filter}
|
ckeys = {**k_filter}
|
||||||
|
|
||||||
results = artistInfo(**ckeys)
|
results = artistInfo(**ckeys)
|
||||||
@ -179,7 +179,7 @@ def trackInfo_external(artist:Multi[str],**keys):
|
|||||||
keys = FormsDict(keys)
|
keys = FormsDict(keys)
|
||||||
for a in artist:
|
for a in artist:
|
||||||
keys.append("artist",a)
|
keys.append("artist",a)
|
||||||
k_filter, _, _, _ = uri_to_internal(keys,forceTrack=True)
|
k_filter, _, _, _, _ = uri_to_internal(keys,forceTrack=True)
|
||||||
ckeys = {**k_filter}
|
ckeys = {**k_filter}
|
||||||
|
|
||||||
results = trackInfo(**ckeys)
|
results = trackInfo(**ckeys)
|
||||||
|
@ -62,7 +62,13 @@
|
|||||||
|
|
||||||
<h2>Admin Mode</h2>
|
<h2>Admin Mode</h2>
|
||||||
|
|
||||||
Admin Mode allows you to manually scrobble from various places on the web interface instead of just the dedicated page.<br/><br/>
|
With Admin Mode activated, you can:
|
||||||
|
<ul>
|
||||||
|
<li>manually scrobble from track pages</li>
|
||||||
|
<li>upload artist and track art by dropping a file on the existing image on an artist or track page</li>
|
||||||
|
<li>see more detailed error pages</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
{% if adminmode %}
|
{% if adminmode %}
|
||||||
<span id="adminmodebutton" class="button" onclick="deactivate()">Deactivate</span>
|
<span id="adminmodebutton" class="button" onclick="deactivate()">Deactivate</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
Reference in New Issue
Block a user