Skip to content

Commit

Permalink
Merge pull request #175 from hasegaw/bugfix/statink_video_id
Browse files Browse the repository at this point in the history
outputs/statink: Remove video_id from configuration
  • Loading branch information
hasegaw committed Apr 14, 2016
2 parents 2412bd4 + 366106e commit 3478b2b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ikalog/outputs/statink.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def on_config_reset(self, context=None):
self.track_objective_enabled = False
self.track_splatzone_enabled = False
self.api_key = None
self.video_id = None

def on_config_load_from_context(self, context):
self.on_config_reset(context)
Expand All @@ -102,7 +101,6 @@ def on_config_load_from_context(self, context):
self.track_objective_enabled = conf.get('TrackObjective', False)
self.track_splatzone_enabled = conf.get('TrackSplatzone', False)
self.api_key = conf.get('APIKEY', '')
self.video_id = conf.get('VIDEOID', '')

self.refresh_ui()
return True
Expand All @@ -117,7 +115,6 @@ def on_config_save_to_context(self, context):
'TrackObjective': self.track_objective_enabled,
'TrackSplatzone': self.track_splatzone_enabled,
'APIKEY': self.api_key,
'VIDEOID': self.video_id,
}

def on_config_apply(self, context):
Expand Down Expand Up @@ -296,7 +293,7 @@ def composite_payload(self, context):
payload['events'] = list(self.events)

# Video URL
if not self.video_id is None:
if not ((self.video_id is None) or (self.video_id == '')):
payload['link_url'] = 'https://www.youtube.com/watch?v=%s' % self.video_id

# ResultJudge
Expand Down

0 comments on commit 3478b2b

Please sign in to comment.