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)



- owen-b - 2011-01-30

.
Quote:002:11:10 INFO [ app.lib.cron.renamer] Moving file "/Volumes/External/dltv/SABnzbd Downloads/Movies/Back to the Future (1985) BRRip XvidHD 720p NPW/Back to the Future.avi" to /Volumes/External/Movies & TV/Films/Back to the Future (1985)/Back to the Future.avi.
02:11:10 INFO [ app.lib.cron.renamer] Quality Old: 0, New 3242.
02:11:10 DEBUG [ app.lib.cron.renamer]
02:11:10 INFO [ app.lib.cron.renamer] Trying to find a home for: Back to the Future.avi
02:11:10 DEBUG [ app.lib.cron.renamer] self.renameFiles(movie)
02:11:10 DEBUG [ app.lib.cron.renamer] Ready to rename some files.
02:11:10 DEBUG [ app.lib.cron.renamer] Movies: [{'files': [{'ext': u'avi', 'size': 3400202240, 'hash': '4c12c98174f649c8', 'filename': u'Back to the Future.avi'}], 'meta': {u'common': [{u'comment': u'Has audio/video index (3.1 MB)', u'mime type': u'video/x-msvideo', u'image height': 696, u'frame rate': 24.0, u'producer': u'VirtualDubMod 1.5.10.2 (build 2540/release)', u'image width': 1280, u'endianness': u'Little endian', u'duration': u'1:56:05', u'bit rate': 2400000.0}], u'audio stream': [{u'compression rate': 7.2000000000000002, u'compression': u'AC3', u'sample rate': 48000.0, u'duration': u'1:56:05', u'bit rate': 640000.0, u'channel': 6}], u'video stream': [{u'image height': 696, u'compression': u'xvid', u'image width': 1280, u'bits/pixel': 12, u'duration': u'1:56:05', u'frame rate': 24.0}]}, 'path': u'/Volumes/External/dltv/SABnzbd Downloads/Movies/Back to the Future (1985) BRRip XvidHD 720p NPW', 'subtitles': {'files': [{'ext': u'srt', 'filename': u'Back to the Future_Track3.srt'}, {'ext': u'srt', 'filename': u'Back to the Future_Track4.srt'}, {'ext': u'srt', 'filename': u'Back to the Future_Track5.srt'}], 'extras': []}, 'info': {'imdb': 'tt0088763', 'year': 1985, 'sourcemedia': 'bluray', 'quality': 'BR-Rip', 'cpnfoImdb': None, 'size': '3400202240', 'group': '', 'name': u'Back to the Future', 'codec': {'audio': '', 'video': ''}, 'ppScriptName': None, 'resolution': '720p'}, 'nfo': [u'NPW.nfo'], 'movie': <movie: Back to the Future, 'filename': u'Back to the Future', 'queue': <moviequeue: Back to the Future active=True complete=None quality=brrip, 'cpnfo': None, 'match': True, 'folder': u'Back to the Future (1985) BRRip XvidHD 720p NPW', 'trailer': [], 'history': None}, {'files': [{'ext': u'avi', 'size': 3106164736, 'hash': 'fbc7975cdc8ce7b6', 'filename': u'Centurion 2010 BRRip XvidHD 720p-NPW.avi'}], 'meta': {u'common': [{u'comment': u'Has audio/video index (2.9 MB)', u'mime type': u'video/x-msvideo', u'image height': 544, u'frame rate': 24.0, u'producer': u'VirtualDubMod 1.5.10.2 (build 2540/release)', u'image width': 1280, u'endianness': u'Little endian', u'duration': u'1:37:29', u'bit rate': 2900000.0}], u'audio stream': [{u'compression rate': 7.2000000000000002, u'compression': u'AC3', u'sample rate': 48000.0, u'duration': u'1:37:29', u'bit rate': 640000.0, u'channel': 6}], u'video stream': [{u'image height': 544, u'compression': u'xvid', u'image width': 1280, u'bits/pixel': 12, u'duration': u'1:37:29', u'frame rate': 24.0}]}, 'path': u'/Volumes/External/dltv/SABnzbd Downloads/Movies/Centurion 2010 BRRip XvidHD 720p NPW', 'subtitles': {'files': [], 'extras': []}, 'info': {'imdb': None, 'year': 2010, 'sourcemedia': 'bluray', 'quality': 'BR-Rip', 'cpnfoImdb': None, 'size': '3106164736', 'group': '', 'name': u'Centurion', 'codec': {'audio': '', 'video': ''}, 'ppScriptName': None, 'resolution': '720p'}, 'nfo': [], 'movie': <movie: Centurion, 'filename': u'Centurion 2010 BRRip XvidHD 720p-NPW', 'queue': <moviequeue: Centurion active=True complete=None quality=brrip, 'cpnfo': None, 'match': True, 'folder': u'Centurion 2010 BRRip XvidHD 720p NPW', 'trailer': [], 'history': None}]
02:11:10 DEBUG [ app.lib.library] getMoviesEnd
02:11:10 DEBUG [ app.lib.library] movies.append(movie)
02:11:10 DEBUG [ app.lib.library] removeMultipart
02:11:10 INFO [ app.lib.library] Retrieved metainfo: {u'common': [{u'comment': u'Has audio/video index (2.9 MB)', u'mime type': u'video/x-msvideo', u'image height': 544, u'frame rate': 24.0, u'producer': u'VirtualDubMod 1.5.10.2 (build 2540/release)', u'image width': 1280, u'endianness': u'Little endian', u'duration': u'1:37:29', u'bit rate': 2900000.0}], u'audio stream': [{u'compression rate': 7.2000000000000002, u'compression': u'AC3', u'sample rate': 48000.0, u'duration': u'1:37:29', u'bit rate': 640000.0, u'channel': 6}], u'video stream': [{u'image height': 544, u'compression': u'xvid', u'image width': 1280, u'bits/pixel': 12, u'duration': u'1:37:29', u'frame rate': 24.0}]}
02:11:10 DEBUG [ app.lib.library] self.getHistory(movie[movie])
02:11:10 DEBUG [ app.lib.library] self.getHistory(movie[movie])
02:11:10 INFO [ app.lib.library] Found movie via MovieQueue.
02:11:10 DEBUG [ app.lib.library] self.determineMovie(movie)
02:11:10 DEBUG [ app.lib.library] Files found
02:11:10 DEBUG [ app.lib.library] self.keepFile(fullFilePath)
02:11:10 DEBUG [ app.lib.library] Processing file: /Volumes/External/dltv/SABnzbd Downloads/Movies/Centurion 2010 BRRip XvidHD 720p NPW/Centurion 2010 BRRip XvidHD 720p-NPW.avi
02:11:10 DEBUG [ app.lib.library] movies.append(movie)
02:11:10 DEBUG [ app.lib.library] removeMultipart
02:11:10 INFO [ app.lib.library] Retrieved metainfo: {u'common': [{u'comment': u'Has audio/video index (3.1 MB)', u'mime type': u'video/x-msvideo', u'image height': 696, u'frame rate': 24.0, u'producer': u'VirtualDubMod 1.5.10.2 (build 2540/release)', u'image width': 1280, u'endianness': u'Little endian', u'duration': u'1:56:05', u'bit rate': 2400000.0}], u'audio stream': [{u'compression rate': 7.2000000000000002, u'compression': u'AC3', u'sample rate': 48000.0, u'duration': u'1:56:05', u'bit rate': 640000.0, u'channel': 6}], u'video stream': [{u'image height': 696, u'compression': u'xvid', u'image width': 1280, u'bits/pixel': 12, u'duration': u'1:56:05', u'frame rate': 24.0}]}
02:11:09 INFO [ app.lib.cron.yarr] Finished search.
02:11:09 INFO [er.yarr.sources.nzbmatrix] Getting RSS from cache: tt1559549-54.
02:11:09 INFO [er.yarr.sources.nzbmatrix] Searching: http://rss.nzbmatrix.com/rss.php?username=XXX&searchin=weblink&term=tt1559549&apikey=XXX&subcat=54
02:11:09 DEBUG [.lib.provider.yarr.search] Searching for movie: Restrepo
02:11:09 INFO [ app.lib.cron.yarr] Searching for new downloads, for all movies.
02:11:09 DEBUG [ app.lib.library] self.getHistory(movie[movie])
02:11:09 DEBUG [ app.lib.library] self.getHistory(movie[movie])
02:11:09 DEBUG [ app.lib.library] self.determineMovie(movie)
02:11:09 DEBUG [ app.lib.library] Scanning nfo
02:11:09 DEBUG [ app.lib.library] Files found
02:11:09 DEBUG [ app.lib.library] self.keepFile(fullFilePath)
02:11:09 DEBUG [ app.lib.library] Processing file: /Volumes/External/dltv/SABnzbd Downloads/Movies/Back to the Future (1985) BRRip XvidHD 720p NPW/Back to the Future.avi
02:11:09 DEBUG [ app.lib.library] Processing file: /Volumes/External/dltv/SABnzbd Downloads/Movies/Back to the Future (1985) BRRip XvidHD 720p NPW/NPW.nfo
02:11:09 DEBUG [ app.lib.library] Processing file: /Volumes/External/dltv/SABnzbd Downloads/Movies/Back to the Future (1985) BRRip XvidHD 720p NPW/Back to the Future_Track5.srt
02:11:09 DEBUG [ app.lib.library] Processing file: /Volumes/External/dltv/SABnzbd Downloads/Movies/Back to the Future (1985) BRRip XvidHD 720p NPW/Back to the Future_Track4.srt
02:11:09 DEBUG [ app.lib.library] Processing file: /Volumes/External/dltv/SABnzbd Downloads/Movies/Back to the Future (1985) BRRip XvidHD 720p NPW/Back to the Future_Track3.srt
02:11:09 DEBUG [ app.lib.library] os.walk(movieFolder) /Volumes/External/dltv/SABnzbd Downloads/Movies
02:11:09 DEBUG [ app.lib.library] getMoviesStart
02:11:09 DEBUG [ app.lib.cron.renamer] Starting renaming
02:11:08 INFO [ app.config.updater] No update available
02:11:02 INFO [ ENGINE] Bus STARTED
02:11:02 INFO [ ENGINE] Serving on 0.0.0.0:5000
02:11:01 DEBUG [tle.sources.opensubtitles] Logged into OpenSubtitles vl06qpa0noric4gs0e454o3ls6.
02:10:59 INFO [ app.lib.cron.yarr] YarrCron thread is running.
02:10:59 INFO [ app.lib.cron.renamer] Renamer thread is running.
02:10:59 INFO [ app.lib.cron.eta] MovieETA thread is running.
02:10:59 INFO [ app.lib.cron.subtitle] SubtitleCron thread is running.
02:10:59 INFO [ app.lib.cron.trailer] TrailerCron thread is running.
02:10:59 INFO [movie.sources.imdbWrapper] Using IMDB provider.
02:10:59 INFO [.movie.sources.theMovieDb] Using TheMovieDb provider.
02:10:59 INFO [provider.yarr.sources.tpb] Using TPB.org provider
02:10:59 INFO [ider.yarr.sources.newznab] Using Newznab provider
02:10:59 INFO [rovider.yarr.sources.nzbs] Using NZBs.org provider
02:10:59 INFO [er.yarr.sources.nzbmatrix] Using NZBMatrix provider
02:10:59 INFO [ app.lib.cron] Starting Cronjobs.
02:10:59 INFO [ ENGINE] Started monitor thread '_TimeoutMonitor'.
02:10:59 INFO [ ENGINE] Daemonized to PID: 12207
02:10:59 INFO [ ENGINE] Forking twice.
02:10:59 INFO [ ENGINE] Forking once.
02:10:59 INFO [ ENGINE] Bus STARTING
02:10:59 INFO [ ENGINE] Listening for SIGUSR1.
02:10:59 INFO [ ENGINE] Listening for SIGTERM.
02:10:59 INFO [ ENGINE] Listening for SIGHUP.
02:10:59 DEBUG [ app.config.db] Database is up to date.
02:10:59 DEBUG [ app.lib.qualities] Creating default quality settings, if needed



