With Cookie
Can you add an option to include the cookies of the current page?
Actually the code looks like this already used to work in the past. I think I found a fix to make it work again, please see my pull request.
Uhm, that's probably the reason why cookes didn't seem to work for me when using this extension. If the domain at which link is posted is NOT the same as the domain of the link, wrong cookies are being used.
Steps to reproduce:
- Create proper (plain text) cookies file in aria2 config for "files.com"
- Manually add aria2 download from CLI specifying load-cookies and make sure it works
- In Chrome go to "list.com" which has links to downloads at "files.com"
- Right-click on any download link and select "Download with Aria2".
Result: wrong cookies are being used, if "files.com" relies on cookies to ID users it results in failed download.
If I may make a suggestion, either of the steps below should work:
- Compare the download URL against the current page URL and if the domains are different do not send any cookie information to aria daemon
- Send the cookie of the download URL domain rather the current page domain to aria daemon
Unfortunately I'm not skilled enough to patch code, could anyone fix it please?