Kodi Community Forum

Full Version: CouchPotato - Automatic Movie Downloader via NZB & Torrents
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Mm, it should at least say, "no match found" or something.
Nothing else in log? Maybe a previous error that bugged the trailer thread?
Try restart CP and do a trailer search right away.
OK, have reset CP and forced another scan. Other than the initial message i don't see anything trailer related.

Log file - http://pastebin.com/chqKuddn

Code:
couchpotato@leechbox:~/CouchPotato/logs$ cat CouchPotato.log | grep railer
11:15:12,979 INFO  [app.lib.cron.cronTrailer] Searching for trailers for existing movies.
11:31:06,416 INFO  [app.lib.cron.cronTrailer] TrailerCron shutting down.
11:31:50,911 INFO  [app.lib.cron.cronTrailer] TrailerCron thread is running.
11:31:59,056 INFO  [app.lib.cron.cronTrailer] Searching for trailers for existing movies.
Whenever CP searches for torrents it fails
Code:
KeyError: u'\xc3'
    res = map(safe_map.__getitem__, s)
  File "/usr/lib/python2.6/urllib.py", line 1222, in quote
    return quote(s, safe)
  File "/usr/lib/python2.6/urllib.py", line 1230, in quote_plus
    return self.downloadUrl % (id, quote_plus(name))
  File "/usr/local/sbin/couchpotato/app/lib/provider/yarr/sources/tpb.py", line 160, in downloadLink
    new.url = self.downloadLink(id, name)
  File "/usr/local/sbin/couchpotato/app/lib/provider/yarr/sources/tpb.py", line 115, in find
    results.extend(source.find(movie, type, type))
  File "/usr/local/sbin/couchpotato/app/lib/provider/yarr/search.py", line 46, in find
    results = self.provider.find(movie, queue)
  File "/usr/local/sbin/couchpotato/app/lib/cron/cronYarr.py", line 140, in _search
    self._search(movie)
  File "/usr/local/sbin/couchpotato/app/lib/cron/cronYarr.py", line 77, in searchAll
    self.searchAll()
  File "/usr/local/sbin/couchpotato/app/lib/cron/cronYarr.py", line 50, in run
    self.run()
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
Traceback (most recent call last):
14:20:24,271 CRITI [stderr] Exception in thread Thread-5:
14:20:24,263 INFO  [app.lib.provider.yarr.sources.tpb] Found: *** *****[DVDRip][1994]
14:20:15,422 INFO  [app.lib.provider.yarr.sources.tpb] Searching: http://thepiratebay.org/search/***+***+dvdrip/0/7/200
Any Ideas?
(BTW I starred out the movie name..)
Seems like an encoding issue, could you PM me the "unstarred" log?
I am now using a live version of Ubuntu the XBMC-Freak version I have sucessfully installed couch potato, Sabnzbdplus and sickbeard, Sabnzbplus and sick beard are auto starting as I can access them from http://ipaddres:port but CP is not auto starting I can start it by typing this in putty
/etc/init.d/couchpotato start -d not sure if I need the -d or not but it works just fine

here is what my /etc/init.d/couchpotato script looks like
Code:
#! /bin/sh
### BEGIN SCRIPT INFO
# Provides: Episode Butler Start/Stop
# Copied by Ainer.org from http://forums.sabnzbd.org/index.php?topic=2013.0
# Written by Tret on April 17, 2009
# Modified by Ainer on March 26, 2010
# Modified by Ainer on March 31, 2010
### END SCRIPT INFO

USER="xbmc"
HOME="/usr/local/sbin/couchpotato/"
SB_IP="localhost:5000"
SB_USER=""
SB_PASS=""

case "$1" in
start)
echo "Starting Couch Potato"
#find /net/server.local/tank/Movies > /dev/null
cd /usr/local/sbin/couchpotato/
/usr/bin/sudo -u $USER -H python /usr/local/sbin/couchpotato/CouchPotato.py -d & > /dev/null 2>&1
;;
stop)
echo "Shutting down Couch Potato."
/usr/bin/wget -q delete-after "http://$SB_IP/config/exit/"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac

exit 0
~
(END)
after typing that I am able to load up CP in my web browser

i have no error in my /couchpotato/log/couchpotato.log file


-=Jason=-
have you tried the provided script?
maybe there is a privilege problem?
Did you update your rc.d?

sudo update-rc.d couchpotato defaults

What does:

sudo invoke-rc.d couchpotato start

do?
Ruub permissions are good

Darkscout no, I did not update my rc.d I just followed your instructions rebooted and its working like a dream

I now have a nearly perfect HTPC running XBMC, SAB, SB, CP, MCE remote via my Monster Cable AVL-300s RF remote.

I am on cloud 9 right now i need to crack open a beer

-=Jason=-
Haha, glad to help you to that cloud Wink
I see in the changelog that webroot option has been added to the config.ini, is this the urlbase? I haven't been able to get this to work and was hoping someone could save me abit of time..

I can get CP to work on the local network through 192.168.1.2: port but was wanting to have it work with my domain as such http://domain.com/cp I was able to do the same with sabnzbd, sickbeard, transmission & tvheadend but have not been able to do so with CP yet. Any help would be much appreciated.


[edit]
Code:
Location /cp>
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:5000/
ProxyPassReverse http://localhost:5000/
</Location>

half works but all links and things are invalid. went through and changed some but adding movies does not work... would like to hear if anyone else has done this
Since nzb is an xml file, could you run it through an XML validator before saving to disk? Right now I have a ton of "error:please_wait_10" nzb files that got checked off as 'saved' but obviously aren't.

Any chance of borrowing the code for NZBsRus.com from SickBeard and adding it as a provider since NZBMatrix RSS/API seems to be having a ton of problems as of late. Which isn't limited to... "error:please_wait_10" messages.
New build. Should prevent NZBMatrix error crap. Also TPB encoding issues.
@Nick8888

I got it working (after a long battle with RuudBurger Smile)

Code:
urlbase = couchpotato

Code:
<Location /couchpotato>
    ProxyPass http://localhost:5000
    ProxyPassReverse http://localhost:5000
</Location>

The trick seems to be setting
Code:
ProxyPreserveHost On

at the VirtualHost level.

Hope it helps
darkscout Wrote:Did you update your rc.d?

sudo update-rc.d couchpotato defaults

What does:

sudo invoke-rc.d couchpotato start

do?

I Can't get it to autostart... I've used the command posted above and the rc.d is updated with couchpotato yet when i restart it still doesn't start, Any ideas?
(I'll post the result of "sudo invoke-rc.d couchpotato start" In a minute after i restart)
bloose Wrote:@Nick8888

I got it working (after a long battle with RuudBurger Smile)

Cheers bloose! I'll try this method tomorrow. I managed to get everything working with what i posted before but obviously changing the coded links is not a desired scenario when it comes to upgrading. Your config will fix this for me.