Skip to content

Commit

Permalink
shuffle on restart
Browse files Browse the repository at this point in the history
  • Loading branch information
subinps committed Dec 30, 2021
1 parent ececd56 commit ce02b0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,8 @@ async def sync_from_db():
for var in Config.CONFIG_LIST:
setattr(Config, var, await db.get_config(var))
Config.playlist = await db.get_playlist()
if Config.playlist and Config.SHUFFLE:
await shuffle_playlist()

async def add_to_db_playlist(song):
if Config.DATABASE_URI:
Expand Down

0 comments on commit ce02b0a

Please sign in to comment.