Skip to content

Commit

Permalink
No need to check for missing id in movies/shows api
Browse files Browse the repository at this point in the history
  • Loading branch information
h3llrais3r committed Jan 5, 2019
1 parent b33e619 commit 4fab971
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions autosubliminal/server/api/movies.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@ def put(self, imdb_id):
"""Save the list of hardcoded subtitles for a movie file."""
input_json = cherrypy.request.json

if not imdb_id:
return self._bad_request('Imdb_id required')

if all(k in input_json for k in ('file_location', 'file_name', 'languages')):
# Save to file
file_location = input_json['file_location']
Expand Down
3 changes: 0 additions & 3 deletions autosubliminal/server/api/shows.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,6 @@ def put(self, tvdb_id):
"""Save the list of hardcoded subtitles for a show episode file."""
input_json = cherrypy.request.json

if not tvdb_id:
return self._bad_request('Tvdb_id required')

if all(k in input_json for k in ('file_location', 'file_name', 'languages')):
# Save to file
file_location = input_json['file_location']
Expand Down

0 comments on commit 4fab971

Please sign in to comment.