Merge branch 'KRTirtho:master' into master

This commit is contained in:
Ashirbad Sahu 2023-12-04 21:40:48 +05:30 committed by GitHub
commit 928e882bf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class DownloadManagerProvider extends ChangeNotifier {
final (:request, :status) = event;
final track = $history.firstWhereOrNull(
(element) => element.url == request.url,
(element) => element.getUrlOfCodec(downloadCodec) == request.url,
);
if (track == null) return;

View File

@ -147,7 +147,7 @@ abstract class TypeConversionUtils {
track.name = metadata?.title ?? basenameWithoutExtension(file.path);
track.type = "track";
track.uri = file.path;
track.durationMs = (metadata?.durationMs?.toInt() ?? 0) * 1000;
track.durationMs = (metadata?.durationMs?.toInt() ?? 0);
return track;
}