Skip to content
\n

The part which is failing me:

\n
let tagged_file = Probe::open(path)\n\t.expect(\"ERROR: Bad path provided!\")\n\t.read()\n\t.expect(\"ERROR: Failed to read file!\"); // <---- \n
\n

When browsing the documentation, I found a piece about registering a custom resolver, but don't really know how to go about it in this case, as I dont have a custom type at hand.

\n

At this point I dont really know what to try next, as I feel like it's a really bad idea to create the TaggedFile myself.

\n

Any hints or things to try?
\nHappy to share the audio file (copyrighted...) via zippy, trying first without.

\n

PS: I saw a call for more documentation, I'm happy to create digest of whatever comes out of this for future reference.

","upvoteCount":1,"answerCount":7,"acceptedAnswer":{"@type":"Answer","text":"

https://en.wikipedia.org/wiki/Robustness_principle

\n

Probably we need 3 modes of operation:

\n","upvoteCount":1,"url":"https://github.com/Serial-ATA/lofty-rs/discussions/226#discussioncomment-6356429"}}}

ID3v2: Missing owner in UFID frame #226

Answered by uklotzde
jokorone asked this question in Q&A
Discussion options

You must be logged in to vote

https://en.wikipedia.org/wiki/Robustness_principle

Probably we need 3 modes of operation:

  • The default behavior should accept all data that could be parsed and has a valid representation. It should fail if parsing fails. Like in this example where a non-empty string is expected, that could still be stored as an empty string. Subsequently trying to write the tag should fail.
  • The relaxed mode should ignore throw away data all that could not be parsed, i.e. accepting partial/incomplete results.
  • The strict mode should reject al non-standard data as it does now.

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Serial-ATA
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #204 on July 04, 2023 19:58.