- owen-b - 2011-01-30

Despite messages to the contrary, it didn't move anything. It did create a BTTF folder, but it's still empty.


- DejaVu - 2011-01-30

I found running CP with a User account did not have permissions to access certain folders on my system. I have since loaded it using the root account and it renames perfectly. Might not be the case with your issue, but thought it was relevant. Smile

While I'm here I would like to give some serious recognition to alshain for holding up the fort here helping everyone with CP, myself included whilst RB is either MIA Wink or concentrating on other projects.

Absolutely outstanding member of the XBMC community giving up his free time to help the likes of everyone else solve their problems!!

Big Thanks to alshain!

Top bloke!
(now get on this r28 business! Wink)


- owen-b - 2011-01-30

The account I'm running on my iMac is my account, which is the admin account. The CP directory is in the /Applications folder so not in a User folder. Not sure if that means anything!


- DejaVu - 2011-01-30

Have not tried the iMac version as I'm not privvy to Apple gear. Let me go back and read through your posts, work out the whole issue and see if I can help.

--EDIT--
So, CP manages to set the folder name.
That eliminates write permissions as the folder would not be created at all.
Have you got the very next few lines above
Quote:002:11:10 INFO [ app.lib.cron.renamer] Moving file "/Volumes/External/dltv/SABnzbd Downloads/Movies/Back to the Future (1985) BRRip XvidHD 720p NPW/Back to the Future.avi" to /Volumes/External/Movies & TV/Films/Back to the Future (1985)/Back to the Future.avi.
02:11:10 INFO [ app.lib.cron.renamer] Quality Old: 0, New 3242.
As that may give some indication of what is happening.

