Files
archon/python
leex279 9061fde028 improve: robust URL processing with whitespace handling and consistent source_type
Enhanced both list_items() and _transform_source_to_item() methods:

- Trim whitespace from original_url and treat empty/whitespace-only strings as None
- Compute display_url before deriving source_type for consistency
- Base source_type determination on final display_url (not raw original_url)
- Ensures file:// schemes and other URL types are detected correctly
- Prevents whitespace-only original_url from being used
- Handles None/empty original_url gracefully during trimming

This ensures consistent source_type classification and prevents
whitespace issues from causing incorrect URL display.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 07:22:18 +02:00
..