SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.04k stars 1.23k forks source link

FlexGet #292

Closed Jeltel closed 11 years ago

Jeltel commented 12 years ago

Flexget is a package to automatically download torrent files and put them in the watch folder of (for example) Transmission. It can download torrents via a rss feed. http://flexget.com/

There is a installation guide for Synology, although it uses ipkg.

I request a package for the Synology NAS (in particulair the DS411, because that's the one I'm using).

I have no other linux installation besides the NAS (and Openelec) and have very little idea how I would be able to compile the package. That being said, I would like to participate where I can.

Thx

Diaoul commented 12 years ago

That's an awesome app :) How is the web interface ? Can it handle cron tasks by itself ?

Jeltel commented 12 years ago

Apperantly there only is a simple beta web gui. And as far as I can see from http://flexget.com/wiki/Plugins list no Cron tasks.

Diaoul commented 12 years ago

So what would be in the SPK?

Did I miss something? What's you're experience with it? I don't want to release an SPK without any configuration UI and creating one dedicated for the SPK would require too much time.

Jeltel commented 12 years ago

The configuration can be done via a configuration file, so the webui is not needed explicitly. I guess the webui just creates a configuration file.

As you can read I don't have any experience with it. But it is advised in various places to automate Transmission. Which is exactly what I want. I hoped it would be relatively easy to make a package without to much configuration from your/my part. Because I have no experience with compiling the packages I don't know if that is possible.

Diaoul commented 12 years ago

It's just a Python package like SickBeard is, so it'll be easy to make. I'll test it this evening.

Jeltel commented 12 years ago

Thanks :)

Diaoul commented 12 years ago

So, that works but the webui is still a work in progress. Scheduling through the webui is possible and it even runs the tasks at the defined interval.

That said, you can expect a package in private beta by the end of the week. Contact me to gain access to the private repository.

Diaoul commented 12 years ago

Lacks of pid file... Should be added to FlexGet in the near future

Edit: nvm, it's a bit hidden

Diaoul commented 12 years ago

Done with 5748d51ed84f60ee80d564dba9315547ff54fca5

Diaoul commented 12 years ago

It's on the private beta repository. Can you test it? Email me at xxx so I can give you access.

Jeltel commented 12 years ago

I've installed it and I'm testing it. I will report back when I come to some conclusion

Jeltel commented 12 years ago

I've tried working with it, but I'm missing the transmission plugin: http://flexget.com/wiki/Plugins/transmission This isn't installed by default. Installing the library via terminal: "easy_install transmissionrpc" gets the result "not found".

So how do I get the transmission plugin to work?

The webui works great btw, I like that :)

Diaoul commented 12 years ago
/usr/local/flexget/env/bin/pip install transmissionrpc

That should solve your problem

Jeltel commented 12 years ago

Not completely. When trying this in a terminal (root):

Fukushima> pip install transmissionrpc -ash: pip: not found

So where do I execute this command?

On 10 November 2012 13:44, Antoine Bertin notifications@github.com wrote:

/usr/local/flexget/env/bin/pip install transmissionrpc

That should solve your problem

— Reply to this email directly or view it on GitHubhttps://github.com/SynoCommunity/spksrc/issues/292#issuecomment-10254803.

Diaoul commented 12 years ago

/usr/local/flexget/env/bin/pip not pip

Jeltel commented 12 years ago

Thx, that worked.

Package is working as supposed to I guess. It has a bit of a learning curve, and the webui does has some flaws. But otherwise it works.

I see no need to keep this a private beta.

On 10 November 2012 17:30, Antoine Bertin notifications@github.com wrote:

/usr/local/flexget/env/bin/pip not pip

— Reply to this email directly or view it on GitHubhttps://github.com/SynoCommunity/spksrc/issues/292#issuecomment-10256830.

Diaoul commented 12 years ago

The user/password for flexget defaults to flexget/flexget and cannot be changed unless changing the parameters to the start-stop-status script.

I'll be waiting for a configurable user/password + port before release.

Diaoul commented 12 years ago

Could you open an issue to flexget so they add those options in the configuration file?

Jeltel commented 12 years ago

Done: http://flexget.com/ticket/1833

fgibaux commented 12 years ago

Hi, I manually downloaded the package on SynoCommunity and installed it. It's working great, but the cron job doesn't seem to be called.

is the cron supposed to be configured by the package or manually ?

Diaoul commented 12 years ago

The webui has it's own scheduler, just add some tasks I guess. Ask the flexget guys

fgibaux commented 12 years ago

ok thanks for the response. After a restart, scheduled tasks are executed as expected.

xhaos commented 11 years ago

Hello, I would like access to the closed beta for flexget for synology 412+

I'm experienced in both linux and flexget though a noob on synology. I would like to help.

Thank you.

Jeltel commented 11 years ago

