Decodes the state field returned by file(), file_by_hash() and file_by_episode().
state
file()
file_by_hash()
file_by_episode()
When neither censored nor uncensored is set, AniDB has no censorship information for the file.
censored
uncensored
raw state value
const { censored, uncensored } = decodeFileState((await client.file(fid, [ 'state' ])).state) Copy
const { censored, uncensored } = decodeFileState((await client.file(fid, [ 'state' ])).state)
Decodes the
statefield returned byfile(),file_by_hash()andfile_by_episode().When neither
censorednoruncensoredis set, AniDB has no censorship information for the file.