Code Monkey home page Code Monkey logo

couchpotatoserver's Introduction

CouchPotato Server

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 also.

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/

couchpotatoserver's People

Contributors

ruudburger avatar alshain avatar nls44 avatar clinton-hall avatar remboooo avatar gui13 avatar bfagundez avatar tristian avatar exiva avatar mjc avatar echelonfour avatar arsecroft avatar garlandkr avatar sarvasana avatar prinz23 avatar randallm avatar sirchia avatar sanderboele avatar dersphere avatar daemox avatar iamnos avatar itsmegb avatar spion06 avatar

Stargazers

Jesse Read avatar  avatar

Watchers

James Cloos avatar  avatar

couchpotatoserver's Issues

Didn't snatch golden although it was checked

Hey, I love the goal of this, but it didn't seem to work for me. I left the options at the default, to prefer Golden Popcorn, and did a search for The Hobbit to see if it would indeed snatch the Golden Popcorn torrent for me. It ended up grabbing the Scene release instead of the Golden one. Here is my log:

03-08 09:55:00 INFO [ato.core.plugins.searcher] Search for The Hobbit: An Unexpected Journey in 720P
03-08 09:55:01 DEBUG [rs.torrent.passthepopcorn] Login HTTP status 200; seems successful
03-08 09:55:01 INFO [hpotato.core.plugins.base] Opening url: https://tls.passthepopcorn.me/torrents.php?json=noredirect&searchstr=tt0903624&order_by=relevance&resolution=720p&order_way=descending, params: []
03-08 09:55:01 DEBUG [rs.torrent.passthepopcorn] Movie The Hobbit: An Unexpected Journey (2012) has 3 torrents
03-08 09:55:01 DEBUG [tato.core.plugins.quality] Found via identifier "720p" in The Hobbit An Unexpected Journey (2012) - 720p Blu-ray x264 Scene (720p)
03-08 09:55:01 DEBUG [hpotato.core.plugins.base] Setting cache 148c80aacc8301af705265bc2f4ad551
03-08 09:55:01 DEBUG [rs.torrent.passthepopcorn] Checking if torrents field Resolution equals 720p
03-08 09:55:01 DEBUG [rs.torrent.passthepopcorn] Torrent satisfied Resolution == 720p
03-08 09:55:01 INFO [otato.core.providers.base] Found: score(288) on PassThePopcorn: The Hobbit An Unexpected Journey (2012) - 720p Blu-ray x264 Scene (720p)
03-08 09:55:01 DEBUG [rs.torrent.passthepopcorn] Config: Prefer Golden Popcorn is active, awarding torrent 100 points
03-08 09:55:01 DEBUG [tato.core.plugins.quality] Found via identifier "720p" in The Hobbit An Unexpected Journey (2012) - 720p Blu-ray x264 HQ (720p)
03-08 09:55:01 DEBUG [hpotato.core.plugins.base] Setting cache 18502058633cec3268d7ba0cc1d07c7b
03-08 09:55:01 DEBUG [rs.torrent.passthepopcorn] Checking if torrents field Resolution equals 720p
03-08 09:55:01 DEBUG [rs.torrent.passthepopcorn] Torrent satisfied Resolution == 720p
03-08 09:55:01 INFO [otato.core.providers.base] Found: score(177) on PassThePopcorn: The Hobbit An Unexpected Journey (2012) - 720p Blu-ray x264 HQ (720p)
03-08 09:55:01 DEBUG [tato.core.plugins.quality] Found via identifier "720p" in The Hobbit An Unexpected Journey (2012) - 720p Blu-ray x264 Extras (720p)
03-08 09:55:01 DEBUG [hpotato.core.plugins.base] Setting cache 882cd8bb5418ced8b94db1a36007b12c
03-08 09:55:01 DEBUG [rs.torrent.passthepopcorn] Checking if torrents field Resolution equals 720p
03-08 09:55:01 DEBUG [rs.torrent.passthepopcorn] Torrent satisfied Resolution == 720p
03-08 09:55:01 INFO [otato.core.providers.base] Found: score(20) on PassThePopcorn: The Hobbit An Unexpected Journey (2012) - 720p Blu-ray x264 Extras (720p)
03-08 09:55:02 DEBUG [hpotato.core.plugins.base] Waiting for PassThePopcorn, 10 seconds
03-08 09:55:11 INFO [hpotato.core.plugins.base] Opening url: https://tls.passthepopcorn.me/torrents.php?action=download&id=204983&authkey=&torrent_pass=, params: []
03-08 09:55:12 INFO [ato.core.plugins.searcher] Snatched "The Hobbit An Unexpected Journey (2012) - 720p Blu-ray x264 Scene (720p)": The Hobbit: An Unexpected Journey (2012) in 720P

You can see that it finds 3 torrents and it looks to me like it applies that Golden status to the first one, which is the scene release, and ends up snatching the scene release.

The json returned through the api call clearly shows the scene release first with GoldenPopcorn set to false and the other release with GoldenPopcorn set to true.

{"TotalResults":"1","Movies":[{"GroupId":"80759","Title":"The Hobbit: An Unexpected Journey","Year":"2012","Cover":"https:\/\/ptpimg.me\/x8lay2.jpg","Tags":["adventure","fantasy"],"Directors":[{"Name":"Peter Jackson","Id":"473"}],"ImdbId":"0903624","TotalLeechers":25,"TotalSeeders":2606,"TotalSnatched":3695,"MaxSize":65992523776,"LastUploadTime":"2013-03-08 05:35:57","Torrents":[{"Id":204983,"Quality":"High Definition","Source":"Blu-ray","Container":"MKV","Codec":"x264","Resolution":"720p","Scene":true,"Size":"7079303270","UploadTime":"2013-02-28 01:01:15","Snatched":"1670","Seeders":"1147","Leechers":"13","Checked":true,"GoldenPopcorn":false},{"Id":206161,"Quality":"High Definition","Source":"Blu-ray","Container":"MKV","Codec":"x264","Resolution":"720p","Scene":false,"Size":"9360762223","UploadTime":"2013-03-05 23:40:00","Snatched":"116","Seeders":"103","Leechers":"4","Checked":true,"GoldenPopcorn":true},{"Id":206059,"Quality":"Other","Source":"Blu-ray","Container":"MKV","Codec":"x264","Resolution":"720p","Scene":false,"Size":"7813839769","UploadTime":"2013-03-05 09:41:15","RemasterTitle":"Extras","Snatched":"19","Seeders":"16","Leechers":"0","Checked":true,"GoldenPopcorn":false}]}]

Because I checked "Prefere Golden Popcorn" in the preferences I would expect it to always download the Golden Popcorn release if it was available. Can you take a look at this example and see if you can see why this is not the case?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.