Replacement for deprecated MediaManager#files_in_str()

Function files_in_str() in MediaManager extracts media file names from a field text.

However, it’s marked as deprecated:

@deprecated_keywords(includeRemote="include_remote")
def files_in_str(
    self, mid: NotetypeId, string: str, include_remote: bool = False
) -> list[str]:

Could you tell what’s the target replacement for it?
Or suggest a better approach to get files in a note.

Thanks!

1 Like

card.render_output().question/answer_av_tags

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.