Skip to content

Commit

Permalink
Python rebase conflict fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
p0psicles committed Jun 1, 2019
1 parent 096e3a7 commit a0d4a63
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
38 changes: 19 additions & 19 deletions medusa/server/web/home/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1553,20 +1553,20 @@ def setStatus(self, showSlug=None, eps=None, status=None):
# @TODO: Merge this with the other PUT commands for /api/v2/show/{id}
if not all([showSlug, eps, status]):
error_message = 'You must specify a show and at least one episode'
ui.notifications.error('Error', error_message)
return json.dumps({
'result': 'error',
'message': error_message
})
ui.notifications.error('Error', error_message)
return json.dumps({
'result': 'error',
'message': error_message
})

status = int(status)
if status not in statusStrings:
error_message = 'Invalid status'
ui.notifications.error('Error', error_message)
return json.dumps({
'result': 'error',
'message': error_message
})
ui.notifications.error('Error', error_message)
return json.dumps({
'result': 'error',
'message': error_message
})

identifier = SeriesIdentifier.from_slug(showSlug)
if not identifier:
Expand All @@ -1580,16 +1580,16 @@ def setStatus(self, showSlug=None, eps=None, status=None):
series_obj = Series.find_by_identifier(identifier)
if not series_obj:
error_message = 'Error', 'Show not in show list'
ui.notifications.error('Error', error_message)
return json.dumps({
'result': 'error',
'message': error_message
})
ui.notifications.error('Error', error_message)
return json.dumps({
'result': 'error',
'message': error_message
})

segments = {}
trakt_data = []
if eps:

if eps:
sql_l = []
for cur_ep in eps.split('|'):

Expand Down Expand Up @@ -1718,10 +1718,10 @@ def setStatus(self, showSlug=None, eps=None, status=None):
if segments:
ui.notifications.message('Retry Search started', msg)

return json.dumps({
'result': 'success',
return json.dumps({
'result': 'success',
'message': ''
})
})

def testRename(self, indexername=None, seriesid=None):
if not indexername or not seriesid:
Expand Down
4 changes: 2 additions & 2 deletions themes-default/slim/src/components/subtitle-search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ export default {
},
close() {
this.$emit('close', this);
// destroy the vue listeners, etc
// Destroy the vue listeners, etc
this.$destroy();
// remove the element from the DOM
// Remove the element from the DOM
this.$el.parentNode.removeChild(this.$el);
}
}
Expand Down
2 changes: 1 addition & 1 deletion themes/dark/assets/js/medusa-runtime.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a0d4a63

Please sign in to comment.