Put.io API + Filebot

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Pmkswiii
Posts: 3
Joined: 12 Oct 2023, 12:47

Put.io API + Filebot

Post by Pmkswiii »

I tried searching and found many hits for not what I was looking for. So trying to figure out if this can/has been done or tips if it could be done:
Put.io API looks like many/all of the necessary commands to rename files using filebot (I think).
https://app.swaggerhub.com/apis-docs/p ... tio/2.8.11
Right now the setup I’m using is to mount the put.io folder using rclone https://rclone.org/putio/. This uses a temp folder and so it downloads and uploads the content locally before pushing changes to the mounted folder. I have read it can be done where the two are connected to each other more directly but haven’t been able to get that working so instead use the mount option. This also makes the work take more time than it has to. If I could instead use the api with filebot to edit file names etc, that’d be more direct I think. Also noteworthy is that the only files visible/accessible on put.io are completed downloads, so there wouldn’t be the option to modify incomplete files. This would hopefully be an easily compatible setup for use with the AMC script. Might be 1 less step having to move completed downloads to a watched folder for processing, just watch a folder and that’s be where they are automatically when finished downloading. Wouldn’t have to worry about timing the scan for changes/is a file in the middle of being transferred from downloads folder to complete or is it fully there and ok to process. Simply if it’s there it’s all there.
Put.io allows the user the generate api keys and secrets under the user settings tab. Or by way of the API it can link to the put.io account https://app.swaggerhub.com/apis-docs/pu ... 2_oob_code and/or https://app.swaggerhub.com/apis-docs/pu ... ode__code_
Also I’ve found when renaming using rclone it will move the newly named files and delete to the online put.io recycle bin the original files so that if an error is present the originals can be restored. Not exactly economical for space saving but can be turned off in the settings or emptied using api commands I think. Looks like it will fetch subtitles if available if you’re using that sort of feature (I’m not but some might). Any potential problems or issues with this? Any tips on integrating this into a workflow? Thanks
User avatar
rednoah
The Source
Posts: 22851
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Put.io API + Filebot

Post by rednoah »

FileBot fundamentally only works with files. So your best chance is a virtual file system that makes your put.io files appear as if they were local files. Your next best chance is a custom tool that talks to put.io via the API, then generates fake / empty files, then processes these files with FileBot, and then syncs the changes back to put.io via the API.
:idea: Please read the FAQ and How to Request Help.
Post Reply