Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Call endpoint if new media was downloaded succefully #19

Open
Virusmater opened this issue May 4, 2024 · 6 comments

Comments

@Virusmater
Copy link

I would like to have Jellyfin library refreshed if new media was downloaded successfully.

Their API is straightforward, just a single POST request. I think for Plex and other media servers have similar API.
It would be nice to be able to pass the API endpoint as an environment variable.

@meeb
Copy link
Owner

meeb commented May 6, 2024

I can see why this may be a wanted feature, however bandcampsync is a pretty small script. I don't really want to start adding in and support interfaces to whatever media servers people use. If I ended up supporting 2-3 media servers the media server interface code would be bigger than bandcampsync itself.

I may add in the ability to execute an arbitrary command if new music is downloaded, you can add in a curl command into a shell script or similar and execute that.

@Virusmater
Copy link
Author

I totally do not expect support to whatever media server, just an extension point for curl after successful download will be more than enough

@meeb
Copy link
Owner

meeb commented May 6, 2024

I'll see if I can pop this into the next release. I realise you weren't asking for general media server support but if I added Jellyfin support directly I'd have Plex requests pretty quickly as well 😄

@tacerus
Copy link

tacerus commented Jun 20, 2024

Hi, what about having the bandcampsync tool exit with a certain exit code if new media was downloaded?

@Virusmater
Copy link
Author

It will not work for docker installation

@amias-channer
Copy link

amias-channer commented Aug 15, 2024

making it hit a single url should be enough for most media services, they can work out what changed by looking at the disk so all it needs is to know its time to look again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants