Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CouchPotato V2 plugin

Featured Replies

Hi all,

 

Based on the CouchPotato V1 plugin i created a plugin to handle version 2 of CouchPotato.

 

Here are few notes:

- this plugin create a separate catalog of CouchPotato (couchpotato_v2)

- the default installation path is /mnt/cache/.apps/, so if you need to change it please edit the plugin to suit your needs

- for now, it is recommended that the installation path and the data and also configuration file should be in the same directory

- it is possible to update the CouchPotato V2 via unRAID web or by CouchPotato V2 own site

- this plugin installs Python in 2.6.6 version

- you will find the plugin and some screens in the attachment of this message :)

- this is a first release so if you find any bug please let me know

couchpotato_v2-0.2a-ww.zip

CP_V2_screen1.png.f35de4486f2a67b361dbaae9d137f5df.png

CP_V2_screen2.png.0118376b869800af31c3574f4b84b1fe.png

  • Replies 137
  • Views 44.5k
  • Created
  • Last Reply

Why not run it on Python 2.6.4, thats what the sabnzbd and sickbeard scripts use, it would stop from one squashing the other, and V2 runs fine on 2.6.4. I created a plug-in a week or so ago to install V2 as well, but trying to keep CP installed to ram but the data dir being on the cache drive stopped me from releasing it.

 

Glad it was released though, it bothered me how out-dated the version available was, I've just been too busy to tackle the data dir issue.

I just installed this one, and it offered to "Update available to version: 3e369c583851d14fe5d6cd292c63a4c1e603f634", which I did, and seemed to work fine.

 

However, the message persists.  I would think it could be made to disappear if already on the latest.  No big deal, just reporting  :)

 

It seems to start couchpotato fine, and reports as running, but it's "unable to connect"  it also hangs while starting.  no error message is given :(

This is because the port is being written to the config instead of settings.conf

where do I fix this?  which line of the plg?

 

Also, it seems that the port numbers default to different ones from BenniChann's ports.

 

I dont' know if there is a "standard" but it would be convenient if SABnzbdb used the same port in all the plugins.  sure one can change it, but the default being the same would be helpful ;)

The port defaults to a different port because of the plug-in writing to config.ini instead of settings.conf as well, for V2 ruudburger took out the option to declare the port from the command line, it must be declared in the settings.conf, otherwise it defaults to 5050. I've modified the plug-in to do this. But it still brings back the problem with the data_dir defaulting to the install, which if your following the SabnzbdBeta-plugin thread, I had to change because if the data directory path is ".Apps" instead of ".apps" it will overwrite your settings. This may be specific to me only, other users may use something different entirely and it would only affect you if you previously had the plug-ins installed with the data directory /mnt/cache/.Apps/.

 

Basically, couchpotato V2 sets the data directory and port in its settings.conf(different from the plug-ins config.ini). Its easy enough to declare the data directory, but referencing the config directory by the data directory makes it tricky. Say you set your data directory to /mnt/data, your config directory would be /mnt/data/settings.conf. If after that you change your data directory, couchpotato will look in the new data directory for the config file, and it wouldn't exist, basically wiping your settings from couchpotato.

 

Thats the only issue I had which was why I hadn't released the couchpotato_v2 plugin. Now looking at WW's I believe there is a simple answer, I just hadn't had time to mess with it to figure it out. I'm going to test it and see if it works though, if so, I'll release an update. Of course, WW could release an update in the mean time that fixes the port issue. WW if you don't know what it is causing it PM me and I'll send you the code change to fix it, :)

 

