Jump to content

Sync Jobs - Web browser


Go to solution Solved by CaffNoir,

Recommended Posts

CaffNoir
Posted

Hi !
I'm trying to make a little script to prevent downloading to much but here is my issue :
When i download through a web browser like firefox and i try to retrieve Jobs using /sync/jobs i only have jobs that has been made on apps. Is there any way to get also downloads that are made through a web browser ?

Thanks for your help :)

CaffNoir
Posted

little update :
I'v also saw when we download tv show episode it doing exactly the same has the browser but only for episode and not for the full season using emby theater from microsoft app store, i didn't tired yet with the mobile app or the mac os version

Posted

No, no this isn’t possible because browser downloads are immediate and don’t require any scheduling.

CaffNoir
Posted (edited)

Thanks for the answer Luke ! Is there anyway to force the browser to schedule the event instead of direct download ? Or maybe disallow downloads from a web browser sessions through the api ?

Edited by CaffNoir
Posted

No, because there's no way to tell the browser to download something later.

CaffNoir
Posted

hmmm so it could be more tricky but closing connexion that are direct downloading can solve the issue 🤔 . I should investigate with this maybe server logs can drop more info for this special case

  • Thanks 1
  • Solution
CaffNoir
Posted (edited)

okay so i'v made it with a tricky way (but it's working).
Since i'm using cloudflare, i'v made two custom WAF rule
For SSL :
Url contain
Download?api_key=
and SSL on
Redirect to https://mywebsite.com/

For no SSL :
Url contain
Download?api_key=
and SSL off
Redirect to http://mywebsite.com/

This way, we can block download that not use sync and that also prevent content stealing with 3rd party app. All other things from emby are fully working, only downloads are blocked, sync is fully working so if someone want to download it will need to use app.
Also i'v saw that now the microsoft store app that was direct DL now use sync with WAF rules on.
So now i can use api to add a download limit like i had planned to do :)

Edited by CaffNoir
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...