Melo v2.10 - YouTube Proxy, Download-Screen, Logger, iOS
This commit is contained in:
@@ -9,7 +9,8 @@ class Song {
|
||||
final int groesseBytes;
|
||||
final bool istHeruntergeladen;
|
||||
final String hinzugefuegtAm;
|
||||
final String downloadQuelle; // "local", "youtube"
|
||||
final String downloadQuelle; // "local", "youtube", "server"
|
||||
final String? streamUrl; // Für Server-Streaming (Navidrome)
|
||||
int? zuletztPosition; // Sekunden, für Wiederaufnahme
|
||||
|
||||
Song({
|
||||
@@ -24,6 +25,7 @@ class Song {
|
||||
this.istHeruntergeladen = false,
|
||||
String? hinzugefuegtAm,
|
||||
this.downloadQuelle = 'local',
|
||||
this.streamUrl,
|
||||
this.zuletztPosition,
|
||||
}) : hinzugefuegtAm = hinzugefuegtAm ?? DateTime.now().toIso8601String();
|
||||
|
||||
@@ -39,6 +41,7 @@ class Song {
|
||||
'ist_heruntergeladen': istHeruntergeladen ? 1 : 0,
|
||||
'hinzugefuegt_am': hinzugefuegtAm,
|
||||
'download_quelle': downloadQuelle,
|
||||
'stream_url': streamUrl,
|
||||
'zuletzt_position': zuletztPosition,
|
||||
};
|
||||
|
||||
@@ -54,6 +57,7 @@ class Song {
|
||||
istHeruntergeladen: (m['ist_heruntergeladen'] as int?) == 1,
|
||||
hinzugefuegtAm: m['hinzugefuegt_am'] as String?,
|
||||
downloadQuelle: m['download_quelle'] as String? ?? 'local',
|
||||
streamUrl: m['stream_url'] as String?,
|
||||
zuletztPosition: m['zuletzt_position'] as int?,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user