Plexamp Headless

Server Version#: Version 4.133.0
Player Version#:Headless 4.11.1

When resuming a paused playlist plexamp headless stops reporting to the plex server and nothing displays in plex server Dashboard/Now Playing. This is causing me an issue because I use the plex api to display current playing cover art. If I switch to an uncached playlist or file it will resume reporting.

shouldn’t be the case unless there’s a network interruption., you can post some Plexamp logs. also not sure what you’re relying on to see what’s playing.

def get_currently_playing_plex(server_base_url):
headers = {
‘Accept’: ‘application/json’,
‘X-Plex-Token’: PLEX_TOKEN
}
try:
response = requests.get(f’{server_base_url}/status/sessions’, headers=headers)
response.raise_for_status()
data = response.json()
logging.debug(f"Currently playing data: {json.dumps(data, indent=2)}“)
return data.get(‘MediaContainer’, {}).get(‘Metadata’, None)
except requests.exceptions.RequestException as e:
logging.error(f"Failed to get currently playing from Plex: {e}”)
return None

def get_album_cover_plex(metadata_item):
if metadata_item and ‘thumb’ in metadata_item:
server_base_url = LOCAL_PLEX_SERVER_URL if USE_LOCAL_PLEX_API else get_plex_server_public_address()
if server_base_url:
return f"{server_base_url}{metadata_item[‘thumb’]}?X-Plex-Token={PLEX_TOKEN}"
return None

Plexamp.3.log (58.3 KB)
Plexamp.2.log (474.1 KB)
Plexamp.1.log (3.3 MB)
Plexamp.log (3.7 MB)

Sat down this evening and saw that it was currently happening. Playlist played all items and it’s playing random titles now as it should. Plex server does not show anything playing in the dashboard. Chose a different track from the library and started it playing “Pink Floyd - Signs of Live” (Plexamp.log line 935) and it appeared as playing on the Plex server and the api returns the cover art.

I’ve attached both the Plexamp and Plex server logs. I changed the token to XXXXXXXXXXX as I don’t know it it’s sensitive

Plexamp.3.log (3.3 MB)
Plexamp.2.log (4.8 MB)
Plexamp.1.log (4.9 MB)
Plexamp.log (209.6 KB)

.

Plex Media Server Logs_2024-08-23_01-21-06.zip (6.2 MB)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.