Forum

Full Version: Flexget installation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
exactly
The xbian-package-samba and xbian-package-apache are also meta packages.
Alright that would be the best. How to do it? I know the four commands:
sudo apt-get install python-pip
sudo pip install flexget
sudo pip install transmissionrpc

Can I just put this in a .py script or similar? I cannot find the xbian-package-samba or xbian-package-apache on Github.. Would be a nice example.
Code:
cd ~
mkdir webserver
cd webserver
wget http://xbian.brantje.com/pool/main/x/xbian-package-webserver/xbian-package-webserver_1.0_armhf.deb
ar -x xbian-package-webserver_1.0_armhf.deb
preinst:

Code:
#!/bin/bash

if [ $1 == "install" ]; then

sudo apt-get install python-pip;
sudo pip install flexget;
sudo pip install transmissionrpc

fi
Am I on the right track here?


postinst: (to upgrade)
Code:
#!/bin/bash

if [ $1 == "configure" -o $1 == "upgrade" ]; then

    if [ -d /usr/local/bin/flexget ]; then
        if [ $(flexget -V ... ]; then
            sudo /etc/init.d/cron stop;
            sudo pip install --upgrade flexget;
            sudo /etc/init.d/cron start
        fi
    fi
fi

the 3rd if command needs to check if upgrade is necessary (... has to be replaced). If upgrade is necessary, the flexget -V command will return:
Terminal
xbian@xbian ~ $ flexget -V
1.1.77
Latest release: 1.1.83

So I somehow need to parse this output. Any tips?
Dont use apt or dpkg commands in the preinst script, add the required package(s) (in this case python-pip) to the control file as depend.
I was trying to install flexget using this how to, nut I get the following errors:
CRITICAL plugin Get tvshows 720p hdtv Error connecting to transmission: Address family not supported by protocol
CRITICAL plugin Get movies Error connecting to transmission: Address family not supported by protocol

My transmission settings: http://pastebin.com/8rYUCSek
My libraryupdater.sh: http://pastebin.com/1RcpPSQh
My flexget configuration: http://pastebin.com/2YzpRNhv

Any help appreciated.
@effemmeffe anything related to actually USING Flexget, you should ask at flexget.com. You can search through tickets there or create one yourself.
Hi team XBian, sorry to bump such an old topic. I am determined now to work on the Flexget package (and finish it!). A lot of work has already been done by flexget devs, they created an INSSERV script Debian compatible to be able to autostart Flexget at boot: http://flexget.com/wiki/Daemon/Startup

Since Flexget installation only requires 3 commands (apt-get install python-pip, pip install flexget, pip install transmissionrpc), I thought it should be relatively easy. I wanted to start create the necessary files (I read I have to do a "pull") but not sure if this is still the case?

Could I just start by copying an existing package, and simply modify the control file adding python-pip and the two pip commands?
Any help would be much appreciated Smile
@zilexa

there is currently no flexget install package, ... if I understand it will be more virtual package with some dependencies and then some scripting in pre-post-install phase?

you can start on your own. on git hub create account, create empty repository.
with
Code:
git clone address_to_my_git_repo

clone it to your pc.

also clone xbian-package-development (just for the purpose of downloading files you can reuse). then grab from this gen.package.sh and content/DEBIAN/*. keep the structure and use this as starter. do some googling or just read three times content/DEBIAN/{control,postinst,preinst,postrm,prerm}

update them, run .gen.package.sh. and we have .deb file.

if you would need more hints or directions, feel free to ask again.
I hope it's not bad form to resurrect an old thread like this, but I'm hoping some of the other contributors, in particular @zilexa will see my post.

I have been setting up Flexget following @zilexa tutorial here: http://www.raspberrypi.org/forums/viewtopic.php?f=35&t=47084

Having read through a lot of the comments and making changes to my config here and there, I have got quite far. Movies on my watchlist at trakt are now found, passed to transmission and end up in my Xbian XBMC.

The problem I have is that TV shows in my custom lists 'following' and 'followinghd' do not get scanned properly and in the log I see 'Undecided'

Code:
2014-07-12 17:00 VERBOSE  input_cache   Get tvshows hdtv <720p Restored 3 entries from db cache
2014-07-12 17:00 VERBOSE  input_cache   Get tvshows hdtv <720p Restored 5 entries from cache
2014-07-12 17:00 VERBOSE  details       Get tvshows hdtv <720p Produced 5 entries.
2014-07-12 17:00 VERBOSE  details       Get tvshows hdtv <720p Summary - Accepted: 0 (Rejected: 0 Undecided: 5 Failed: 0)

Would really appreciate any help or advice on how to troubleshoot this.

Thanks
Nothing to work with here. upload your full log from 1 flexget run (use pastebin.com or similar) and your config.yml. But I recommend you do this on Flexget.com via the ticketing system or flexget forum instead of here on the XBian forum... I rarely look in these forums anymore..
Thank you for your reply, I will also try those other suggestions for posting but really appreciate your help also!

Below are the two pastes...

http://pastebin.com/atExut3A

http://pastebin.com/EjGRCUeZ

Thanks
Pages: 1 2 3
Reference URL's