[tasks] Fix updating and stopping tasks from Emacs

This commit is contained in:
2025-06-08 02:40:07 -04:00
parent c871087496
commit 70378c9968
6 changed files with 94 additions and 64 deletions

View File

@ -50,7 +50,8 @@ class Task(LongPlayScrobblableMixin):
url = ""
scrobble = self.scrobbles(user_id).first()
if scrobble:
url = TODOIST_TASK_URL.format(id=scrobble.logdata.todoist_id)
if scrobble.log.get("source") == "todoist":
url = TODOIST_TASK_URL.format(id=scrobble.logdata.todist_id)
return url
def subtitle_for_user(self, user_id):