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

Added support for DSM 7 #33

Merged
merged 2 commits into from
Jul 20, 2021
Merged

Added support for DSM 7 #33

merged 2 commits into from
Jul 20, 2021

Conversation

RemiRigal
Copy link
Contributor

DSM 7 comes with two changes:

  • The package is now called PlexMediaServer instead of Plex Media Server, which causes the synopkg calls to fail.
  • There is a specific Plex build for DSM 7, which is called Synology (DSM 7).

I've added a new function called retrieve_dsm_version that check wether the DSM version is <6 or 7. The subsequent calls are then adapted to the right DSM version.

Important note: I could only test this on DSM 7 (DS920+), can someone test the PR on DSM 6 to check that everything is still working as intended ?

Copy link

@madereddy madereddy left a comment

Choose a reason for hiding this comment

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

Tested this on DSM 7 and it is working correct.

Checking for a Plex Media Server update...

[ Retrieving DSM version ]
Found DSM version 7

[ Enabling Plex Pass releases ]
Found Plex Token

[ Retrieving version data ]
Available version: 1.23.4.4712-1f0ed4aea
Installed version: 1.23.4.4712-7000

The installed version of Plex is newer than the available version. If you have Plex Pass, be sure to run this script with the --plex-pass option.
Plex is up-to-date.

Done!

update-plex.sh Outdated Show resolved Hide resolved
@cowboy cowboy merged commit 9f1e759 into cowboy:master Jul 20, 2021
@RemiRigal RemiRigal deleted the dsm7 branch July 21, 2021 07:50
@epheterson
Copy link

The latest file isn't yet updated with this change, when I pull from this URL, the script does not work on DSM 7
https://github.com/cowboy/synology-update-plex/releases/latest/download/update-plex.sh

@RemiRigal
Copy link
Contributor Author

Hi @epheterson, the latest release has not been updated with the changes made in this PR.
Please use this link instead: https://github.com/cowboy/synology-update-plex/blob/master/update-plex.sh

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.

None yet

5 participants