|
|
@@ -959,14 +959,12 @@ export class RemoteDriveManager {
|
|
|
const relative = item.remote_rel_path || WebDavUrlUtil.toStoragePath(item.filePath);
|
|
|
if (relative) {
|
|
|
item.remote_rel_path = relative;
|
|
|
- item.dbFilePath = relative;
|
|
|
return relative;
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
if (item.type === CommonConstants.TYPE_SMB || item.type === CommonConstants.TYPE_NAVIDROME) {
|
|
|
if (item.remote_rel_path) {
|
|
|
- item.dbFilePath = item.remote_rel_path;
|
|
|
return item.remote_rel_path;
|
|
|
}
|
|
|
return null;
|
|
|
@@ -995,7 +993,6 @@ export class RemoteDriveManager {
|
|
|
target.year = cached.year || target.year;
|
|
|
target.webdav_account_id = target.webdav_account_id || cached.webdav_account_id;
|
|
|
target.remote_rel_path = target.remote_rel_path || cached.remote_rel_path || storagePath;
|
|
|
- target.dbFilePath = storagePath;
|
|
|
}
|
|
|
|
|
|
// 将FileInfo转换为VideoItem
|
|
|
@@ -1048,7 +1045,6 @@ export class RemoteDriveManager {
|
|
|
const relMatch = absoluteUrl.match(/^https?:\/\/[^\/]+(?::\d+)?(\/.*)$/i);
|
|
|
if (relMatch && relMatch[1]) {
|
|
|
videoItem.remote_rel_path = relMatch[1];
|
|
|
- videoItem.dbFilePath = relMatch[1];
|
|
|
}
|
|
|
} catch (e) {
|
|
|
Logger.warn(TAG, '计算相对路径失败: ' + (e as Error).message);
|
|
|
@@ -1081,7 +1077,6 @@ export class RemoteDriveManager {
|
|
|
videoItem.webdav_account_id = account.id.toString();
|
|
|
}
|
|
|
videoItem.remote_rel_path = sanitizedRelative;
|
|
|
- videoItem.dbFilePath = sanitizedRelative;
|
|
|
const hostForDisplay = account.host && account.host.trim().length > 0
|
|
|
? account.host.trim()
|
|
|
: (account.id?.toString() ?? '');
|
|
|
@@ -1172,7 +1167,6 @@ export class RemoteDriveManager {
|
|
|
videoItem.size = Utility.formatFSize(song.size ?? 0);
|
|
|
videoItem.webdav_account_id = account.id?.toString();
|
|
|
videoItem.remote_rel_path = song.id;
|
|
|
- videoItem.dbFilePath = song.id;
|
|
|
videoItem.bit_rate = song.bitRate ? song.bitRate.toString() : undefined;
|
|
|
videoItem.mimeType = song.contentType;
|
|
|
return videoItem;
|