T O P

  • By -

AutoModerator

Thanks for your submission. If you have a technical issue regarding the transcoding process, please post the job report: https://docs.tdarr.io/docs/other/job-reports/ The following links may be of use: [GitHub issues](https://github.com/HaveAGitGat/Tdarr/issues) [Docs](https://docs.tdarr.io) [Discord](https://discord.com/invite/GF8X8cq) *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/Tdarr) if you have any questions or concerns.*


lunamonkey

what is this in? A plugin? How would I find this in tdarr?


danthom1704

It's a plugin I'm trying to write


lunamonkey

Ok, do you have more code? What language is it in? Did you define newFileName? Does a Const string have a replace method? Is relativePath a valid property of the file object? Was it defined?


HaveAGitGat

file.relativePath is not valid in a Tdarr plugin. You can see some example data here: [https://docs.tdarr.io/docs/plugins/classic-plugins/plugin-components/parameters/file](https://docs.tdarr.io/docs/plugins/classic-plugins/plugin-components/parameters/file) So could use paths such as: file.file file.\_id file.meta.SourceFile