Henric Andersson
357e716866
Merge pull request #80 from demonbane/fix-getopt
...
Fix to allow combined command-line options
2016-07-26 16:52:19 -07:00
Alex Malinovich
96d115de0e
Fix to allow combined command-line options
...
Due to a feature/bug in getopt, calling plexupdate.sh with concatenated
options (e.g. `plexupdate.sh -cq`), causes an error even though modern
versions of getopt have support for that format. The culprit seems to be
the "getopt compatibility mode". With these changes, a modern
implementation of getopt will work correctly with more complex options,
while old versions will continue to work as they currently do (requiring
multiple options to be given independently e.g. `plexupdate.sh -c -q`)
2016-07-26 15:18:46 -07:00
Henric Andersson
4244a57b52
Fixed issue where -r wouldn't work without -S
2016-07-21 20:01:44 -07:00
Kezxo
89e6f75d84
Added TLDR about updating
2016-07-22 02:59:44 +02:00
Henric Andersson
f1bec29d62
-r now works with -q
...
-q would supress all output, even the desired one. This solves the
problem for -r which ALWAYS should print the URL, regardless of -q
2016-07-19 20:50:00 -07:00
Henric Andersson
cbe3ba874a
Variable was wrong, -u should work now
...
Never code with migraine :(
2016-07-19 20:48:21 -07:00
Henric Andersson
6f81578e80
Fixed custom config for good
...
unset cannot be used unless you have the index. Good to know.
2016-07-19 16:16:22 -07:00
Henric Andersson
e15f31119e
Moved custom config to last argument
...
Makes more sense to have custom config filename at the end, also
solves issue with parameter parsing. Also corrects auto update.
Fixes #75 and #76
2016-07-18 18:14:36 -07:00
Henric Andersson
d862bdc2c1
Accidentally committed with disabled code
...
Left test code in the commit, fixed now
2016-07-16 15:36:52 -07:00
Henric Andersson
67d780d5ae
PlexPass download now work again + bonus
...
KEEP option is deprecated because of the new TOKEN scheme used by plex.tv
If you used KEEP=yes in the past, you would never get PlexPass unless the
cookie file was lost. Since I don't track validity of token, it's better
to remove keep completely.
Also added support to avoid auto install if server is in-use
(thanks @AltonV, @hakong and @sufr3ak for the tip)
To enable the new feature, please set PLEXSERVER to the IP or DNS of your
Plex Media Server (typically 127.0.0.1)
The fixes #59
2016-07-16 15:22:13 -07:00
Henric Andersson
4837eded60
.plexupdate location improved
...
You can now specify a different file than ~/.plexupdate
It now also tries to handle sudo better in respect to the location
of this file.
This closes #38
2016-07-16 14:12:18 -07:00
Henric Andersson
f3f24fc97e
Cron mode now makes sense
...
Old -C cronmode is deprecated and will cause an error message
New -c essentially converts any non-fatal error to success
Combined with -q you will only get messages if something goes wrong.
This closes #65
2016-07-16 13:45:45 -07:00
Henric Andersson
cadd613388
Merge pull request #69 from Tommatheussen/master
...
Fix for token issue
2016-07-15 07:31:00 -07:00
Tom Matheussen
1decd0c58c
Added minor comments for the changes
2016-07-15 13:06:57 +02:00
Tom Matheussen
611613fd0a
Fix for token issue
2016-07-15 12:55:04 +02:00
Henric Andersson
33731698ff
Improved login process
...
Will now properly detect invalid password/username and also handle
other random errors which could happen in a more graceful way.
2016-06-27 01:09:08 -07:00
Henric Andersson
258e565ea3
Merge pull request #62 from hakong/patch-2
...
Cron mode should not exit with non-zero if up to date
2016-06-26 23:45:30 -07:00
Henric Andersson
9634b07692
Merge pull request #61 from hakong/patch-1
...
Show usage on unrecognized option
2016-06-26 23:45:01 -07:00
hakong
02b3ecf726
Cron mode should not exit with non-zero if up to date
...
If plex is up to date, cron mode should exit with 0.
2016-06-26 23:25:32 +00:00
hakong
db29f8e41b
Show usage on unrecognized option
2016-06-26 23:08:52 +00:00
Henric Andersson
b50e8c68f9
Now detects 32/64 bit systems and can list BUILD/DISTRO
...
Automatically detects 32 or 64 bit systems and the new
-l option will allow you to easily see what options you
have when defining BUILD and DISTRO.
Also improved error messages.
2016-06-25 04:03:15 -07:00
Henric Andersson
373a147f6d
First version supporting the new format
...
Intial version supporting JSON endpoints
2016-06-24 04:21:16 -07:00
Henric Andersson
60305ebcde
Merge pull request #53 from ajmiller82/master
...
add support for cron mode and quiet mode. clean up and organize usage.
2016-05-06 09:14:44 -07:00
Andy Miller
54b70708c3
Merge remote-tracking branch 'upstream/master'
2016-05-04 21:30:33 -07:00
Andy Miller
27d02a94f5
add silent mode. clarify help text. clean up README.
2016-05-04 20:32:41 -07:00
Henric Andersson
94c920214e
Merge pull request #54 from demonbane/fix_keep
...
Fix KEEP option
2016-04-11 13:52:07 -07:00
Alex Malinovich
0ab9cc6ccf
Spelling is hard
2016-04-11 13:43:47 -07:00
Alex Malinovich
732b503dae
Skip email/pass sanity check if stored cookie exists
2016-04-11 11:21:12 -07:00
Alex Malinovich
76db00e42a
Fix KEEP option for plexpass users
2016-04-11 11:03:53 -07:00
Henric Andersson
5bad5cbe0f
Added control of package manager
...
Also fixed long-standing issue with KEEP not working
2016-04-11 07:47:00 -07:00
Andy Miller
d7682dc4a2
fix a stray '\n' missed during usage clean up
2016-04-10 22:04:47 -07:00
Andy Miller
7c3c2c52fc
add support for cron mode and quiet mode. clean up and organize usage.
2016-04-10 21:48:42 -07:00
Henric Andersson
3a6ec96422
Merge pull request #49 from joemiller/print-url-opt
...
add option -r to print the download url and exit
2016-03-19 17:50:25 -07:00
joe miller
581698a351
add option -r to print the download url and exit
2016-03-19 17:15:34 -07:00
Henric Andersson
413e061a9f
Merge pull request #45 from gboudreau/patch-1
...
Use absolute path to /sbin/service
2016-03-01 07:45:00 -08:00
Guillaume Boudreau
ab740b9ead
Use absolute path to /sbin/service
...
Sometimes, when using sudo or cron, /sbin might not be in the user's PATH, and thus we need to specify its full path when AUTOSTARTing it.
2016-03-01 08:40:50 -05:00
Henric Andersson
2080649d80
Now detects legacy settings and converts
...
If you used RELEASE= in the settings file, the change to link
detection will cause issues, this new version will warn AND
change it back to something useful.
2016-02-19 17:01:59 -08:00
Henric Andersson
17851c6507
Redid the release detection to be language agnostic
...
Seems like some versions of wget will happily ask for a localized
version of the webpage, causing the processing to fail.
Now we look for something which remains static regardless of
langauge.
2016-02-19 07:45:34 -08:00
Henric Andersson
5484b2c368
Merge pull request #41 from martijndierckx/patch-1
...
made root check case-insensitive
2016-02-13 12:37:40 -08:00
martijndierckx
5ac1aec075
made root check case-insensitive
...
running the script via sudo, kept returning the 'run as root' error.
Reason: id returned 'UID=0(root) GID=0(root) groepen=0(root)', while the lower case version was expected
2016-02-13 17:08:00 +01:00
Henric Andersson
653588d43c
Auto update now handles some more obscure situations
...
Launch plexupdate using "bash plexupdate.sh" will not cause the
autoupdate function to fail anymore. Also tries to handle the error
if it would fail.
2015-11-06 08:55:56 -08:00
Henric Andersson
b46b24f46f
Merge pull request #35 from AltonV/master
...
checking for "nothing to commit" doen't work when using another language than english
2015-11-05 10:15:24 -08:00
AltonV
fc3821150c
checking for "nothing to commit" doen't work when using another language than english
2015-11-05 15:32:54 +01:00
Henric Andersson
e8eae38e0a
Merge pull request #32 from xombiemp/master
...
Move echo to correct place
2015-10-27 13:45:34 -07:00
Andrew Parker
ee8ec46a16
This echo is displayed on Debian systems. It should only be displayed for Red Hat systems, so I moved it. It should also only be displayed if the -s switch isn't used, so I added a check for it.
2015-10-27 14:41:50 -06:00
Henric Andersson
d5a592fe38
Merge pull request #31 from Apocrathia/Apocrathia-patch-1
...
Added systemd support to AUTOSTART
2015-10-27 11:16:06 -07:00
Ian
3a8244306b
Added systemd support to AUTOSTART
2015-10-27 13:10:20 -05:00
Henric Andersson
8b556f20f0
Added FAQ section to README
2015-10-25 11:47:01 -07:00
Henric Andersson
5ef0da8489
Moved root test for autostart
...
Better to fail early than to wait until the last moment.
Also improved help text.
2015-10-25 11:43:56 -07:00
Henric Andersson
7eec8724e8
Merge pull request #29 from devinslick/master
...
Typos
2015-10-25 11:40:03 -07:00