Skip to content

Commit

Permalink
feat!:move to a new api
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 15, 2024
1 parent a861efe commit 5b597db
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,9 @@ def initialize(self):
def fetch_wallpapers(self, query=None) -> str:
self.picture_list = get_wallpapers(query)
self.pic_idx = 0
self.gui["imgLink"] = self.picture_list[self.pic_idx]
self.set_context("PhotoUpdated")
return self.picture_list[self.pic_idx]

@resting_screen_handler("Wallpapers")
def idle(self, message=None):
image = self.fetch_wallpapers()
self.gui.show_image(image, fill='PreserveAspectFit')

# PHAL wallpaper manager integrations
def register_with_PHAL(self):
self.bus.emit(Message("ovos.wallpaper.manager.register.provider",
Expand Down

0 comments on commit 5b597db

Please sign in to comment.