Since the prior code for v3 uses list comprehension to build the tracks returned, we can check if we're using v4 and if the data[data_type] is a dictionary, and wrap it in a list to ensure the same behavior. |
||
|---|---|---|
| .. | ||
| applemusic | ||
| spotify | ||
| __init__.py | ||
| enums.py | ||
| events.py | ||
| exceptions.py | ||
| filters.py | ||
| objects.py | ||
| player.py | ||
| pool.py | ||
| py.typed | ||
| queue.py | ||
| routeplanner.py | ||
| utils.py | ||