9373d5e9012a77d59f4e782eaf618e6ae0b4be07,homeassistant/components/media_player/cast.py,CastDevice,media_position,#CastDevice#,235
Before Change
position = self.media_status.current_time
if self.media_status.player_is_playing:
position += (dt_util.utcnow() -
self.media_status_received).total_seconds()
return position
@property
def media_position_updated_at(self):
When was the position of the current playing media valid.
After Change
self.media_status.player_is_idle):
return None
return self.media_status.current_time
@property
def media_position_updated_at(self):
When was the position of the current playing media valid.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: home-assistant/home-assistant
Commit Name: 9373d5e9012a77d59f4e782eaf618e6ae0b4be07
Time: 2017-07-13
Author: dersger@users.noreply.github.com
File Name: homeassistant/components/media_player/cast.py
Class Name: CastDevice
Method Name: media_position
Project Name: home-assistant/home-assistant
Commit Name: bd1e533409a6651c867725699751bb68bd7a87f8
Time: 2017-07-15
Author: dersger@users.noreply.github.com
File Name: homeassistant/components/media_player/cast.py
Class Name: CastDevice
Method Name: media_position
Project Name: eth-cscs/reframe
Commit Name: 953392256d8976694e67add6e4ace9dd50dbac91
Time: 2020-09-01
Author: eirini.koutsaniti@cscs.ch
File Name: reframe/core/schedulers/pbs.py
Class Name: PbsJobScheduler
Method Name: finished