Skip to content

Commit

Permalink
Update and fix flexget (SynoCommunity#3035)
Browse files Browse the repository at this point in the history
- Update Flexget to version 2.21.24
- Fix user and group creation
- Fix installation wizard

use official pyload icon
  • Loading branch information
hgy59 committed Jun 19, 2020
1 parent 3874ac6 commit 73f56f9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions spk/flexget/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPK_NAME = flexget
SPK_VERS = 2.9.14
SPK_REV = 6
SPK_VERS = 2.21.24
SPK_REV = 7
SPK_ICON = src/flexget.png

WHEELS = src/requirements.txt
Expand All @@ -9,8 +9,8 @@ SPK_DEPENDS = "python>=2.7.8-11"
MAINTAINER = Diaoul
DESCRIPTION = FlexGet is a multipurpose automation tool for content like torrents, nzbs, podcasts, comics, series, movies, etc. It can use different kinds of sources like RSS-feeds, html pages, csv files, search engines and there are even plugins for sites that do not provide any kind of useful feeds.
DISPLAY_NAME = FlexGet
BETA = 1
CHANGELOG = "Update Flexget to version 2.9.14"

CHANGELOG = "1. Update Flexget to version 2.21.24<br>2. Fix user and group creation<br>3. Fix installation wizard"

HOMEPAGE = http://flexget.com/
LICENSE = GPL
Expand Down
6 changes: 4 additions & 2 deletions spk/flexget/src/dsm-control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ PYTHON_DIR="/usr/local/python"
PATH="${INSTALL_DIR}/bin:${INSTALL_DIR}/env/bin:${PYTHON_DIR}/bin:${PATH}"
PYTHON="${INSTALL_DIR}/env/bin/python"
BUILDNUMBER="$(/bin/get_key_value /etc.defaults/VERSION buildnumber)"
MAJOR_VERSION="$(/bin/get_key_value /etc.defaults/VERSION majorversion)"
FLEXGET="${INSTALL_DIR}/env/bin/flexget"
CFG_FILE="${INSTALL_DIR}/var/config.yml"
PID_FILE="${INSTALL_DIR}/var/.config-lock"
Expand All @@ -18,16 +19,17 @@ LOG_FILE="${INSTALL_DIR}/var/flexget.log"
SC_USER="sc-flexget"
LEGACY_USER="flexget"
USER="$([ "${BUILDNUMBER}" -ge "7321" ] && echo -n ${SC_USER} || echo -n ${LEGACY_USER})"
SUDO="$([ "${MAJOR_VERSION}" -ge "6" ] && echo 'sudo -u' || echo 'su' )"


start_daemon ()
{
su ${USER} -s /bin/sh -c "${FLEXGET} -c ${CFG_FILE} --logfile ${LOG_FILE} daemon start -d"
${SUDO} ${USER} -s /bin/sh -c "${FLEXGET} -c ${CFG_FILE} --logfile ${LOG_FILE} daemon start -d"
}

stop_daemon ()
{
su ${USER} -s /bin/sh -c "${FLEXGET} -c ${CFG_FILE} --logfile ${LOG_FILE} daemon stop"
${SUDO} ${USER} -s /bin/sh -c "${FLEXGET} -c ${CFG_FILE} --logfile ${LOG_FILE} daemon stop"
}

daemon_status ()
Expand Down
2 changes: 1 addition & 1 deletion spk/pyload/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ADMIN_PORT = 8190
RELOAD_UI = yes
STARTABLE = yes
DISPLAY_NAME = pyLoad
CHANGELOG = Fix updatemanager
CHANGELOG = Fix application start

HOMEPAGE = http://pyload.net
LICENSE = GPLv3
Expand Down
Binary file modified spk/pyload/src/pyload.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 73f56f9

Please sign in to comment.