Compare commits

...

7 Commits

Author SHA1 Message Date
JonnyWong16
356f64cac0 v2.5.2 2020-07-01 19:49:44 -07:00
JonnyWong16
f77f289125 Move GitHub sponsor first 2020-07-01 15:53:08 -07:00
JonnyWong16
280257477a Revert "Change shebang to python3"
This reverts commit cd8a899521.
2020-07-01 14:59:18 -07:00
JonnyWong16
660141cb16 Try various python versions in startup script 2020-07-01 14:43:35 -07:00
JonnyWong16
cd8a899521 Change shebang to python3 2020-07-01 14:43:04 -07:00
JonnyWong16
cb577c51b8 v2.5.2-beta 2020-06-27 15:04:06 -07:00
JonnyWong16
1c395ab10c Patch SameSite support into cookies
* Python 2.7 is missing SameSite cookie attribute
2020-06-27 15:01:16 -07:00
5 changed files with 50 additions and 31 deletions

View File

@@ -1,34 +1,30 @@
# Changelog # Changelog
## v2.5.1-beta (2020-06-26) ## v2.5.2 (2020-07-01)
* Announcements:
* Tautulli now supports Python 3!
* Python 2 is still supported for the time being, but it is recommended to upgrade to Python 3.
* Notifications: * Notifications:
* Fix: Error uploading images to Cloudinary on Python 2. * Fix: Error uploading images to Cloudinary on Python 2.
* Fix: Testing browser notifications alert not disappearing. * Fix: Testing browser notifications alert not disappearing.
* Change: Default recently added notification delay set to 300 seconds. * Change: Default recently added notification delay set to 300 seconds.
* UI: * UI:
* Fix: MacOS menu bar icon causing Tautulli to fail to start. * Fix: MacOS menu bar icon causing Tautulli to fail to start.
* New: Added platform icon for LG devices. * Fix: Unable to login to Tautulli on Python 2.
* Mobile App:
* Fix: Improved API security and validation when registering the Android app.
* Other:
* Fix: Error creating self-signed certificates on Python 3.
* Fix: Docker container not respecting the PUID and PGID environment variables.
* Fix: Tautulli login session cookie not set on the HTTP root path.
* Remove: Ability to login to Tautulli using a Plex username and password has been removed. Login using a Plex.tv account is only supported via OAuth.
## v2.5.0-beta (2020-05-31)
* Announcements:
* Tautulli now supports Python 3!
* Python 2 is still supported for the time being, but it is recommended to upgrade to Python 3.
* UI:
* New: Windows and MacOS setting to enable Tautulli to start automatically when you login. * New: Windows and MacOS setting to enable Tautulli to start automatically when you login.
* New: Added menu bar icon for MacOS. * New: Added menu bar icon for MacOS.
* New: Ability to import a Tautulli database in the settings. * New: Ability to import a Tautulli database in the settings.
* New: Added Tautulli news area on the settings page. * New: Added Tautulli news area on the settings page.
* New: Added platform icon for LG devices.
* Remove: Ability to login to Tautulli using a Plex username and password has been removed. Login using a Plex.tv account is only supported via OAuth.
* Mobile App:
* Fix: Improved API security and validation when registering the Android app.
* Docker:
* Fix: Docker container not respecting the PUID and PGID environment variables.
* Other: * Other:
* Fix: Error creating self-signed certificates on Python 3.
* Fix: Tautulli login session cookie not set on the HTTP root path.
* New: Windows and MacOS app installers to install Tautulli without needing Python installed. * New: Windows and MacOS app installers to install Tautulli without needing Python installed.

View File