Moving files, especially across Drives can take some time. My CP moves 8GB files around for me which takes about 20 minutes each!


- owen-b - 2011-01-30

No, those are the last entries I get. Here's what happened at the end of the last restart I did, at 2.38:

Code:
05:01:36 INFO  [       app.config.updater] No update available
02:38:45 INFO  [     app.lib.cron.renamer] Moving file "/Volumes/External/dltv/SABnzbd Downloads/Movies/Back to the Future (1985) BRRip XvidHD 720p NPW/Back to the Future.avi" to /Volumes/External/Movies & TV/Films/Back to the Future (1985)/Back to the Future.avi.
02:38:45 INFO  [     app.lib.cron.renamer] Quality Old: 0, New 3242.
02:38:45 DEBUG [     app.lib.cron.renamer]
02:38:45 INFO  [     app.lib.cron.renamer] Trying to find a home for: Back to the Future.avi
02:38:45 DEBUG [     app.lib.cron.renamer] self.renameFiles(movie)
02:38:45 DEBUG [     app.lib.cron.renamer] Ready to rename some files.

The next entry is at 5.01, a minute ago, when I refreshed the logs.

It seems like the only movie it detects in the folder is BTTF. I have several others in there, some with .nfo files, some without, but BTTF is the only one that it notices. I shall rename the folder to something that bumps it down the order and restart CP and see if it detects a different folder this time.


