Skip to content

Commit

Permalink
Change in mpc_hc handling of image
Browse files Browse the repository at this point in the history
  • Loading branch information
PCigales committed Mar 20, 2024
1 parent 39bdcef commit 2b6d190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DLNAmpcRenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3282,7 +3282,7 @@ def _process_action(self, action_id, servi, acti, args, agent):
elif acti.lower() == 'Play'.lower():
if self.TransportState == "NO_MEDIA_PRESENT":
return '701', None
if self.IPCmpcControlerInstance.Player_status.upper() in ("STOPPED", "NO_MEDIA_PRESENT") and self.IPCmpcControlerInstance.Player_image:
if self.IPCmpcControlerInstance.Player_status.upper() == "STOPPED" and self.IPCmpcControlerInstance.Player_image:
time.sleep(0.1)
if self.IPCmpcControlerInstance.Player_status.upper() in ("STOPPED", "NO_MEDIA_PRESENT"):
self.send_command((0xA0000000, (self.proxy_uri or self.AVTransportURI) if not self.rot_image else 'http://%s:%s/rotated-%s' % (self.mpc_ip, self.Port, self.AVTransportURI.rsplit('/' if r'://' in self.AVTransportURI else '\\', 1)[-1])))
Expand Down

0 comments on commit 2b6d190

Please sign in to comment.