Skip to content

Commit

Permalink
Update pattrmm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertDisc authored Nov 14, 2023
1 parent 21f1aa8 commit 5a69849
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pattrmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def settings(self):
options['sort_title'] = '"' + options['sort_title'] + '"'
except KeyError:
options = {}
poster_url = f'"https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/chart/This%20{self.range.capitalize()}%20in%20History.jpg"'
self.meta = {}
self.meta['collections'] = {}
self.meta['collections'][self.collection_title] = {}
Expand All @@ -305,7 +306,7 @@ def settings(self):
self.meta['collections'][self.collection_title]['visible_shared'] = 'true'
self.meta['collections'][self.collection_title]['collection_order'] = 'custom'
self.meta['collections'][self.collection_title]['sync_mode'] = 'sync'
self.meta['collections'][self.collection_title]['url_poster'] = 'https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/chart/This%20' + self.range.capitalize() + '%20in%20History.jpg'
self.meta['collections'][self.collection_title]['url_poster'] = poster_url
self.meta['collections'][self.collection_title].update(options)
except Exception as e:
Expand Down

0 comments on commit 5a69849

Please sign in to comment.