bd1e533409a6651c867725699751bb68bd7a87f8,homeassistant/components/media_player/cast.py,CastDevice,media_position,#CastDevice#,235
Before Change
self.media_status.player_is_idle):
return None
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: 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: 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: samuelclay/NewsBlur
Commit Name: 6e93972ada9577ce41af8681de3f8a080f45f418
Time: 2011-11-01
Author: samuel@ofbrooklyn.com
File Name: utils/munin/newsblur_errors.py
Class Name:
Method Name: calculate_metrics