@@ -230,20 +230,12 @@ ${next.modalIncludes()}
</div> </div>
</div> </div>
<ul id="donation_type" class="nav nav-pills" role="tablist" style="display: flex; justify-content: center; margin: 10px 0;"> <ul id="donation_type" class="nav nav-pills" role="tablist" style="display: flex; justify-content: center; margin: 10px 0;">
<li class="active"><a href="#patreon-donation" role="tab" data-toggle="tab">Patreon</a></li> <li class="active"><a href="#github-donation" role="tab" data-toggle="tab">GitHub</a></li>
<li><a href="#github-donation" role="tab" data-toggle="tab">GitHub</a></li> <li><a href="#patreon-donation" role="tab" data-toggle="tab">Patreon</a></li>
<li><a href="#paypal-donation" role="tab" data-toggle="tab">PayPal</a></li> <li><a href="#paypal-donation" role="tab" data-toggle="tab">PayPal</a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="patreon-donation" style="text-align: center"> <div role="tabpanel" class="tab-pane active" id="github-donation" style="text-align: center">
<p>
Click the button below to continue to Patreon.
</p>
<a href="${anon_url('https://www.patreon.com/join/tautulli')}" target="_blank">
<img src="images/become_a_patron_button.png" alt="Become a Patron" height="40">
</a>
</div>
<div role="tabpanel" class="tab-pane" id="github-donation" style="text-align: center">
<p> <p>
Click the button below to continue to GitHub. Click the button below to continue to GitHub.
</p> </p>
@@ -251,6 +243,14 @@ ${next.modalIncludes()}
<i class="fa fa-heart fa-sm" style="color: #ea4aaa;"></i>&nbsp; Sponsor <i class="fa fa-heart fa-sm" style="color: #ea4aaa;"></i>&nbsp; Sponsor
</a> </a>
</div> </div>
<div role="tabpanel" class="tab-pane" id="patreon-donation" style="text-align: center">
<p>
Click the button below to continue to Patreon.
</p>
<a href="${anon_url('https://www.patreon.com/join/tautulli')}" target="_blank">
<img src="images/become_a_patron_button.png" alt="Become a Patron" height="40">
</a>
</div>
<div role="tabpanel" class="tab-pane" id="paypal-donation" style="text-align: center"> <div role="tabpanel" class="tab-pane" id="paypal-donation" style="text-align: center">
<p> <p>
Click the button below to continue to PayPal. Click the button below to continue to PayPal.

View File

@@ -17,5 +17,5 @@
from __future__ import unicode_literals from __future__ import unicode_literals
PLEXPY_BRANCH = "beta" PLEXPY_BRANCH = "master"
PLEXPY_RELEASE_VERSION = "v2.5.1-beta" PLEXPY_RELEASE_VERSION = "v2.5.2"

View File

@@ -41,6 +41,13 @@ else:
from plexpy.users import Users, refresh_users from plexpy.users import Users, refresh_users
from plexpy.plextv import PlexTV from plexpy.plextv import PlexTV
# Monkey patch SameSite support into cookies.
# https://stackoverflow.com/a/50813092
try:
from http.cookies import Morsel
except ImportError:
from Cookie import Morsel
Morsel._reserved[str('samesite')] = str('SameSite')
JWT_ALGORITHM = 'HS256' JWT_ALGORITHM = 'HS256'
JWT_COOKIE_NAME = 'tautulli_token_' JWT_COOKIE_NAME = 'tautulli_token_'

View File

@@ -17,5 +17,21 @@ if [[ "$TAUTULLI_DOCKER" = "True" ]]; then
python Tautulli.py --datadir /config python Tautulli.py --datadir /config
fi fi
else else
python Tautulli.py &> /dev/null & if which python3 >/dev/null; then
python3 Tautulli.py &> /dev/null &
elif which python3.8 >/dev/null; then
python3.8 Tautulli.py &> /dev/null &
elif which python3.7 >/dev/null; then
python3.7 Tautulli.py &> /dev/null &
elif which python3.6 >/dev/null; then
python3.6 Tautulli.py &> /dev/null &
elif which python >/dev/null; then
python Tautulli.py &> /dev/null &
elif which python2 >/dev/null; then
python2 Tautulli.py &> /dev/null &
elif which python2.7 >/dev/null; then
python2.7 Tautulli.py &> /dev/null &
else
echo "Cannot start Tautulli: python not found."
fi
fi fi