CouchPotato

#search for extract errors:
grep -nri "Failed to extract" /ffp/opt/couchpotato_data/logs/ | awk '{print $8;}' | sort | uniq

#https://github.com/outkastm/Filelist.ro
mkdir /ffp/opt/couchpotato_data/custom_plugins/filelist
cd /ffp/opt/couchpotato_data/custom_plugins/filelist
git clone https://github.com/outkastm/Filelist.ro
#/ffp/opt/couchpotato_data/custom_plugins/filelist/__init__.py:
    class Filelist(MovieProvider, Base):
        cat_ids = [
            ([25], ['3d']),
            ([19], ['720p', '1080p', 'brrip', 'dvdr']),
            ([3], ['dvdr']),
            ([1], ['dvdrip', 'scr', 'r5', 'tc', 'ts', 'cam']),
        ]
        cat_backup_id = 19
#/ffp/opt/couchpotato_data/custom_plugins/filelist/main.py:
    class Base(TorrentProvider):
        urls = {
            'test': 'https://filelist.ro/',
            'login': 'https://filelist.ro/takelogin.php',
            'login_check': 'https://filelist.ro/my.php',
            'search': 'https://filelist.ro/browse.php?%s',
            'baseurl': 'https://filelist.ro/%s',
        }

#Torrent Providers:
TorrentBytes
ThePirateBay
KickAssTorrents
Torrentz
Yify
Rarbg
Filelist

#In order to work fine with Filelist configure this:
#Qualities -> Sizes, Edit the minimal and maximum sizes (in MB) for each quality:
#default: 700 - 7000 (see couchpotato/core/plugins/quality/main.py)
BR-Rip = 700 ... 20000

#How to force renamer to run
#Make sure the renamed movie does not contains files like *.renamed_already.ignore!
http://localhost/couchpotato/api/your-couchpotato-api-key-here/renamer.scan -> this won't work
http://localhost:5050/couchpotato/api/your-couchpotato-api-key-here/renamer.scan

# ERROR
    [viders.torrent.alpharatio] Failed to parsing AlphaRatio: Traceback (most recent call last):
    File "/********/apps/opt/couchpotato/couchpotato/core/media/_base/providers/torrent/alpharatio.py", line 45, in _search
    size = tds[4].contents[0].strip('\n ')
    TypeError: 'NoneType' object is not callable
# SOLUTION
    In /********/apps/opt/couchpotato/couchpotato/core/media/_base/providers/torrent/alpharatio.py line 45:
    size = tds[5].contents[0].strip('\n ')

# ERROR
    Traceback (most recent call last):
    File "/********/apps/opt/couchpotato/CouchPotato.py", line 133, in 
        l.run()
    File "/********/apps/opt/couchpotato/CouchPotato.py", line 89, in run
        runCouchPotato(self.options, base_path, sys.argv[1:], data_dir = self.data_dir, log_dir = self.log_dir, Env = Env)
    File "/********/apps/opt/couchpotato/couchpotato/runner.py", line 140, in runCouchPotato
        db.open()
    File "/********/apps/opt/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner
        res = f(*args, **kwargs)
    File "/********/apps/opt/couchpotato/libs/CodernityDB/database_super_thread_safe.py", line 93, in open
        res = super(SuperThreadSafeDatabase, self).open(*args, **kwargs)
    File "/********/apps/opt/couchpotato/libs/CodernityDB/database.py", line 571, in open
        index.open_index()
    File "/********/apps/opt/couchpotato/libs/CodernityDB/tree_index.py", line 162, in open_index
        self._open_storage()
    File "/********/apps/opt/couchpotato/libs/CodernityDB/tree_index.py", line 1923, in _open_storage
        self.storage.open()
    File "/********/apps/opt/couchpotato/libs/CodernityDB/storage.py", line 100, in open
        raise IOError("Storage doesn't exists!")
    IOError: Storage doesn't exists!
# SOLUTION
    Delete couchpotato_data/database directory. 
    Restart couchpotato.

# imdb automation
http://rss.imdb.com/user/ur32264172/watchlist
http://www.imdb.com/user/ur32264172/watchlist?ref_=wt_nv_wl_all_0

# how to completely reset/clean/clean the cache and database:
# empty the directories: cache, database, logs

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.