Improve arg parsing

This commit is contained in:
2026-03-11 12:54:02 -07:00
parent 2af318c0ec
commit eea01616a3
19 changed files with 327 additions and 98 deletions

View File

@@ -125,7 +125,15 @@ fn frame_id_to_field(id: &str) -> Cow<'static, str> {
#[async_trait::async_trait]
impl ObjectExtractor for Id3Extractor {
async fn field(&self, name: &Label) -> Result<Option<PileValue>, std::io::Error> {
async fn field(
&self,
name: &Label,
args: Option<&str>,
) -> Result<Option<PileValue>, std::io::Error> {
if args.is_some() {
return Ok(None);
}
Ok(self.get_inner().await?.get(name).cloned())
}