Dan Boehm 6a81f2241d Added option to run the Artwork Downloader addon during XBMC notify.
This option will only work in XBMCv12 (Frodo) or later.  It also requires the Artwork Downloader
Addon.

Since XBMC's API doesn't support notifications over HTML, there is no way for couchpotato to know
when the Library Scan is complete.  Since running the Artwork Downloader before the movie has
been scanned won't solve anything, a delay timer can be adjusted to suit the user's needs.

Squashed commit of the following:

commit bd60ed585f77cc40c31fd67d4ae732e0845d31ab
Merge: fcb092e b113a4d
Author: Dan Boehm <dboehm.dev@gmail.com>
Date:   Thu Apr 24 14:26:24 2014 -0500

    Merge branch 'fanarttv' into artdlnotify

commit b113a4def197a9ca8545bde9f5081c0591b93b36
Author: Dan Boehm <dboehm.dev@gmail.com>
Date:   Thu Apr 24 14:24:12 2014 -0500

    Bug-fix and code cleanup.

    Fixed a bug where the movie.info event would crash if there aren't any pictures to scrape in
    fanart.tv.

commit fcb092e776e00ceabea016b3c26d9394e32d72b0
Author: Dan Boehm <dboehm.dev@gmail.com>
Date:   Thu Apr 24 14:21:27 2014 -0500

    Option to run the artwork downloader addon during XBMC notify.

commit adf7a4675d472e9e95a316c6cccc681a52804f13
Author: Dan Boehm <dboehm.dev@gmail.com>
Date:   Wed Apr 23 16:15:03 2014 -0500

    Added support for extrafanart.
    Also, the main fanart will be taken from fanart.tv unless one
    does not exist.

commit 1791e46c8602f40bb56fe0cf7ecb0607f35b4b12
Author: Dan Boehm <dboehm.dev@gmail.com>
Date:   Wed Apr 23 15:13:14 2014 -0500

    Couchpotato now downloads extrathumbs from the extra tmdb backdrops if they exist.

    This commit made some major changes to the core image creation functionality that
    makes writing multiple images to folders possible.

commit c0858807873749dbc928c0260037138f51f894ca
Author: Dan Boehm <dboehm.dev@gmail.com>
Date:   Wed Apr 23 12:18:53 2014 -0500

    Bug Fix & Implemented functionality to select bluray or dvd disc images.

    Currently, only blurays will be selected, unless there are no blurays.
    However, if a mechanism for determining the quality of the release is
    implemented, it would be simple to make this selection based on the
    quality.

commit 786751371d243f53d0f5c6f2c38d92288d8608ba
Author: Dan Boehm <dboehm.dev@gmail.com>
Date:   Wed Apr 23 10:59:25 2014 -0500

    Fixed a bug where non-HD clearart and logos couldn't be downloaded.

commit feda8df483d13b5a5df3a869f25de8f2c7e6ffe3
Author: Dan Boehm <dboehm.dev@gmail.com>
Date:   Wed Apr 23 10:12:31 2014 -0500

    Fixed some problems that were missed with the previous merge.

commit 5ddab6c40e69a5accc6c0336cd7485920ff82d8f
Merge: 7273abf ff46aa0
Author: Dan Boehm <dboehm.dev@gmail.com>
Date:   Wed Apr 23 10:02:11 2014 -0500

    Merge branch 'develop' into fanarttv

    Conflicts:
    	couchpotato/core/media/movie/providers/info/themoviedb.py
    	couchpotato/core/providers/metadata/xbmc/__init__.py

commit 7273abf827735cf245711c3d3199a6a173a964aa
Author: dan <dan@DBoehm-Arch.danboehm>
Date:   Thu Feb 27 13:29:57 2014 -0600

    Downloads extra artwork from fanart.tv

    Downloads occur with correct filenaming when XBMC metadata is generated,
    but the image URLs are selected when the movie.info event is called.

commit 9080d9d749c7e1ddbdc78f7b37a3c5f83195d580
Author: dan <dan@DBoehm-Arch.danboehm>
Date:   Wed Feb 26 16:31:37 2014 -0600

    Added basic functionality for fanarttv provider.

    This should be mostly done and is based on the tvdb provider.

commit 1b39b246c2a9d65f9ef86c4e150a12d893e362c0
Author: dan <dan@DBoehm-Arch.danboehm>
Date:   Wed Feb 26 14:50:17 2014 -0600

    Updated fanarttv library with the correct package hierarchy
    (libs.fanarttv).

