[PR #15] [MERGED] In emails and log, indicate # of songs listened to and time elapsed on current active session #27

Closed
opened 2026-02-27 20:07:47 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/misiektoja/spotify_monitor/pull/15
Author: @tomballgithub
Created: 7/3/2025
Status: Merged
Merged: 7/3/2025
Merged by: @misiektoja

Base: devHead: songcount


📝 Commits (2)

  • 11e4701 In emails and log, indicate # of songs listened to and time elapsed on current active session
  • f29aa4c Remove errant body_dz references

📊 Changes

1 file changed (+11 additions, -8 deletions)

View changed files

📝 spotify_monitor.py (+11 -8)

📄 Description

Currently, the total number of songs listened to and the total elapsed time are only shown when a monitored user becomes inactive. This change puts that information at the bottom of every update email and in the log of each song. It provides a quick way to know how long a session has been going. The change for the inactive email is redundant, as the information is already stated there; however, I opted for consistency across all the emails.

Log example:

Spotify user:			XXX

Last played:			XXX
Duration:			3 minutes, 50 seconds
Playlist:			XXX
Album:				XXX
Last activity:			XXX

Track URL:			XXX
Playlist URL:			XXX
Album URL:			XXX
Apple Music URL:		XXX
YouTube Music URL:		XXX
Genius lyrics URL:		XXX
Sending email notification to XXX

Songs Played: 8 (24 minutes, 16 seconds)

Timestamp:			Sun, 29 Jun 2025, 16:23:58

Email example:

Last played: XXX
Duration: 2 minutes, 22 seconds
Album: XXX

Apple Music URL: XXX
YouTube Music URL: XXX
Genius lyrics URL: XXX

Songs Played: 4 (10 minutes, 49 seconds)
Last activity: Thu 03 Jul 2025, 14:14:18
Timestamp: Thu, 03 Jul 2025, 14:14:59

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/misiektoja/spotify_monitor/pull/15 **Author:** [@tomballgithub](https://github.com/tomballgithub) **Created:** 7/3/2025 **Status:** ✅ Merged **Merged:** 7/3/2025 **Merged by:** [@misiektoja](https://github.com/misiektoja) **Base:** `dev` ← **Head:** `songcount` --- ### 📝 Commits (2) - [`11e4701`](https://github.com/misiektoja/spotify_monitor/commit/11e47014ef961ea5111c41b6fc90ee3cec16a362) In emails and log, indicate # of songs listened to and time elapsed on current active session - [`f29aa4c`](https://github.com/misiektoja/spotify_monitor/commit/f29aa4ccbf6db619f18bfa7c1fa66ef32aa691d4) Remove errant body_dz references ### 📊 Changes **1 file changed** (+11 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `spotify_monitor.py` (+11 -8) </details> ### 📄 Description Currently, the total number of songs listened to and the total elapsed time are only shown when a monitored user becomes inactive. This change puts that information at the bottom of every update email and in the log of each song. It provides a quick way to know how long a session has been going. The change for the inactive email is redundant, as the information is already stated there; however, I opted for consistency across all the emails. Log example: ``` Spotify user: XXX Last played: XXX Duration: 3 minutes, 50 seconds Playlist: XXX Album: XXX Last activity: XXX Track URL: XXX Playlist URL: XXX Album URL: XXX Apple Music URL: XXX YouTube Music URL: XXX Genius lyrics URL: XXX Sending email notification to XXX Songs Played: 8 (24 minutes, 16 seconds) Timestamp: Sun, 29 Jun 2025, 16:23:58 ``` Email example: ``` Last played: XXX Duration: 2 minutes, 22 seconds Album: XXX Apple Music URL: XXX YouTube Music URL: XXX Genius lyrics URL: XXX Songs Played: 4 (10 minutes, 49 seconds) Last activity: Thu 03 Jul 2025, 14:14:18 Timestamp: Thu, 03 Jul 2025, 14:14:59 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:07:47 +03:00
Sign in to join this conversation.
No labels
Stale
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify_monitor#27
No description provided.