- owen-b - 2011-01-30

Okay, this time it detected a different movie, (BTTF Part 2 as it happens) because that was the first one alphabetically in the list. This is the last entry in the log:

Quote:05:06:01 INFO [ app.lib.cron.renamer] Moving file "/Volumes/External/dltv/SABnzbd Downloads/Movies/Back to the Future Part II 1989 BluRay 720p DTS x264 HDBiZ/Back.to.the.Future.Part.II.1989.BluRay.720p.DTS.x264-HDBiZ.mkv" to /Volumes/External/Movies & TV/Films/Back to the Future Part II (1989)/Back to the Future Part II.mkv.
05:06:01 INFO [ app.lib.cron.renamer] Quality Old: 0, New 4475.
05:06:01 DEBUG [ app.lib.cron.renamer]
05:06:01 INFO [ app.lib.cron.renamer] Creating directory /Volumes/External/Movies & TV/Films/Back to the Future Part II (1989)
05:06:01 INFO [ app.lib.cron.renamer] Trying to find a home for: Back.to.the.Future.Part.II.1989.BluRay.720p.DTS.x264-HDBiZ.mkv
05:06:01 DEBUG [ app.lib.cron.renamer] self.renameFiles(movie)
05:06:01 DEBUG [ app.lib.cron.renamer] Ready to rename some files.


