remove obsolete test

This commit is contained in:
clinton-hall 2014-03-19 07:10:18 +10:30
commit 21fc2f9217

View file

@ -131,15 +131,14 @@ def get_status(baseURL, movie_id, download_id):
return None, None return None, None
Logger.debug("Looking for status of movie: %s", movie_id) Logger.debug("Looking for status of movie: %s", movie_id)
if not result: # we haven't already called media.get url = baseURL + "media.get/?id=" + str(movie_id)
url = baseURL + "media.get/?id=" + str(movie_id) Logger.debug("Opening URL: %s", url)
Logger.debug("Opening URL: %s", url)
try: try:
urlObj = urllib.urlopen(url) urlObj = urllib.urlopen(url)
except: except:
Logger.exception("Unable to open URL") Logger.exception("Unable to open URL")
return None, None return None, None
try: try:
result = json.load(urlObj) result = json.load(urlObj)
movie_status = str(result["media"]["status"]) movie_status = str(result["media"]["status"])