mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-26 21:02:28 +02:00
feat(metadata): review batch tag enrichment #511
This commit is contained in:
@@ -1514,7 +1514,9 @@ class MainActivity: FlutterFragmentActivity() {
|
||||
val reqObj = JSONObject(requestJson)
|
||||
val filePath = reqObj.optString("file_path", "")
|
||||
|
||||
if (filePath.startsWith("content://")) {
|
||||
// Preview only resolves online metadata; it does not need
|
||||
// a full SAF document copy and never writes the source.
|
||||
if (filePath.startsWith("content://") && !reqObj.optBoolean("preview_only", false)) {
|
||||
val uri = Uri.parse(filePath)
|
||||
val tempPath = copyUriToTemp(uri)
|
||||
?: return@withContext """{"error":"Failed to copy SAF file to temp"}"""
|
||||
|
||||
Reference in New Issue
Block a user