mirror of
https://github.com/plexusorg/Plex.git
synced 2026-06-05 05:56:54 +00:00
add option to load extra data when retrieving by username
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user