Skip to content

Commit

Permalink
Updated Discord presence hook
Browse files Browse the repository at this point in the history
  • Loading branch information
z411 committed Sep 1, 2022
1 parent 16c1551 commit e76b68a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from pypresence.exceptions import InvalidID, InvalidPipe

from trackma.utils import estimate_aired_episodes

from trackma.utils import Tracker

class DiscordRPC(Thread):
"""
Expand Down Expand Up @@ -124,7 +124,7 @@ def tracker_state(engine, status):
"""
Update status in thread.
"""
if status["state"] == 1:
if status["state"] == Tracker.PLAYING:
show = status["show"][0]
title = show["titles"][0]
episode = status["show"][-1]
Expand Down

0 comments on commit e76b68a

Please sign in to comment.