karl0ss / JDRssDownloader

NodeJS script to monitor rss feeds and send items to JDownloader
15 stars 0 forks source link
jdownloader rss

JDRssDownloader

JDownloader 2 is a great tool, but since V1 has been missing a way to automatically download from RSS feeds, and filter downloads to only download what you want, in my case 720p HEVC files, MeGusta rips by preference.

I have put together this simple project to allow me to do that, people may find useful.

Configuration

There is a config-sample.json file that needs to be renamed to config.json, after this you can update it with your required settings.

An example shown below

{
"JDUserName": "User",
"JDPassword": "Pass",
"AdminPassword":"",
"WebUIPort": 3100,
"RSSFeed": "https://mypage.com/feed/",
"RSSFeedRefreshMins": 10,
"JDPostLinksMins": 180,
"Autostart": false,
"OnlyHEVC": true,
"TelegramBot": true,
"TelegramBotID":"",
"TelegramChatID":123456789,
}

Running

FlareSolverr

Due to issues with a number of sites I use, I have had to rework the client to now use FlareSolverr this allows the tool to bypass/workout Cloudflare site issues, the implication of this is that we need to run a docker image in the background that will actually open the page up in a Chrome window, then return the HTML and get the links as usual, this does slow down the process, as it takes upto 2 mins for it to return HTML from the page, but it works..

So you need to have docker installed and to run this command

docker-compose up -d

This will run the container in the background, then you can run as usual, and it will proxy all requests via FlareSolverr, please open an issue if you find problems.

Release Version

Either download the version on the releases, as well as the config-sample.json and run execute, this is the simplest way, but may not be the latest code, and will not run in the background

Source Version

You will need NodeJS installed, then you can checkout this repo.

For basic usage you can just navigate into the folder and run -

My suggestion would be to use pm2 so it can run "in the background"

Issues

Not alot of testing has gone into this, and I threw it together in a few hours, and only for my use case, so there are bound to be issues, please open them and let me know if you find any.

Future

I have some ideas to make this a bit smarter and I want to add the ability to look at multiple RSS feeds, this seems quite easy, and I will do in the next couple of weeks.

Thanks

Thank for all the people who made any of the modules that I used to create this.