feat: support for "trending" playlists (without authors)
also introduces a fix for text run parsing (by forcing obj to be a dict)
This commit is contained in:
@@ -904,7 +904,7 @@ def playlists(data, req, only_json: bool = False):
|
||||
# no info about what length can playlists be
|
||||
# settle for a basic sanity check instead
|
||||
# if len(plid) not in (18, 34, 36):
|
||||
if not plid.startswith("PL"):
|
||||
if not (plid.startswith("PL") or plid.startswith("OL")):
|
||||
response = {"error": "Only standard playlists are currently supported (no mixes, video-based playlists, etc.)"}
|
||||
if only_json:
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user