- Use int() parsing instead of isdigit() for more robust frame number validation
- Preserve leading tabs with rstrip() instead of strip()
- Add debug output when parsing fails to help diagnose issues
- Handle empty fields and whitespace more gracefully
Co-authored-by: Cursor <cursoragent@cursor.com>