refactor: strip obvious comments
This commit is contained in:
@@ -38,7 +38,6 @@ class PlayQueueResponse {
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the index of the selected item in the current window
|
||||
int? get selectedItemIndex {
|
||||
if (items == null || playQueueSelectedItemID == null) return null;
|
||||
return items!.indexWhere((item) => item is PlexMediaItem && item.playQueueItemId == playQueueSelectedItemID);
|
||||
|
||||
@@ -4,16 +4,12 @@ import '../../media/media_version.dart';
|
||||
/// Consolidated data model containing all information needed for video playback.
|
||||
/// This model combines data from multiple Plex API endpoints to reduce redundant requests.
|
||||
class PlexVideoPlaybackData {
|
||||
/// Direct video URL for playback
|
||||
final String? videoUrl;
|
||||
|
||||
/// Media information including audio/subtitle tracks and chapters
|
||||
final MediaSourceInfo? mediaInfo;
|
||||
|
||||
/// Available media versions/qualities for this content
|
||||
final List<MediaVersion> availableVersions;
|
||||
|
||||
/// Markers for intro/credits skip functionality
|
||||
final List<MediaMarker> markers;
|
||||
|
||||
PlexVideoPlaybackData({
|
||||
@@ -23,9 +19,7 @@ class PlexVideoPlaybackData {
|
||||
this.markers = const [],
|
||||
});
|
||||
|
||||
/// Returns true if this playback data has a valid video URL
|
||||
bool get hasValidVideoUrl => videoUrl != null && videoUrl!.isNotEmpty;
|
||||
|
||||
/// Returns true if media info is available
|
||||
bool get hasMediaInfo => mediaInfo != null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user