diff --git a/CHANGELOG.md b/CHANGELOG.md index fabe94f2..4424b7f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## v1.4.12 (2016-09-18) + +* Fix: PMS update check not working for MacOSX. +* Fix: Square covers for music stats on homepage. +* Fix: Card width on the homepage for iPhone 6/7 Plus. (Thanks @XusBadia) +* Fix: Check for running PID when starting PlexPy. (Thanks @spolyack) +* Fix: FreeBSD service script not stopping PlexPy properly. +* Fix: Some web UI cleanup. +* Change: GitHub repostitory moved. + + ## v1.4.11 (2016-09-02) * Fix: PlexWatch and Plexivity import errors. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b0c6a04b..6b5e9643 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,14 +9,14 @@ In case you read this because you are posting an issue, please take a minute and - Turning your device off and on again. - Analyzing your logs, you just might find the solution yourself! - Using the **search** function to see if this issue has already been reported/solved. -- Checking the [Wiki](https://github.com/drzoidberg33/plexpy/wiki) for -[ [Installation] ](https://github.com/drzoidberg33/plexpy/wiki/Installation) and -[ [FAQs] ](https://github.com/drzoidberg33/plexpy/wiki/Frequently-Asked-Questions-(FAQ)). -- For basic questions try asking on [Gitter](https://gitter.im/drzoidberg33/plexpy) or the [Plex Forums](https://forums.plex.tv/discussion/169591/plexpy-another-plex-monitoring-program) first before opening an issue. +- Checking the [Wiki](https://github.com/JonnyWong16/plexpy/wiki) for +[ [Installation] ](https://github.com/JonnyWong16/plexpy/wiki/Installation) and +[ [FAQs] ](https://github.com/JonnyWong16/plexpy/wiki/Frequently-Asked-Questions-(FAQ)). +- For basic questions try asking on [Gitter](https://gitter.im/plexpy/general) or the [Plex Forums](https://forums.plex.tv/discussion/169591/plexpy-another-plex-monitoring-program) first before opening an issue. ##### If nothing has worked: -1. Open a new issue on the GitHub [issue tracker](http://github.com/drzoidberg33/plexpy/issues). +1. Open a new issue on the GitHub [issue tracker](http://github.com/JonnyWong16/plexpy/issues). 2. Provide a clear title to easily help identify your problem. 3. Use proper [markdown syntax](https://help.github.com/articles/github-flavored-markdown) to structure your post (i.e. code/log in code blocks). 4. Make sure you provide the following information: diff --git a/PlexPy.py b/PlexPy.py index 82a91808..903ce790 100755 --- a/PlexPy.py +++ b/PlexPy.py @@ -122,8 +122,21 @@ def main(): # If the pidfile already exists, plexpy may still be running, so # exit if os.path.exists(plexpy.PIDFILE): - raise SystemExit("PID file '%s' already exists. Exiting." % - plexpy.PIDFILE) + try: + with open(plexpy.PIDFILE, 'r') as fp: + pid = int(fp.read()) + os.kill(pid, 0) + except IOError as e: + raise SystemExit("Unable to read PID file: %s", e) + except OSError: + logger.warn("PID file '%s' already exists, but PID %d is " \ + "not running. Ignoring PID file." % + (plexpy.PIDFILE, pid)) + else: + # The pidfile exists and points to a live PID. plexpy may + # still be running, so exit. + raise SystemExit("PID file '%s' already exists. Exiting." % + plexpy.PIDFILE) # The pidfile is only useful in daemon mode, make sure we can write the # file properly diff --git a/README.md b/README.md index 6bebbb64..bdc5c773 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # PlexPy -[](https://gitter.im/drzoidberg33/plexpy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[](https://gitter.im/plexpy/general?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) A python based web application for monitoring, analytics and notifications for [Plex Media Server](https://plex.tv). This project is based on code from [Headphones](https://github.com/rembo10/headphones) and [PlexWatchWeb](https://github.com/ecleese/plexWatchWeb). * [Plex forum thread](https://forums.plex.tv/discussion/169591/plexpy-another-plex-monitoring-program) -* [Gitter chat](https://gitter.im/drzoidberg33/plexpy) +* [Gitter chat](https://gitter.im/plexpy/general) * [/r/Plex Discord server](https://discord.gg/011TFFWSuNFI02EKr) | [PlexPy Discord server](https://discord.gg/36ggawe) ## Features @@ -35,8 +35,8 @@ This project is based on code from [Headphones](https://github.com/rembo10/headp ## Installation and Support -* [Installation Guides](https://github.com/drzoidberg33/plexpy/wiki/Installation) shows you how to install PlexPy. -* [FAQs](https://github.com/drzoidberg33/plexpy/wiki/Frequently-Asked-Questions-(FAQ)) in the wiki can help you with common problems. +* [Installation Guides](https://github.com/JonnyWong16/plexpy/wiki/Installation) shows you how to install PlexPy. +* [FAQs](https://github.com/JonnyWong16/plexpy/wiki/Frequently-Asked-Questions-(FAQ)) in the wiki can help you with common problems. **Support** the project by implementing new features, solving support tickets and provide bug fixes. @@ -48,14 +48,14 @@ This project is based on code from [Headphones](https://github.com/rembo10/headp - Turning your device off and on again. - Analyzing your logs, you just might find the solution yourself! - Using the **search** function to see if this issue has already been reported/solved. -- Checking the [Wiki](https://github.com/drzoidberg33/plexpy/wiki) for -[ [Installation] ](https://github.com/drzoidberg33/plexpy/wiki/Installation) and -[ [FAQs] ](https://github.com/drzoidberg33/plexpy/wiki/Frequently-Asked-Questions-(FAQ)). -- For basic questions try asking on [Gitter](https://gitter.im/drzoidberg33/plexpy) or the [Plex Forums](https://forums.plex.tv/discussion/169591/plexpy-another-plex-monitoring-program) first before opening an issue. +- Checking the [Wiki](https://github.com/JonnyWong16/plexpy/wiki) for +[ [Installation] ](https://github.com/JonnyWong16/plexpy/wiki/Installation) and +[ [FAQs] ](https://github.com/JonnyWong16/plexpy/wiki/Frequently-Asked-Questions-(FAQ)). +- For basic questions try asking on [Gitter](https://gitter.im/plexpy/general) or the [Plex Forums](https://forums.plex.tv/discussion/169591/plexpy-another-plex-monitoring-program) first before opening an issue. ##### If nothing has worked: -1. Open a new issue on the GitHub [issue tracker](http://github.com/drzoidberg33/plexpy/issues). +1. Open a new issue on the GitHub [issue tracker](http://github.com/JonnyWong16/plexpy/issues). 2. Provide a clear title to easily help identify your problem. 3. Use proper [markdown syntax](https://help.github.com/articles/github-flavored-markdown) to structure your post (i.e. code/log in code blocks). 4. Make sure you provide the following information: diff --git a/data/interfaces/default/base.html b/data/interfaces/default/base.html index a0b0001f..baaab0ee 100644 --- a/data/interfaces/default/base.html +++ b/data/interfaces/default/base.html @@ -220,6 +220,8 @@