mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
feature: Add guest actors to episode view (#299)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
71eab225f9
commit
7a50e0cb0f
7 changed files with 55 additions and 7 deletions
7
lib/util/people_extension.dart
Normal file
7
lib/util/people_extension.dart
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import 'package:fladder/jellyfin/jellyfin_open_api.enums.swagger.dart';
|
||||
import 'package:fladder/models/items/item_shared_models.dart';
|
||||
|
||||
extension PeopleExtension on List<Person> {
|
||||
List<Person> get guestActors => where((person) => person.type == PersonKind.gueststar).toList();
|
||||
List<Person> get mainCast => where((person) => person.type != PersonKind.gueststar).toList();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue