Kodi Community Forum
CouchPotato - Automatic Movie Downloader via NZB & Torrents - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: CouchPotato - Automatic Movie Downloader via NZB & Torrents (/showthread.php?tid=75960)



- RuudBurger - 2010-07-31

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.


- prae5 - 2010-07-31

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.



- rocker9455 - 2010-07-31

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


- RuudBurger - 2010-07-31

Seems like an encoding issue, could you PM me the "unstarred" log?


- Flomaster - 2010-07-31

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=-


- RuudBurger - 2010-07-31

have you tried the provided script?
maybe there is a privilege problem?


- darkscout - 2010-07-31

Did you update your rc.d?

sudo update-rc.d couchpotato defaults

What does:

sudo invoke-rc.d couchpotato start

do?


- Flomaster - 2010-07-31

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=-


- RuudBurger - 2010-07-31

Haha, glad to help you to that cloud Wink


- Nick8888 - 2010-08-01

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


- darkscout - 2010-08-01

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.


- RuudBurger - 2010-08-01

New build. Should prevent NZBMatrix error crap. Also TPB encoding issues.


- bloose - 2010-08-01

@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


- rocker9455 - 2010-08-01

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)


- Nick8888 - 2010-08-01

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.