Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script.copacetic.helper 1.0.8 #2534

Merged
merged 1 commit into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions script.copacetic.helper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ All code contained in this project is licensed under GPL 3.0.

### Changelog

**1.0.8**
- Push dbid of corresponding cropped clearlogo to window prop for comparison so cropped clearlogos only show on correct listitems.

**1.0.7**
- Add tvguide to SlideShowMonitor() whitelist

**1.0.6**
- Moved director/writer/studio/genre splitting to monitoring service

Expand Down
2 changes: 1 addition & 1 deletion script.copacetic.helper/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<addon id="script.copacetic.helper" name="Copacetic Helper" version="1.0.6" provider-name="realcopacetic">
<addon id="script.copacetic.helper" name="Copacetic Helper" version="1.0.8" provider-name="realcopacetic">
<requires>
<import addon="xbmc.python" version="3.0.1" />
<import addon="script.module.pil" version="5.1.0" />
Expand Down
2 changes: 2 additions & 0 deletions script.copacetic.helper/resources/lib/service/art.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def clearlogo_cropper(self, url=False, type='clearlogo', source='ListItem', retu
lookup_tree = ET.parse(self.lookup)
root = lookup_tree.getroot()
for key, value in list(clearlogos.items()):
self.id = xbmc.getInfoLabel(f'{path}.dbid')
self.destination, self.height, self.color, self.luminosity = False, False, False, False
name = reporting_key or key
if value:
Expand All @@ -67,6 +68,7 @@ def clearlogo_cropper(self, url=False, type='clearlogo', source='ListItem', retu
luminosity.text = str(self.luminosity)
lookup_tree.write(self.lookup, encoding="utf-8")
reporting(key=f'{name}_cropped', set=self.destination)
reporting(key=f'{name}_cropped-id', set=self.id)
reporting(key=f'{name}_cropped-height', set=self.height)
if return_color:
reporting(key=f'{name}_cropped-color', set=self.color)
Expand Down
1 change: 1 addition & 0 deletions script.copacetic.helper/resources/lib/service/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def poller(self):
'Window.IsVisible(smartplaylisteditor) | '
'Window.IsVisible(musicplaylisteditor) | '
'Window.IsVisible(mediasource) | '
'Window.IsVisible(tvguide) | '
'Container.Content(genres) | '
'Container.Content(years) | '
'Container.Content(playlists) | '
Expand Down
Loading