refactor: fix variable naming, indentation, remove debug log
This commit is contained in:
@@ -1127,9 +1127,8 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
final watchFromStart = await _showWatchFromStartDialog(effectiveStart, nowEpoch);
|
||||
if (!mounted) return;
|
||||
if (watchFromStart == true) {
|
||||
final _programBeginsAtOffset = _programBeginsAt! - _captureBuffer!.startedAt.round();
|
||||
appLogger.d('Watch from start: _programBeginsAtOffset=${_programBeginsAtOffset}, _captureBuffer!.seekStartSeconds.round()=${_captureBuffer!.seekStartSeconds.round()}');
|
||||
offsetSeconds = max(_programBeginsAtOffset, _captureBuffer!.seekStartSeconds.round());
|
||||
final programBeginsAtOffset = _programBeginsAt! - _captureBuffer!.startedAt.round();
|
||||
offsetSeconds = max(programBeginsAtOffset, _captureBuffer!.seekStartSeconds.round());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2656,11 +2656,11 @@ class PlexClient {
|
||||
final firstMedia = media.first;
|
||||
if (firstMedia is Map<String, dynamic>) {
|
||||
final rawBeginsAt = firstMedia['beginsAt'];
|
||||
beginsAt = switch (rawBeginsAt) {
|
||||
num n => n.toInt(),
|
||||
String s => int.tryParse(s),
|
||||
_ => null,
|
||||
};
|
||||
beginsAt = switch (rawBeginsAt) {
|
||||
num n => n.toInt(),
|
||||
String s => int.tryParse(s),
|
||||
_ => null,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user