Skip to content

Instantly share code, notes, and snippets.

@yono
Created August 9, 2011 12:41
Show Gist options
  • Save yono/1133937 to your computer and use it in GitHub Desktop.
Save yono/1133937 to your computer and use it in GitHub Desktop.
--- a/src/youtube_video_url.cc 2011-08-09 21:33:43.000000000 +0900
+++ b/src/youtube_video_url.cc 2011-08-09 21:32:44.000000000 +0900
@@ -47,7 +47,7 @@
#define YOUTUBE_URL_PARAMS_REGEXP "var swfHTML.*\\;"
#define YOUTUBE_URL_LOCATION_REGEXP "\nLocation: (http://[^\n]+)\n"
#define YOUTUBE_URL_WATCH "http://www.youtube.com/watch?v="
-#define YOUTUBE_URL_GET "http://www.youtube.com/get_video?"
+#define YOUTUBE_URL_GET "http://www.youtube.com/get_video?asv=3&"
#define YOUTUBE_URL_PARAM_VIDEO_ID "video_id"
#define YOUTUBE_URL_PARAM_T_REGEXP ".*&t=([^&]+)&"
#define YOUTUBE_URL_PARAM_T "t"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment