add option to load extra data when retrieving by username

This commit is contained in:
Taah
2022-05-08 17:56:06 -07:00
parent 9557737915
commit 0f76222f90
2 changed files with 9 additions and 4 deletions

View File

@ -81,7 +81,7 @@ public class DataUtils
}
}
public static PlexPlayer getPlayer(String username)
public static PlexPlayer getPlayer(String username, boolean loadExtraData)
{
if (Plex.get().getStorageType() == StorageType.MONGODB)
{
@ -89,7 +89,7 @@ public class DataUtils
}
else
{
return Plex.get().getSqlPlayerData().getByName(username);
return Plex.get().getSqlPlayerData().getByName(username, loadExtraData);
}
}