EDIT: Sorry, was a little perturbed that I had to set everything up again. I have multiple categories set up and it takes a little while to set everything back up(I'm very particular about how the media is stored and the nomenclature).

 

The lines that need to be edited are 413-425. Any reference to config.ini needs to be settings.conf and any reference to config.old needs to be settings.old.

The lines that need to be edited are 413-425. Any reference to config.ini needs to be settings.conf and any reference to config.old needs to be settings.old.

 

These changes allowed me to install and set up couch potato.

 

however, I can't see any way to see my wishlist.  I've searched a couple of movies, it says it found them, but I cannot see any list, nor history?

 

Is something not working with the program?

 

Also, I see this even after Installing...

 

CouchPotato v2 is running with version:

Update available to version: 3e369c583851d14fe5d6cd292c63a4c1e603f634

  • Author

 

Also, I see this even after Installing...

 

CouchPotato v2 is running with version:

Update available to version: 3e369c583851d14fe5d6cd292c63a4c1e603f634

 

This is because plugin is using "version" file in DATADIR/cache directory.  Do you have data dir same as install dir?

If so, please disable CouchPotato and reenable it for rebuild version file.

  • Author

This is because the port is being written to the config instead of settings.conf

 

Right. For changing port or data dir directory you should change the line 79 and 87 in settings.conf file.

This is because the plugin creates the default setting.conf directory with port 8082 and default dir /mnt/cache/.apps/couchpotato_v2

 

I will do some modifications to automatically change this values when user change its in unraid web gui.

 

Thanks works...

was running it from commandline for the last few months...

just adapted the gui to point to my directory ....  chmodded everything to nobody and 2770 ....... changed the port ....

and started it from GUI....

It works...

finished manually starting it every time ;)

 

 

Also, I see this even after Installing...

 

CouchPotato v2 is running with version:

Update available to version: 3e369c583851d14fe5d6cd292c63a4c1e603f634

 

This is because plugin is using "version" file in DATADIR/cache directory.  Do you have data dir same as install dir?

If so, please disable CouchPotato and reenable it for rebuild version file.

 

ah, i see.  Would it be easier/better if you pointed to the user-defined data directory, instead of assuming DATADIR/cache directory.

 

I will probably move everyting to the cache drive one day, but mine is failing, so I'm just installing to

 

/usr/local/PLUGINNAME

and putting data in

/mnt/user/backup/plugins/PLUGINNAME

 

I do this for all my plugin settings.  Install to RAM, data on a drive.

 

thanks

  • Author

 

Also, I see this even after Installing...

 

CouchPotato v2 is running with version:

Update available to version: 3e369c583851d14fe5d6cd292c63a4c1e603f634

 

This is because plugin is using "version" file in DATADIR/cache directory.  Do you have data dir same as install dir?

If so, please disable CouchPotato and reenable it for rebuild version file.

 

ah, i see.  Would it be easier/better if you pointed to the user-defined data directory, instead of assuming DATADIR/cache directory.

 

"version" file is created by CouchPotato in cache directory which is in the user_defined data directory. So user_defined data directory consist of cache directory (not the cache drive).

Okay, I guess I didn't really understand :(

 

With that said, can/should it be created in a location that can be read from, so it knows what's installed, and will stop offering to upgrade?

 

I can't suggest how/where, but only that it seems there's room for improvement here :)

 

thanks again

  • Author

With that said, can/should it be created in a location that can be read from, so it knows what's installed, and will stop offering to upgrade?

 

hmmm, version file is internal CouchPotato file and is generated only when CouchPotato starts or user do update force check. This file is created into user_defined_data_directory/cache.

CouchPotato plugin using this file to determine which version of CouchPotato user have.

 

I know that this plugin should be improved and will be :)

Why not run it on Python 2.6.4, thats what the sabnzbd and sickbeard scripts use, it would stop from one squashing the other

 

This is not the problem :) i modify this plugins also so now the are working on Python 2.6.6 :)

Sabnzdb: http://lime-technology.com/forum/index.php?action=dlattach;topic=14760.0;attach=10974

SickBeard: http://lime-technology.com/forum/index.php?action=dlattach;topic=14760.0;attach=10973

 

I understand that you have "updated" the linked files to a newer version of Python. 

 

My only question is... why? Was there any real gain in updating python to 2.6.6?

 

 

 

[personal opinion] (do not take offense)

updating python for the sake of updating makes it a complete pain in the arse for anyone else looking at, creating, debugging, etc plugins/packages.  If there are already plugins out there that use a version of python and your plugin/package can run on that same version than PLEASE use the version of python already being used.

 

