Skip to content

Commit

Permalink
Update vars.py
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertDisc authored Nov 14, 2023
1 parent 5a69849 commit 6785825
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,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 @@ -146,7 +147,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 6785825

Please sign in to comment.