diff --git a/lib/core/environment.dart b/lib/core/environment.dart index bd20df7d..0242dca9 100644 --- a/lib/core/environment.dart +++ b/lib/core/environment.dart @@ -16,8 +16,8 @@ const userAgentAppString = String.fromEnvironment('USER_AGENT', defaultValue: '' class Environment { static const _applicationName = 'Anytime'; static const _applicationUrl = 'https://github.com/amugofjava/anytime_podcast_player'; - static const _projectVersion = '1.3.0'; - static const _build = '91'; + static const _projectVersion = '1.3.1'; + static const _build = '92'; static var _agentString = userAgentAppString; diff --git a/lib/repository/sembast/sembast_repository.dart b/lib/repository/sembast/sembast_repository.dart index 918c4569..5ee10d4f 100644 --- a/lib/repository/sembast/sembast_repository.dart +++ b/lib/repository/sembast/sembast_repository.dart @@ -400,7 +400,7 @@ class SembastRepository extends Repository { } Future _cleanupEpisodes() async { - final threshold = DateTime.now().subtract(Duration(days: 32)).millisecondsSinceEpoch; + final threshold = DateTime.now().subtract(Duration(days: 60)).millisecondsSinceEpoch; /// Find all streamed episodes over the threshold. final filter = Filter.and([ diff --git a/lib/services/audio/default_audio_player_service.dart b/lib/services/audio/default_audio_player_service.dart index 6fee9c54..5f4a71d1 100644 --- a/lib/services/audio/default_audio_player_service.dart +++ b/lib/services/audio/default_audio_player_service.dart @@ -58,7 +58,7 @@ class DefaultAudioPlayerService extends AudioPlayerService { final BehaviorSubject _playingState = BehaviorSubject.seeded(AudioState.none); /// Ticks whilst playing. Updates our current position within an episode. - final _durationTicker = Stream.periodic(Duration(milliseconds: 500)).asBroadcastStream(); + final _durationTicker = Stream.periodic(Duration(milliseconds: 250)).asBroadcastStream(); /// Stream for the current position of the playing track. final _playPosition = BehaviorSubject(); diff --git a/lib/services/podcast/mobile_podcast_service.dart b/lib/services/podcast/mobile_podcast_service.dart index 89bb4f58..82c6c20a 100644 --- a/lib/services/podcast/mobile_podcast_service.dart +++ b/lib/services/podcast/mobile_podcast_service.dart @@ -423,7 +423,11 @@ class MobilePodcastService extends PodcastService { } } else { if (groupSubtitle.start == subtitle.start) { - data = '${groupSubtitle.data} ${subtitle.data}'; + if (groupSubtitle.data.endsWith(' ') || subtitle.data.startsWith(' ') || subtitle.data.length == 1) { + data = '${groupSubtitle.data}${subtitle.data}'; + } else { + data = '${groupSubtitle.data} ${subtitle.data.trim()}'; + } completeGroup = false; } } diff --git a/lib/ui/podcast/podcast_details.dart b/lib/ui/podcast/podcast_details.dart index 7ee88002..29ff781c 100644 --- a/lib/ui/podcast/podcast_details.dart +++ b/lib/ui/podcast/podcast_details.dart @@ -181,7 +181,7 @@ class _PodcastDetailsState extends State { iconColour: toolbarCollapsed && Theme.of(context).brightness == Brightness.light ? Theme.of(context).appBarTheme.foregroundColor : Colors.white, - decorationColour: toolbarCollapsed ? Color(0x00000000) : Color(0x88888888), + decorationColour: toolbarCollapsed ? Color(0x00000000) : Color(0x22FFFFFF), onPressed: () { _resetSystemOverlayStyle(); Navigator.pop(context); diff --git a/lib/ui/podcast/transcript_view.dart b/lib/ui/podcast/transcript_view.dart index 9e26230d..b4985c6d 100644 --- a/lib/ui/podcast/transcript_view.dart +++ b/lib/ui/podcast/transcript_view.dart @@ -134,7 +134,7 @@ class _TranscriptViewState extends State { } } } catch (e) { - log.fine('We failed to find a transcript entry for position ${event.position.inMilliseconds}'); + // We don't have a transcript entry for this position. } } diff --git a/pubspec.yaml b/pubspec.yaml index 64c196db..fd85b298 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: anytime description: Anytime Podcast Player -version: 1.3.0+91 +version: 1.3.1+92 environment: sdk: ">=2.10.0 <3.0.0" @@ -39,7 +39,7 @@ dependencies: podcast_search: git: url: https://github.com/amugofjava/podcast_search.git - ref: feature/pc20-tags + ref: 2aacfcd5bd12a227c78481af26162749b5ec905f provider: ^6.0.3 rxdart: ^0.27.4 scrollable_positioned_list: ^0.3.7