Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6265943607 | ||
![]() |
de39f7691c | ||
![]() |
921a219beb | ||
![]() |
b9c95d49a6 | ||
![]() |
fc0be6bce2 | ||
![]() |
8db891cfe6 | ||
![]() |
f6e77cc578 | ||
![]() |
a3782f9150 | ||
![]() |
7546c7ef42 | ||
![]() |
53de8cda30 | ||
![]() |
1fb7473dc5 | ||
![]() |
cc9d09bd54 |
11
CHANGELOG.md
11
CHANGELOG.md
@@ -1,5 +1,16 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v1.2.14 (2015-12-07)
|
||||||
|
|
||||||
|
* Fix regression with PlexWatch db importer and buffer warnings.
|
||||||
|
|
||||||
|
|
||||||
|
## v1.2.13 (2015-12-06)
|
||||||
|
|
||||||
|
* Fix match newlines between tags in notification text.
|
||||||
|
* Fix current activity not showing on PMS 0.9.12.
|
||||||
|
|
||||||
|
|
||||||
## v1.2.12 (2015-12-06)
|
## v1.2.12 (2015-12-06)
|
||||||
|
|
||||||
* Fix for "too many open files" error.
|
* Fix for "too many open files" error.
|
||||||
|
@@ -25,7 +25,7 @@ from plexpy import helpers
|
|||||||
% endif
|
% endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">${item['description']}</p>
|
<p class="help-block">${item['description'] | n}</p>
|
||||||
</div>
|
</div>
|
||||||
% elif item['input_type'] == 'button':
|
% elif item['input_type'] == 'button':
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -34,14 +34,14 @@ from plexpy import helpers
|
|||||||
<input type="${item['input_type']}" class="btn btn-bright" id="${item['name']}" name="${item['name']}" value="${item['value']}">
|
<input type="${item['input_type']}" class="btn btn-bright" id="${item['name']}" name="${item['name']}" value="${item['value']}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">${item['description']}</p>
|
<p class="help-block">${item['description'] | n}</p>
|
||||||
</div>
|
</div>
|
||||||
% elif item['input_type'] == 'checkbox':
|
% elif item['input_type'] == 'checkbox':
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" data-id="${item['name']}" class="checkboxes" value="1" ${helpers.checked(item['value'])}> ${item['label']}
|
<input type="checkbox" data-id="${item['name']}" class="checkboxes" value="1" ${helpers.checked(item['value'])}> ${item['label']}
|
||||||
</label>
|
</label>
|
||||||
<p class="help-block">${item['description']}</p>
|
<p class="help-block">${item['description'] | n}</p>
|
||||||
<input type="hidden" id="${item['name']}" name="${item['name']}" value="${item['value']}">
|
<input type="hidden" id="${item['name']}" name="${item['name']}" value="${item['value']}">
|
||||||
</div>
|
</div>
|
||||||
% elif item['input_type'] == 'select':
|
% elif item['input_type'] == 'select':
|
||||||
@@ -60,7 +60,7 @@ from plexpy import helpers
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">${item['description']}</p>
|
<p class="help-block">${item['description'] | n}</p>
|
||||||
</div>
|
</div>
|
||||||
% endif
|
% endif
|
||||||
% endfor
|
% endfor
|
||||||
|
@@ -400,7 +400,7 @@ class ActivityProcessor(object):
|
|||||||
'WHERE session_key = ?',
|
'WHERE session_key = ?',
|
||||||
[session_key])
|
[session_key])
|
||||||
if buffer_count:
|
if buffer_count:
|
||||||
return buffer_count
|
return buffer_count['buffer_count']
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
@@ -417,6 +417,6 @@ class ActivityProcessor(object):
|
|||||||
'WHERE session_key = ?',
|
'WHERE session_key = ?',
|
||||||
[session_key])
|
[session_key])
|
||||||
if last_time:
|
if last_time:
|
||||||
return last_time
|
return last_time['buffer_last_triggered']
|
||||||
|
|
||||||
return None
|
return None
|
@@ -111,7 +111,7 @@ class MonitorDatabase(object):
|
|||||||
|
|
||||||
def select_single(self, query, args=None):
|
def select_single(self, query, args=None):
|
||||||
|
|
||||||
sql_results = self.action(query, args).fetchone()[0]
|
sql_results = self.action(query, args).fetchone()
|
||||||
|
|
||||||
if sql_results is None or sql_results == "":
|
if sql_results is None or sql_results == "":
|
||||||
return ""
|
return ""
|
||||||
|
@@ -1046,6 +1046,6 @@ class DataFactory(object):
|
|||||||
ip_address = 'N/A'
|
ip_address = 'N/A'
|
||||||
|
|
||||||
for item in result:
|
for item in result:
|
||||||
ip_address = item[0]
|
ip_address = item['ip_address']
|
||||||
|
|
||||||
return ip_address
|
return ip_address
|
||||||
|
@@ -315,13 +315,13 @@ def build_notify_text(session=None, timeline=None, state=None):
|
|||||||
# Check for exclusion tags
|
# Check for exclusion tags
|
||||||
if metadata['media_type'] == 'movie':
|
if metadata['media_type'] == 'movie':
|
||||||
# Regex pattern to remove the text in the tags we don't want
|
# Regex pattern to remove the text in the tags we don't want
|
||||||
pattern = re.compile('<tv>[^>]+.</tv>|<music>[^>]+.</music>', re.IGNORECASE|re.DOTALL)
|
pattern = re.compile('\n*<tv>[^>]+.</tv>\n*|\n*<music>[^>]+.</music>\n*', re.IGNORECASE|re.DOTALL)
|
||||||
elif metadata['media_type'] == 'show' or metadata['media_type'] == 'episode':
|
elif metadata['media_type'] == 'show' or metadata['media_type'] == 'episode':
|
||||||
# Regex pattern to remove the text in the tags we don't want
|
# Regex pattern to remove the text in the tags we don't want
|
||||||
pattern = re.compile('<movie>[^>]+.</movie>|<music>[^>]+.</music>', re.IGNORECASE|re.DOTALL)
|
pattern = re.compile('\n*<movie>[^>]+.</movie>\n*|\n*?<music>[^>]+.</music>\n*', re.IGNORECASE|re.DOTALL)
|
||||||
elif metadata['media_type'] == 'artist' or metadata['media_type'] == 'track':
|
elif metadata['media_type'] == 'artist' or metadata['media_type'] == 'track':
|
||||||
# Regex pattern to remove the text in the tags we don't want
|
# Regex pattern to remove the text in the tags we don't want
|
||||||
pattern = re.compile('<tv>[^>]+.</tv>|<movie>[^>]+.</movie>', re.IGNORECASE|re.DOTALL)
|
pattern = re.compile('\n*<tv>[^>]+.</tv>\n*|\n*<movie>[^>]+.</movie>\n*', re.IGNORECASE|re.DOTALL)
|
||||||
else:
|
else:
|
||||||
pattern = None
|
pattern = None
|
||||||
|
|
||||||
|
@@ -342,13 +342,13 @@ class PlexTV(object):
|
|||||||
|
|
||||||
rating_key = clean_uri.rpartition('%2F')[-1]
|
rating_key = clean_uri.rpartition('%2F')[-1]
|
||||||
|
|
||||||
sync_details = {"device_name": device_name,
|
sync_details = {"device_name": helpers.sanitize(device_name),
|
||||||
"platform": device_platform,
|
"platform": helpers.sanitize(device_platform),
|
||||||
"username": device_username,
|
"username": helpers.sanitize(device_username),
|
||||||
"friendly_name": device_friendly_name,
|
"friendly_name": helpers.sanitize(device_friendly_name),
|
||||||
"user_id": device_user_id,
|
"user_id": device_user_id,
|
||||||
"root_title": sync_root_title,
|
"root_title": helpers.sanitize(sync_root_title),
|
||||||
"title": sync_title,
|
"title": helpers.sanitize(sync_title),
|
||||||
"metadata_type": sync_metadata_type,
|
"metadata_type": sync_metadata_type,
|
||||||
"content_type": sync_content_type,
|
"content_type": sync_content_type,
|
||||||
"rating_key": rating_key,
|
"rating_key": rating_key,
|
||||||
|
@@ -319,7 +319,7 @@ class Users(object):
|
|||||||
query = 'select user_id FROM users WHERE username = ?'
|
query = 'select user_id FROM users WHERE username = ?'
|
||||||
result = monitor_db.select_single(query, args=[user])
|
result = monitor_db.select_single(query, args=[user])
|
||||||
if result:
|
if result:
|
||||||
return result
|
return result['user_id']
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
except:
|
except:
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
PLEXPY_VERSION = "master"
|
PLEXPY_VERSION = "master"
|
||||||
PLEXPY_RELEASE_VERSION = "1.2.12"
|
PLEXPY_RELEASE_VERSION = "1.2.14"
|
||||||
|
Reference in New Issue
Block a user