diff options
| author | Pepper <pepper@scannerjammer.com> | 2015-05-20 11:16:13 -0400 |
|---|---|---|
| committer | Pepper <pepper@scannerjammer.com> | 2015-05-20 11:16:13 -0400 |
| commit | a4916103efb2d97896c456ff0e83064b21e85d25 (patch) | |
| tree | b3eb529e4b96375109626bbeada35d4f8a2667ee /backend/views.py | |
| parent | 3790eedc2f48c725c586b8c7b924875fedbeb7b4 (diff) | |
first commit in a while
Diffstat (limited to 'backend/views.py')
| -rwxr-xr-x[-rw-r--r--] | backend/views.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/backend/views.py b/backend/views.py index 7003f09..acb0369 100644..100755 --- 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('<title>([^<]+)</title>') -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), |
