Henric Andersson
6adc7f99c9
Remove debug printouts
2016-08-27 11:32:26 -07:00
Henric Andersson
0ded4b4c07
Must include path in sha file
...
Without the complete path, sha1sum tests will fail
2016-08-27 11:15:14 -07:00
Henric Andersson
ec58dbb8dd
Merge pull request #93 from mscreations/add_checksum
...
Add checksum checking
2016-08-27 10:03:45 -07:00
Jon Shaulis
409f8992dc
Convert spaces to tabs
2016-08-27 13:02:08 -04:00
Henric Andersson
4e90141cca
Removed sudo call
...
Since AUTOINSTALL requires root and even checks for it, there is nolonger
a need to run the package installer with sudo.
Solves #90
2016-08-27 09:44:01 -07:00
Henric Andersson
5c8f646feb
Improved server detection
...
Now handles offline server and spurious results.
2016-08-27 09:38:30 -07:00
Henric Andersson
1e7e6e54cf
Merge pull request #92 from mscreations/master
...
Add X-Plex-Token to correct Issue #81
2016-08-27 08:30:35 -07:00
Jon Shaulis
858a429362
Implement checksum checking
2016-08-25 12:23:11 -04:00
Jon Shaulis
dabf3af2c1
Add X-Plex-Token to correct Issue #81
2016-08-24 21:18:40 -04:00
Henric Andersson
482f1d2c5a
Merge pull request #88 from demonbane/cron-changes
...
Make -c useful again
2016-08-16 16:52:19 -07:00
Alex Malinovich
2ef53f8588
Go back to using eval for downloaddir
2016-08-16 14:36:40 -07:00
Alex Malinovich
9d5158cbd9
Check for existence of downloaddir instead of empty string
2016-08-16 14:35:48 -07:00
Alex Malinovich
d2ccacb3e4
Fix service checking for autostart and add fallback error
2016-08-16 12:26:09 -07:00
Alex Malinovich
6c18a2b147
Print diagnostic message for autostart to stderr
2016-08-16 12:18:38 -07:00
Alex Malinovich
7470576cd6
Standardize on all uppercase variables
2016-08-16 12:12:56 -07:00
Alex Malinovich
610fb596a8
Update README with a few fixes and more cron info
2016-08-11 21:28:30 -07:00
Alex Malinovich
439286ba2e
Make -c only produce output if something is actually done
2016-08-11 21:11:41 -07:00
Alex Malinovich
dab2cf564d
Clean up bash error and fix -f description
2016-08-11 21:11:41 -07:00
Alex Malinovich
18f673e96a
Fix for hash check to make it actually work
2016-08-11 21:11:41 -07:00
Alex Malinovich
faec4b0111
Code cleanup to standardize on conditional format
...
* Replace all checks for an empty string with `-z`
* Replace all instances of `==` inside single brackets with `=`
These are all intentionally in a single commit so they can easily be
undone if anyone has a problem with the changes.
2016-08-11 21:11:41 -07:00
Alex Malinovich
ca4320db8e
Simplify DOWNLOADDIR check to remove dangerous eval call
2016-08-11 21:11:41 -07:00
Alex Malinovich
fcdcf1037a
Clean up error messages to use consistent style
2016-08-11 21:11:41 -07:00
Alex Malinovich
1b57528f14
Use bash built-in hash to check if programs exist in path
2016-08-11 21:11:41 -07:00
Henric Andersson
3bca4b4d47
Merge pull request #79 from Kezxo/patch-1
...
Added TLDR about updating
2016-08-11 14:35:30 -07:00
Kezxo
2a2db43db1
Removed chmod.
2016-08-11 23:32:10 +02:00
Henric Andersson
9dedf83ea8
Merge pull request #87 from demonbane/remove-silent
...
Remove -S option
2016-08-11 13:57:03 -07:00
Alex Malinovich
6e8686ed1e
Remove -S option. Closes #85
2016-08-11 13:25:56 -07:00
Henric Andersson
e68230cc46
Merge pull request #86 from exetico/patch-1
...
Update Readme
2016-08-11 13:22:04 -07:00
Tobias Nordahl Kristensen
40dd7fa8bd
Let's give it another try
2016-08-11 22:10:38 +02:00
Tobias Nordahl Kristensen
08343978d0
Minor updates
...
Changed some spelling, and made a small simple logo for you :-)
2016-08-11 21:44:16 +02:00
Kezxo
128acaa4b0
fixed duplicated stuff.
2016-08-11 21:16:55 +02:00
Kezxo
486004daf0
Change TLDR to use git and to use public edition
...
Making it simpler.
2016-08-11 21:13:45 +02:00
Tobias Nordahl Kristensen
6399e19e1e
Update Readme
...
Thanks for a great script. Here is a few suggestions to the readme-file.
2016-08-11 18:25:38 +02:00
Henric Andersson
10b7a1c4bf
Merge pull request #83 from demonbane/fix-getopt
...
Add missing options and remove nonexistent ones
2016-08-09 16:54:32 -07:00
Alex Malinovich
be7d25aa01
Add missing options and remove nonexistent ones
2016-08-09 16:41:23 -07:00
Henric Andersson
eadb641287
Merge pull request #82 from hakong/patch-3
...
Fixed missing option in optstring
2016-08-09 16:26:31 -07:00
hakong
3fcd511efe
Fixed missing option in optstring
...
See: 96d115de0e
2016-08-08 22:24:42 +00:00
Kezxo
5649ca5bc7
Added more info about update method.
...
I added the thing you suggested, at first i thought the built in updater was preferable so this TLDR was not necessary but it required you to use git the first time so it made sense after all. Sorry for taking so long.
2016-07-29 16:42:50 +02:00
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