Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed altmount
Binary file not shown.
1 change: 1 addition & 0 deletions config.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ import:
segment_sample_percentage: 1 # Percentage of segments to sample for validation (1-100)
import_strategy: 'NONE' # Import strategy: NONE (direct import), SYMLINK (create symlinks), STRM (create .strm files)
import_dir: '' # Import directory (required when import_strategy is SYMLINK or STRM, must be absolute path)
skip_health_check: true # Bypass Usenet article validation during import (default: true)

# Health monitoring configuration
health:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ export function ProviderHealth() {
<th>Provider Host</th>
<th>State</th>
<th>Connections</th>
<th>Top Speed</th>
<th>Last Activity</th>
<th>Failure Reason</th>
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -141,23 +141,27 @@ export function ProviderHealth() {
</span>
</div>
</td>
<td className="text-base-content/70 text-sm">
{provider.last_successful_connect
? formatRelativeTime(provider.last_successful_connect)
: "Never"}
</td>
<td>
{provider.failure_reason && (
<div
className="tooltip tooltip-left cursor-help text-error"
data-tip={provider.failure_reason}
>
<span className="block max-w-[200px] truncate">
{provider.failure_reason}
{provider.last_speed_test_mbps > 0 ? (
<div className="flex flex-col">
<span className="font-medium text-success">
{provider.last_speed_test_mbps.toFixed(2)} Mbps
</span>
{provider.last_speed_test_time && (
<span className="text-xs text-base-content/50">
{formatRelativeTime(provider.last_speed_test_time)}
</span>
)}
</div>
) : (
<span className="text-base-content/50">-</span>
)}
</td>
<td className="text-base-content/70 text-sm">
{provider.last_successful_connect
? formatRelativeTime(provider.last_successful_connect)
: "Never"}
</td>
</tr>
))}
</tbody>
Expand Down
13 changes: 11 additions & 2 deletions internal/api/types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package api

import (
"path/filepath"
"strings"
"time"

Expand Down Expand Up @@ -466,11 +467,19 @@ func ToQueueItemResponse(item *database.ImportQueueItem) *QueueItemResponse {
return nil
}

// Generate target_path by removing .nzb extension
targetPath := item.NzbPath
// Generate target_path by removing .nzb extension and ID prefix if present
targetPath := filepath.Base(item.NzbPath)
if strings.HasSuffix(strings.ToLower(targetPath), ".nzb") {
targetPath = targetPath[:len(targetPath)-4]
}

// Remove ID prefix (e.g. "123_filename")
parts := strings.SplitN(targetPath, "_", 2)
if len(parts) == 2 {
// Check if first part is numeric (the ID)
// We don't need strict validation, just heuristic
targetPath = parts[1]
}

// Transform error message for better user understanding
errorMessage := transformQueueError(item.ErrorMessage)
Expand Down
Loading