Since yesterday I'm getting an error when executing my flexget script: 2013-01-19 11:13 ERROR task test BUG: Unhandled error in plugin download: [Errno 13] Permission denied: '/usr/local/flexget/var/temp/tmp8RT4sc'

This occurs when a torrent is downloaded via the rss feed. I think there is a problem with the connection to transmission (2.76), but haven't been able to find the problem yet. I reinstalled flexget and transmission and reloaded my flexget script. No changes.

Unfortunalty the issue at the flexget Trac doesn't seem to be followed up. A shame really, because this is a real nice app for downloading torrents via rss.

Jeltel commented 11 years ago

Somehow root was the owner of the temp folder. Changed it to flexget and problem solved. Maybe create a temp folder during installation with the right owner?

Diaoul commented 11 years ago

Anything created by flexget has flexget as owner. Did you restore stuff manually? If so, did you fixed permissions?

Jeltel commented 11 years ago

That might be the problem. I just used chown to own the temp folder.

Diaoul commented 11 years ago

Flexget updated to 3368

Jeltel commented 11 years ago

My package center (DSM 4.2) doesn't see the updated version of flexget. Is that right?

Diaoul commented 11 years ago

Yes, advanced version numbering isn't supported by DSM. Releases on the stable channel will have their revision number incremented to fix this but in beta you just need to reinstall. That's better anyway because updating a beta package might not work properly.

mtzro2003 commented 11 years ago

Hi guys!

Just wanted to let you know Flexget is performing on my DS411...

I was running Flexget ... don't know... maybe 2 years (?!), but installed manually. I decided to give the SPK from SynoCommunity a try... Everything worked smoothly: cloned repository and compiled flexget directly on my DS411 running the latest DSM 4.3-3776. I had my "old" version of flexget install in "usr/local/flexget" so, at first try, the spk didn't want to install. No errors but it didn't want to run. I renamed "/usr/local/flexget" to /usr/local/flexget.bak" and I managed to run the package without a problem. All seemed running nicely so I decided to use my old config.yml, db-config.sqlite and flexget.log. A chown to user flexget for these files will help you save some 15 minutes wondering why it's not working :)))) Well, seeing that flexget works without a problem, I decide to try to upgrade from version 1.1.26-1 to the latest version from flexget site (1.1.145). I stopped the package from Package Center, opened a ssh connection as root and I ran "/usr/local/flexget/env/bin/pip install --upgrade flexget" After upgrade, I checked the version with "/usr/local/flexget/env/bin/python /usr/local/flexget/env/bin/flexget -V". Everything seems OK, the upgrade worked, the configuration file passed the check test ("/usr/local/flexget/env/bin/python /usr/local/flexget/env/bin/flexget --check -c /usr/local/flexget/var/config.yml") so I was confident enough to run the package from Package Center.

From my point of view, this is not a beta package, it's the full deal :) Many thanks to all the guys@SynoCommunity

Lauwisme commented 11 years ago

From my point of view, this is not a beta package, it's the full deal :)

I'd like try out this full deal as well or at least request access to the private beta to beta test everything ...

mtzro2003 commented 11 years ago

All you need to do is clone the repository and compile yourself.

wuotr commented 10 years ago

Sorry for my complete newbie question. But is it possible to compile an SPK using a Mac? Or is the process done on the NAS itself. I'm a bit confused since I'm reading a lot about Debian x86...

mstduff commented 10 years ago

is this ready to come out of private beta? if not can I get the private repo?

ordou commented 10 years ago

@Diaoul: Same question as @mstduff over. Can I get access to the private beta?

Thanks

cytec commented 10 years ago

@ordou @mstduff it should be available in the SynoCommunity Beta repository... should be this url: http://packages.synocommunity.com/?beta=1

ZimbaaLSD commented 10 years ago

Get an error while trying to save a new schedule.

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Log from DSM package center: File: Schedule.py in start_timer if manager.options.autoreload AttributeError: 'Namespace' object has no attribute 'autoreload'

Jeltel commented 10 years ago

Since the last update (installed it yesterday) I can't get flexget to work. With my old configuration DSM fails to run the package. And via the web interface I can't get anything saved. It keeps giving an Internal sever error. I figured out that my old configuration may require some updating, but I'm unable to do so with the current web-interface.

woutertP1 commented 10 years ago

I have the same issue on my DS214. Flexget won't start after the last update.

bonebox commented 8 years ago

Not sure this is the same issue that others were having, but I just installed FlexGet v1.2.415 on my DS414 from a package that I successfully built using spksrc and got a lot of errors when attempting to run it (mainly for missing modules). I was able to resolve it by manually running /usr/local/flexget/env/bin/pip install flexget --upgrade.

Slim1234slim commented 7 years ago

I managed to install it on my ds916+ and upgraded it as well (2.10.76). How can I run the WebUI?

cytec commented 7 years ago

@Slim1234slim have you checked flexget docu? https://flexget.com/Web-UI

Also from there:

Web UI is currently experimental and is not recommended for new users!