Same thing - it creates the correctly named folder in the destination, then nothing happens. The destination it's set to move them to is on the same drive and SickBeard moves files around the same drive with no issues.

So from this it seems like it's reading the first entry in the list, creating the folder for it in the destination, then stopping. It's also not renaming anything.


- tiwas - 2011-01-30

As CP only downloaded one movie, out of three, correctly (the other two were movies I wouldn't even watch if I was stuck on an island, and my buddy, the coconut, said it was ok) I would like to see a function were CP didn't download, but instead presented a list of possible matches so we could accept one or reject them all...


- owen-b - 2011-01-30

tiwas Wrote:As CP only downloaded one movie, out of three, correctly (the other two were movies I wouldn't even watch if I was stuck on an island, and my buddy, the coconut, said it was ok) I would like to see a function were CP didn't download, but instead presented a list of possible matches so we could accept one or reject them all...

I agree, would be nice to see the results it's getting from wherever it searches and select the one I want. Also, it would be nice if, having selected a certain quality for a 'Want', if that quality isn't found I could change the quality down to the next acceptable level without having to cancel the Want and then request it again with a lower quality setting.


- tiwas - 2011-01-30

owen-b Wrote:Also, it would be nice if, having selected a certain quality for a 'Want', if that quality isn't found I could change the quality down to the next acceptable level without having to cancel the Want and then request it again with a lower quality setting.

I second that. If we're allowed to choose one of the matches ourselves, the quality would be more of a guideline and you might want to view the R5 if you know it's of good quality Smile

Now...does the makers of this promising software actually read this? Wink


- owen-b - 2011-01-30

I hope so, I donated 10 bucks to him last night Wink


- tiwas - 2011-01-30

I'll donate $50 for that functionality - $10 to have it implemented and the other $40 when I see it's working Smile


- owen-b - 2011-01-30

In the meantime I'd love it if someone could find out why the renaming isn't working, that's one of the biggest features for me Sad

Or rather why, in my case, it starts off scanning the first movie it finds in the SAB directory, creates a folder for it, then stops and refuses to scan any more movies, let alone rename and move them. It won't budge until I restart CP, whereupon it scans the folder again, says it's starting work moving and renaming the first movie it finds, then stops again.


- oro2 - 2011-01-30

I am trying to run CP on a ReadyNAS Duo.
I have installed Python 2.6 and sqlite3, but i still get the error messages below when I run "CoutchPotato.py -d". Any suggestions?


Code:
Traceback (most recent call last):
  File "/c/apps/CouchPotato/CouchPotato.py", line 36, in <module>
    from app.config.db import initDb
  File "/c/apps/CouchPotato/app/config/db.py", line 29, in <module>
    engine = create_engine('sqlite:///%s' % path)
  File "/c/apps/CouchPotato/library/sqlalchemy/engine/__init__.py", line 254, in create_engine
    return strategy.create(*args, **kwargs)
  File "/c/apps/CouchPotato/library/sqlalchemy/engine/strategies.py", line 60, in create
    dbapi = dialect_cls.dbapi(**dbapi_args)
  File "/c/apps/CouchPotato/library/sqlalchemy/dialects/sqlite/pysqlite.py", line 209, in dbapi
    raise e
ImportError: No module named pysqlite2



- Aenima99x - 2011-01-30

oro2 Wrote:I am trying to run CP on a ReadyNAS Duo.
I have installed Python 2.6 and sqlite3, but i still get the error messages below when I run "CoutchPotato.py -d". Any suggestions?

Try putting the path to your Python2.6 location then the CouchPotato command..like this
Code:
/Path/to/Python2.6 CouchPotato.py -d