From a4916103efb2d97896c456ff0e83064b21e85d25 Mon Sep 17 00:00:00 2001 From: Pepper Date: Wed, 20 May 2015 11:16:13 -0400 Subject: first commit in a while --- backend/views.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) mode change 100644 => 100755 backend/views.py (limited to 'backend/views.py') diff --git a/backend/views.py b/backend/views.py old mode 100644 new mode 100755 index 7003f09..acb0369 --- a/backend/views.py +++ b/backend/views.py @@ -43,8 +43,10 @@ LASTSEEN_TIMEOUT= 7 MAX_BG_SIZE = 400 * 1024 HTML_TITLE_RE = re.compile('([^<]+)') -YT_INFO = "http://gdata.youtube.com/feeds/api/videos/" -YT_INFO_SUFFIX = "?v=2" +YT_INFO = "https://www.youtube.com/watch?v=" +YT_INFO_SUFFIX = "" +#YT_INFO = "http://gdata.youtube.com/feeds/api/videos/" +#YT_INFO_SUFFIX = "?v=2" YT_PREFIX = "http://www.youtube.com/watch?v=" YT_ID_RE = re.compile('http.*v=([^&]+)&?#?') VIMEO_PREFIX = "http://vimeo.com/" @@ -141,7 +143,7 @@ def videos_response_str(videos): s = v.settings if s.get('removed', 0): continue - out = u"VIDEO\t%s\t%s\t%s\t%s\t%s\t%s\t%d\n" % ( + out = u"VIDEO\t%s\t%s\t%s\t%s\t%s\t%s\t%d\n" % ( str(v.id), str(datetime_to_timestamp(v.datetime)), str(v.user.id), -- cgit v1.2.3-70-g09d2