commit 8abb7c8f8ad3347900debb9f6a6d5a7acb7df396
Author: dan <dan@DBoehm-Arch.danboehm>
Date:   Wed Feb 26 13:12:48 2014 -0600

    Added fanart.tv API python library (lib.fanarttv).

    The upstream for this library is at
    https://github.com/z4r/python-fanart.
2014-04-24 15:02:29 -05:00
2013-11-22 01:28:14 +01:00
2012-09-02 11:27:57 +02:00
2014-03-20 20:17:13 +01:00
2014-03-03 23:34:49 +01:00
2011-03-07 13:50:56 +01:00
2014-03-16 17:54:57 +01:00
2014-01-16 11:48:49 +01:00

CouchPotato

CouchPotato (CP) is an automatic NZB and torrent downloader. You can keep a "movies I want"-list and it will search for NZBs/torrents of these movies every X hours. Once a movie is found, it will send it to SABnzbd or download the torrent to a specified directory.

Running from Source

CouchPotatoServer can be run from source. This will use git as updater, so make sure that is installed.

Windows, see the CP forum for more details:

  • Install Python 2.7
  • Then install PyWin32 2.7 and GIT
  • If you come and ask on the forums 'why directory selection no work?', I will kill a kitten, also this is because you need PyWin32
  • Open up Git Bash (or CMD) and go to the folder you want to install CP. Something like Program Files.
  • Run git clone https://github.com/RuudBurger/CouchPotatoServer.git.
  • You can now start CP via CouchPotatoServer\CouchPotato.py to start
  • Your browser should open up, but if it doesn't go to: http://localhost:5050/

OSx:

  • If you're on Leopard (10.5) install Python 2.6+: Python 2.6.5
  • Install GIT
  • Open up Terminal
  • Go to your App folder cd /Applications
  • Run git clone https://github.com/RuudBurger/CouchPotatoServer.git
  • Then do python CouchPotatoServer/CouchPotato.py
  • Your browser should open up, but if it doesn't go to: http://localhost:5050/

Linux (ubuntu / debian):

  • Install GIT with apt-get install git-core
  • 'cd' to the folder of your choosing.
  • Run git clone https://github.com/RuudBurger/CouchPotatoServer.git
  • Then do python CouchPotatoServer/CouchPotato.py to start
  • To run on boot copy the init script. sudo cp CouchPotatoServer/init/ubuntu /etc/init.d/couchpotato
  • Change the paths inside the init script. sudo nano /etc/init.d/couchpotato
  • Make it executable. sudo chmod +x /etc/init.d/couchpotato
  • Add it to defaults. sudo update-rc.d couchpotato defaults
  • Open your browser and go to: http://localhost:5050/

FreeBSD :

  • Update your ports tree sudo portsnap fetch update
  • Install Python 2.6+ lang/python with cd /usr/ports/lang/python; sudo make install clean
  • Install port databases/py-sqlite3 with cd /usr/ports/databases/py-sqlite3; sudo make install clean
  • Add a symlink to 'python2' sudo ln -s /usr/local/bin/python /usr/local/bin/python2
  • Install port ftp/libcurl with cd /usr/ports/ftp/fpc-libcurl; sudo make install clean
  • Install port ftp/curl, deselect 'Asynchronous DNS resolution via c-ares' when prompted as part of config cd /usr/ports/ftp/fpc-libcurl; sudo make install clean
  • Install port textproc/docbook-xml-450 with cd /usr/ports/textproc/docbook-xml-450; sudo make install clean
  • Install port GIT with cd /usr/ports/devel/git; sudo make install clean
  • 'cd' to the folder of your choosing.
  • Run git clone https://github.com/RuudBurger/CouchPotatoServer.git
  • Then run sudo python CouchPotatoServer/CouchPotato.py to start for the first time
  • To run on boot copy the init script. sudo cp CouchPotatoServer/init/freebsd /etc/rc.d/couchpotato
  • Change the paths inside the init script. sudo vim /etc/rc.d/couchpotato
  • Make init script executable. sudo chmod +x /etc/rc.d/couchpotato
  • Add init to startup. sudo echo 'couchpotato_enable="YES"' >> /etc/rc.conf
  • Open your browser and go to: http://server:5050/
Description
Automatic Movie Downloading via NZBs & Torrents
Readme 22 MiB
Languages
Python 91.1%
JavaScript 7%
CSS 1.5%
HTML 0.2%
Shell 0.2%