mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00

* feat: concurrent download service & download prorvider * feat: implement chunked downloader * fix: no audio-tags in Linux and duration not showing up for local tracks * feat: show matching tracks in queue as well * feat: always uses piped api for download to avoid IP block * fix: invalid downloadCount
25 lines
503 B
Dart
25 lines
503 B
Dart
import 'package:dio/dio.dart';
|
|
|
|
class DownloadRequest {
|
|
final String url;
|
|
final String path;
|
|
var cancelToken = CancelToken();
|
|
var forceDownload = false;
|
|
|
|
DownloadRequest(
|
|
this.url,
|
|
this.path,
|
|
);
|
|
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
other is DownloadRequest &&
|
|
runtimeType == other.runtimeType &&
|
|
url == other.url &&
|
|
path == other.path;
|
|
|
|
@override
|
|
int get hashCode => url.hashCode ^ path.hashCode;
|
|
}
|