Fix thumb for clip items in activity pane.

Use our own icon for Mac OS notifications.
This commit is contained in:
Tim 2015-08-09 13:20:32 +02:00
parent 9564c5ed81
commit c59562cf19
3 changed files with 8 additions and 4 deletions

View file

@ -72,8 +72,12 @@ DOCUMENTATION :: END
% if a['type'] == 'track':
<div class="dashboard-activity-poster-music-bg" style="background-image: url('pms_image_proxy?img=${a['thumb']}&width=300&height=300');"></div>
% endif
% if a['type'] == 'clip':
<img src="${a['thumb']}"/>
% else:
<img src="pms_image_proxy?img=${a['thumb']}&width=410&height=230&fallback=cover"/>
% endif
% endif
<div class="dashboard-activity-poster-info-bar">
<div class="dashboard-activity-poster-info-text">
% if a['type'] == 'track':

BIN
lib/osxnotify/appIcon.icns Executable file → Normal file

Binary file not shown.

View file

@ -15,7 +15,7 @@ def registerapp(app):
app_path = None
# check app bundle doesn't already exist
app_path = subprocess.check_output(['/usr/bin/mdfind', 'kMDItemCFBundleIdentifier == "ade.headphones.osxnotify"']).strip()
app_path = subprocess.check_output(['/usr/bin/mdfind', 'kMDItemCFBundleIdentifier == "ade.plexpy.osxnotify"']).strip()
if app_path:
return app_path, 'App previously registered'
@ -40,7 +40,7 @@ def registerapp(app):
version = "1.0.0"
bundleName = "OSXNotify"
bundleIdentifier = "ade.headphones.osxnotify"
bundleIdentifier = "ade.plexpy.osxnotify"
f = open(app_path + "/Contents/Info.plist", "w")
f.write("""<?xml version="1.0" encoding="UTF-8"?>
@ -117,10 +117,10 @@ def notify(title, subtitle=None, text=None, sound=True):
del pool
def swizzled_bundleIdentifier(self, original):
return 'ade.headphones.osxnotify'
return 'ade.plexpy.osxnotify'
if __name__ == '__main__':
notify('Half Man Half Biscuit', 'Back in the DHSS', '99% Of Gargoyles Look Like Bob Todd')
notify('PlexPy', 'Test Subtitle', 'Test Body')
""")
f.close()