{"id":2102,"date":"2015-08-10T15:11:52","date_gmt":"2015-08-10T13:11:52","guid":{"rendered":"https:\/\/adrhc.go.ro\/wordpress\/?p=2102"},"modified":"2017-05-11T11:50:49","modified_gmt":"2017-05-11T09:50:49","slug":"couchpotato","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/couchpotato\/","title":{"rendered":"CouchPotato"},"content":{"rendered":"<pre class=\"brush:bash shell;gutter:true;toolbar:false\">\r\n#search for extract errors:\r\ngrep -nri \"Failed to extract\" \/ffp\/opt\/couchpotato_data\/logs\/ | awk '{print $8;}' | sort | uniq\r\n\r\n#https:\/\/github.com\/outkastm\/Filelist.ro\r\nmkdir \/ffp\/opt\/couchpotato_data\/custom_plugins\/filelist\r\ncd \/ffp\/opt\/couchpotato_data\/custom_plugins\/filelist\r\ngit clone https:\/\/github.com\/outkastm\/Filelist.ro\r\n#\/ffp\/opt\/couchpotato_data\/custom_plugins\/filelist\/__init__.py:\r\n\tclass Filelist(MovieProvider, Base):\r\n\t\tcat_ids = [\r\n\t\t\t([25], ['3d']),\r\n\t\t\t([19], ['720p', '1080p', 'brrip', 'dvdr']),\r\n\t\t\t([3], ['dvdr']),\r\n\t\t\t([1], ['dvdrip', 'scr', 'r5', 'tc', 'ts', 'cam']),\r\n\t\t]\r\n\t\tcat_backup_id = 19\r\n#\/ffp\/opt\/couchpotato_data\/custom_plugins\/filelist\/main.py:\r\n\tclass Base(TorrentProvider):\r\n\t\turls = {\r\n\t\t\t'test': 'https:\/\/filelist.ro\/',\r\n\t\t\t'login': 'https:\/\/filelist.ro\/takelogin.php',\r\n\t\t\t'login_check': 'https:\/\/filelist.ro\/my.php',\r\n\t\t\t'search': 'https:\/\/filelist.ro\/browse.php?%s',\r\n\t\t\t'baseurl': 'https:\/\/filelist.ro\/%s',\r\n\t\t}\r\n\r\n#Torrent Providers:\r\nTorrentBytes\r\nThePirateBay\r\nKickAssTorrents\r\nTorrentz\r\nYify\r\nRarbg\r\nFilelist\r\n\r\n#In order to work fine with Filelist configure this:\r\n#Qualities -> Sizes, Edit the minimal and maximum sizes (in MB) for each quality:\r\n#default: 700 - 7000 (see couchpotato\/core\/plugins\/quality\/main.py)\r\nBR-Rip = 700 ... 20000\r\n\r\n#How to force renamer to run\r\n#Make sure the renamed movie does not contains files like *.renamed_already.ignore!\r\nhttp:\/\/localhost\/couchpotato\/api\/your-couchpotato-api-key-here\/renamer.scan -> this won't work\r\nhttp:\/\/localhost:5050\/couchpotato\/api\/your-couchpotato-api-key-here\/renamer.scan\r\n\r\n# ERROR\r\n\t[viders.torrent.alpharatio] Failed to parsing AlphaRatio: Traceback (most recent call last):\r\n\tFile \"\/********\/apps\/opt\/couchpotato\/couchpotato\/core\/media\/_base\/providers\/torrent\/alpharatio.py\", line 45, in _search\r\n\tsize = tds[4].contents[0].strip('\\n ')\r\n\tTypeError: 'NoneType' object is not callable\r\n# SOLUTION\r\n\tIn \/********\/apps\/opt\/couchpotato\/couchpotato\/core\/media\/_base\/providers\/torrent\/alpharatio.py line 45:\r\n\tsize = tds[5].contents[0].strip('\\n ')\r\n\r\n# ERROR\r\n\tTraceback (most recent call last):\r\n\tFile \"\/********\/apps\/opt\/couchpotato\/CouchPotato.py\", line 133, in &lt;module>\r\n\t\tl.run()\r\n\tFile \"\/********\/apps\/opt\/couchpotato\/CouchPotato.py\", line 89, in run\r\n\t\trunCouchPotato(self.options, base_path, sys.argv[1:], data_dir = self.data_dir, log_dir = self.log_dir, Env = Env)\r\n\tFile \"\/********\/apps\/opt\/couchpotato\/couchpotato\/runner.py\", line 140, in runCouchPotato\r\n\t\tdb.open()\r\n\tFile \"\/********\/apps\/opt\/couchpotato\/libs\/CodernityDB\/database_super_thread_safe.py\", line 43, in _inner\r\n\t\tres = f(*args, **kwargs)\r\n\tFile \"\/********\/apps\/opt\/couchpotato\/libs\/CodernityDB\/database_super_thread_safe.py\", line 93, in open\r\n\t\tres = super(SuperThreadSafeDatabase, self).open(*args, **kwargs)\r\n\tFile \"\/********\/apps\/opt\/couchpotato\/libs\/CodernityDB\/database.py\", line 571, in open\r\n\t\tindex.open_index()\r\n\tFile \"\/********\/apps\/opt\/couchpotato\/libs\/CodernityDB\/tree_index.py\", line 162, in open_index\r\n\t\tself._open_storage()\r\n\tFile \"\/********\/apps\/opt\/couchpotato\/libs\/CodernityDB\/tree_index.py\", line 1923, in _open_storage\r\n\t\tself.storage.open()\r\n\tFile \"\/********\/apps\/opt\/couchpotato\/libs\/CodernityDB\/storage.py\", line 100, in open\r\n\t\traise IOError(\"Storage doesn't exists!\")\r\n\tIOError: Storage doesn't exists!\r\n# SOLUTION\r\n\tDelete couchpotato_data\/database directory. \r\n\tRestart couchpotato.\r\n\r\n# imdb automation\r\nhttp:\/\/rss.imdb.com\/user\/ur32264172\/watchlist\r\nhttp:\/\/www.imdb.com\/user\/ur32264172\/watchlist?ref_=wt_nv_wl_all_0\r\n\r\n# how to completely reset\/clean\/clean the cache and database:\r\n# empty the directories: cache, database, logs\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#search for extract errors: grep -nri &#8220;Failed to extract&#8221; \/ffp\/opt\/couchpotato_data\/logs\/ | awk &#8216;{print $8;}&#8217; | 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], [&#8216;3d&#8217;]), ([19], [&#8216;720p&#8217;, &#8216;1080p&#8217;, &#8216;brrip&#8217;, &#8216;dvdr&#8217;]), [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/couchpotato\/#more-2102\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">CouchPotato<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,11],"tags":[113],"class_list":["post-2102","post","type-post","status-publish","format-standard","hentry","category-configuration","category-linux","tag-couchpotato"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=2102"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2102\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=2102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=2102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=2102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}