If your plugin/package needs a newer version, please send a PM to the original creator of the plugin/package that will also need updated and ask if it would be possible for THEM to update the plugin/package.  IF you don't get a response in a couple of days or a week then go ahead and update ALL the plugins/packages that need it.

[/personal opinion]

  • Author

Why not run it on Python 2.6.4, thats what the sabnzbd and sickbeard scripts use, it would stop from one squashing the other

 

This is not the problem :) i modify this plugins also so now the are working on Python 2.6.6 :)

Sabnzdb: http://lime-technology.com/forum/index.php?action=dlattach;topic=14760.0;attach=10974

SickBeard: http://lime-technology.com/forum/index.php?action=dlattach;topic=14760.0;attach=10973

 

I understand that you have "updated" the linked files to a newer version of Python. 

 

My only question is... why? Was there any real gain in updating python to 2.6.6?

 

Yes. One of the reasons is that there is a huge mess between unmenu packages and plugins dependencies, for example, if you have ssh enabled in unmenu and have crashplan plugin installed then you have two SSH packages because versions of this packages are different. This is not only openssh but also openssl, and some others. I was freaked :) and decided to update unmenu packages and plugin dependencies also. If i'm wrong there was differences in crashplan and sabnzddb dependencies also. And who knows yet where are the differences in other plugins.

THANK YOU!!! I had spent countless hours trying to get the other CouchPotato plugin to work to no avail. Got this thing installed, up and running in my whole library imported in about 10 minutes.

 

Thanks again for your work.

Made a few minor updates to WW's plugin to correct some issues with the settings.conf.

 

Also made a message if the data directory is located in a volatile filesystem(ram).

 

You can get it from the link in my sig

 

EDIT: Also would like to say, me and WW have agreed to work together on these plug-ins to make them better.

Anyone try the library management tool in CPv2?  How does it work?

I haven't given it a go yet, but it suppose to catalog all your movies and allow you to "upgrade" to better versions of the film

Ahhh ok. cool thanks Influencer!

The plugin is telling me there is an upgrade available, but is not showing the current version.  When I click Install, it seems to install okay, but still tells me there is an upgrade.  It seems it's not reading the current version correctly.

 

Otherwise, works great, thanks

It tells me this in settings...

 

CouchPotato v2 is running with version:

 

Update available to version: 0ba2e579f9658dfbf7ab65245bee9a04d1c09473

 

I have "upgraded" several times, and this message does not change.  It must not be reading my current version correctly, but I don't know why.

 

It shows that CouchPotato is running, but it's not really.  i cannot connect to it.

 

Any suggestions on how to fix?

 

**Edit - I looked at the plugin and line 346 reads

 

$couch_port = "8082"

 

but I have it set to use port: 8083

 

why isn't this being update properly based on my settings?

 

I looked at the settings.conf file and line 87 shows...

 

port = 8082

 

Why is there even a separate .cong file for CouchPotato?  SABnzbd and SickBeard don't have a separate file.  They just use a .cfg file for these settings.  CouchPotato v2 also has this .cfg file, but seems to not need/use it.

 

Well, I guess neither of those was the problem...

 

Firefox can't establish a connection to the server at media:8083  :(

 

I'll have to revert to the old version until this gets ironed out.  Please let me know if I can help test, or provide more information to effect the fix.

 

thanks

Its because its not being updated in the settings.conf file like it should. $couch_port reads from the settings.conf, as well as couchpotato itself. The config file is there for the install_dir variable as well as runas. The Couchpotato V2 uses the settings.conf to set the data directory and port, whereas before you could set those by the command line.

 

Were you using my updated plug-in? Some of these issues were fixed in that release. I kept the variables in the config file for ease of access, but they are updated in the settings.conf whenever changed.

 

EDIT:As for the update bug, I'm going to be looking into it in the next few days, hopefully I can figure something out with it. Just haven't had a chance the past few days, remodel and alot of changes going on at work, plus I'm having to pick up and run another department right now, so I'm pretty busy lately!

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.