Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CouchPotato - Generic Service approach #3092

Merged
merged 2 commits into from
Feb 23, 2018
Merged

Conversation

Safihre
Copy link
Contributor

@Safihre Safihre commented Jan 11, 2018

Checklist

  • Build rule all-supported completed successfully
  • Package upgrade completed successfully
  • New installation of package completed successfully

service_postinst ()
{
# Create a Python virtualenv
${VIRTUALENV} --system-site-packages ${SYNOPKG_PKGDEST}/env >> ${INST_LOG} 2>&1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK for Python environment, but am I wrong or pip install from requirements.txt file is required and lacking ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couchpotato has no requirements, everything comes included :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK so in that specific case, is a pip environment really required ??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, but it's considered best practice to make sure one package can't mess with anything. And doesn't take a lot of space so seems like a good idea always.

@ymartin59
Copy link
Contributor

I will propose a french translation there too.

@ymartin59
Copy link
Contributor

Please change Git clone URL to https://github.com/CouchPotato/CouchPotatoServer.git


DEPENDS =
SPK_DEPENDS = "python>2.7.3-3:git"

MAINTAINER = Diaoul
DESCRIPTION = CouchPotato is an automatic NZB and torrent downloader for movies. You can keep a \"want to watch\"-list and it will search for NZBs/torrents of these items every X hours. Once a correct release is found, matching the correct quality, it will send it to SABnzbd/NZBGet or download the .nzb or .torrent to a specified directory. The downloaded movie can then be automatically moved and renamed to your liking as well as indexed by your DiskStation.
DESCRIPTION_FRE = CouchPotato permet le téléchargement automatique de films via NZB ou torrent. Vous pouvez créer une \\\"liste de films à voir\\\", CouchPotato ira alors automatiquement rechercher les NZBs ou torrents correspondants toutes les X heures. Une fois qu\\\'une release correcte est trouvée, correspondant à la qualité demandé, elle sera ajouté a SABnzbd/NZBGet, ou téléchargée sous forme de .nzb ou de .torrent dans le répertoire indiqué. Les films téléchargés peuvent être déplacé et renommés selon vos préférences ainsi qu\\\'indexés par votre DiskStation.
DESCRIPTION_SPN = CouchPotato es un sistema automático de descarga de peliculas via NZB y torrent. Puedes tener una \"lista de películas para ver\" y el sistema buscará automáticamente cada X horas. Cuando el release es encotrado con la calidad que especificaste el sistema la enviará al programa de descargas SABnzbd/NZBGet/Transmision o descargá el .nzb o .torrent al directorio que especifiques. Cuando la pelicula se termine de descargar será movida y renombrada automaticamente a tu gusto, además de ser indexada por tu DiskStation.
ADMIN_PORT = 5050
DESCRIPTION_SPN = CouchPotato es un sistema automático de descarga de peliculas via NZB y torrent. Puedes tener una \"lista de películas para ver\" y el sistema buscará automáticamente cada X horas. Cuando el release es encotrado con la calidad que especificaste el sistema la enviará al programa de descargas SABnzbd/NZBGet/Transmision o descargá el .nzb o .torrent al directorio que especifiques. Cuando la pelicula se termine de descargar será movida y renombrada automaticamente a tu gusto, además de ser indexada por tu DiskStation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wonder why spain translation DESCRIPTION_SPN is marked as changed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think something with whitespace probably.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. Trailing white space was removed

@Safihre
Copy link
Contributor Author

Safihre commented Jan 14, 2018

@ymartin59 Will wait for your French translations then and update all at once. Maybe you can post them in the Sabnzbd PR since most texts overlap and I can do 1 big update of the PRs.

SPK_ICON = src/couchpotatoserver.png
DSM_UI_DIR = app

DEPENDS =
SPK_DEPENDS = "python>2.7.3-3:git"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any chance that this package does not work on previous python package versions ? If so probably dependency has to be set to new version only

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would highly doubt it, but maybe we can ask the people reporting problems now to test the new packages? (since we already have their attention)
This way we get feedback and know for sure.

@Safihre Safihre force-pushed the just-cp branch 3 times, most recently from c187e42 to 653d73f Compare February 12, 2018 11:02
@Safihre
Copy link
Contributor Author

Safihre commented Feb 12, 2018

@ymartin59 I incorporated the sc-media -> sc-download code into this PR.
I also found that in the service.installer some if statements had at the end &> /dev/null, so they would always return empty, although it didn't really affect the results it seems.
I fixed that too.

This PR doesn't really depend on anything, so if this is merged I can incorporate the same code into Sonarr/Radarr/Sickbeard/Sickbeard-custom and we can get things published again!

@Safihre
Copy link
Contributor Author

Safihre commented Feb 15, 2018

@ymartin59 did you have time to look at this code that I added for dealing with the sc-media?

@Safihre
Copy link
Contributor Author

Safihre commented Feb 19, 2018

Tested this extensively today and turns out the code was pretty wrong.
Corrected it now and applied it to Couchpotato, Radarr and Sonarr.
After this is merged, I will also add it to #3093 for Sickrage and Sickbeard-custom.

@Safihre Safihre merged commit cf6acc4 into SynoCommunity:master Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants