Permalink
Browse files

Fixed querystring parameter.

  • Loading branch information...
1 parent dd367d9 commit 441504e5e108ab5163dcc4cc4fa02a6ed0a8a900 @guilhermechapiewski committed Apr 20, 2010
Showing with 6 additions and 5 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 README.textile
  3. +1 −1 app.yaml
  4. +3 −3 index.py
View
@@ -0,0 +1 @@
+*.pyc
View
@@ -1,6 +1,6 @@
h1. youtube-api
-Google App Engine service to be used as the backend for some YQL tables.
+Google App Engine service to be used as the backend for some YQL tables, available at *http://youtube-api.appspot.com*.
h2. http://youtube-api.appspot.com/video/[video_id]
View
@@ -1,5 +1,5 @@
application: youtube-api
-version: 3
+version: 4
runtime: python
api_version: 1
View
@@ -8,7 +8,7 @@ def get(self):
self.response.headers['Content-Type'] = 'text/xml'
self.response.out.write('<?xml version="1.0" encoding="UTF-8"?>')
- video_id = self.request.get('video_id', default_value='')
+ video_id = self.request.get('id', default_value='')
video = None
try:
yt = YouTubeService()
@@ -51,10 +51,10 @@ def get(self):
self.response.out.write(' </video>')
self.response.out.write('</result>')
else:
- self.response.out.write('<result />')
+ self.response.out.write('<result %s />' % video_id)
application = webapp.WSGIApplication(
- [('/video/.*', VideoResource)],
+ [('/video.*', VideoResource)],
debug=True)
def main():

0 comments on commit 441504e

Please sign in to comment.