Commits

Matthew Turk  committed 99b5ebd

Return the shorturl in the response code.

  • Participants
  • Parent commits 1713241

Comments (0)

Files changed (1)

File ythub/uploader.py

             f.write(request.files['chunk_data'].read())
             return jsonify({'status' : "SENDMORE"})
         except StopIteration:
-            return jsonify({'status' : "COMPLETE"})
+            url = "https://data.yt-project.org/go/%s" % (
+                self.metadata['shorturl'])
+            return jsonify({'status' : "COMPLETE",
+                            'url' : url})