|
@@ -985,7 +985,6 @@ export class RemoteDriveManager {
|
|
|
target.duration = cached.duration || target.duration;
|
|
target.duration = cached.duration || target.duration;
|
|
|
target.size = cached.size || target.size;
|
|
target.size = cached.size || target.size;
|
|
|
target.pixelMapPath = cached.pixelMapPath || target.pixelMapPath;
|
|
target.pixelMapPath = cached.pixelMapPath || target.pixelMapPath;
|
|
|
- target.pixelMap = cached.pixelMap || target.pixelMap;
|
|
|
|
|
target.lyricContent = cached.lyricContent || target.lyricContent;
|
|
target.lyricContent = cached.lyricContent || target.lyricContent;
|
|
|
target.md5Str = cached.md5Str || target.md5Str;
|
|
target.md5Str = cached.md5Str || target.md5Str;
|
|
|
target.bit_rate = cached.bit_rate || target.bit_rate;
|
|
target.bit_rate = cached.bit_rate || target.bit_rate;
|
|
@@ -1016,7 +1015,7 @@ export class RemoteDriveManager {
|
|
|
const absoluteUrl = `${protocol}://${host}:${port}${encodedHref}`;
|
|
const absoluteUrl = `${protocol}://${host}:${port}${encodedHref}`;
|
|
|
|
|
|
|
|
// 创建VideoItem对象
|
|
// 创建VideoItem对象
|
|
|
- // 构造函数签名: (name, id, filePath, type, videoSize, cTime, pixelMap?, size?, pixelMapPath?, artist?, album?, fileName?, lastPlayed?)
|
|
|
|
|
|
|
+ // 构造函数签名: (name, id, filePath, type, videoSize, cTime, size?, pixelMapPath?, artist?, album?, fileName?, lastPlayed?)
|
|
|
|
|
|
|
|
const videoItem = new VideoItem(
|
|
const videoItem = new VideoItem(
|
|
|
this.getFileNameWithoutExtension(fileInfo.fileName), // name: 歌曲名
|
|
this.getFileNameWithoutExtension(fileInfo.fileName), // name: 歌曲名
|
|
@@ -1025,7 +1024,6 @@ export class RemoteDriveManager {
|
|
|
CommonConstants.TYPE_WEBDAV, // type: WebDAV类型
|
|
CommonConstants.TYPE_WEBDAV, // type: WebDAV类型
|
|
|
fileInfo.contentLength, // videoSize: 文件大小
|
|
fileInfo.contentLength, // videoSize: 文件大小
|
|
|
Utility.getFormatDateStr(fileInfo.time,'yyyy-MM-dd HH:mm'), // cTime: 修改时间
|
|
Utility.getFormatDateStr(fileInfo.time,'yyyy-MM-dd HH:mm'), // cTime: 修改时间
|
|
|
- undefined, // pixelMap
|
|
|
|
|
undefined, // size
|
|
undefined, // size
|
|
|
undefined, // pixelMapPath: 对于WebDAV歌曲不设置图片路径
|
|
undefined, // pixelMapPath: 对于WebDAV歌曲不设置图片路径
|
|
|
Constants.UNKNOWN_ARTIST, // artist: 艺术家
|
|
Constants.UNKNOWN_ARTIST, // artist: 艺术家
|
|
@@ -1071,7 +1069,6 @@ export class RemoteDriveManager {
|
|
|
Utility.getFormatDateStr(fileInfo.time, 'yyyy-MM-dd HH:mm'),
|
|
Utility.getFormatDateStr(fileInfo.time, 'yyyy-MM-dd HH:mm'),
|
|
|
undefined,
|
|
undefined,
|
|
|
undefined,
|
|
undefined,
|
|
|
- undefined,
|
|
|
|
|
Constants.UNKNOWN_ARTIST,
|
|
Constants.UNKNOWN_ARTIST,
|
|
|
undefined,
|
|
undefined,
|
|
|
fileInfo.fileName
|
|
fileInfo.fileName
|
|
@@ -1162,7 +1159,6 @@ export class RemoteDriveManager {
|
|
|
CommonConstants.TYPE_NAVIDROME,
|
|
CommonConstants.TYPE_NAVIDROME,
|
|
|
song.size ?? 0,
|
|
song.size ?? 0,
|
|
|
Utility.getFormatDateStr(Date.now(), 'yyyy-MM-dd HH:mm'),
|
|
Utility.getFormatDateStr(Date.now(), 'yyyy-MM-dd HH:mm'),
|
|
|
- undefined,
|
|
|
|
|
Utility.formatFSize(song.size ?? 0),
|
|
Utility.formatFSize(song.size ?? 0),
|
|
|
undefined,
|
|
undefined,
|
|
|
song.artist ?? album?.artist ?? Constants.UNKNOWN_ARTIST,
|
|
song.artist ?? album?.artist ?? Constants.UNKNOWN_ARTIST,
|