r7321 - dumbhippo/trunk/server/src/com/dumbhippo/server/dm



Author: otaylor
Date: 2008-02-19 15:47:09 -0600 (Tue, 19 Feb 2008)
New Revision: 7321

Modified:
   dumbhippo/trunk/server/src/com/dumbhippo/server/dm/NetflixMovieDMO.java
Log:
Be generally more permissive about netflix URL's

Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/dm/NetflixMovieDMO.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/dm/NetflixMovieDMO.java	2008-02-19 21:27:05 UTC (rev 7320)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/dm/NetflixMovieDMO.java	2008-02-19 21:47:09 UTC (rev 7321)
@@ -38,7 +38,7 @@
 		super(key);
 	}
 
-	private static Pattern NETFLIX_URL_PATTERN = Pattern.compile("http://www.netflix.com/Movie/(?:[A-Za-z0-9_-]+)/([0-9]+)(?:\\?.*)?");
+	private static Pattern NETFLIX_URL_PATTERN = Pattern.compile("http://www.netflix.com/Movie/(?:[^/]+)/([0-9]+)(?:\\?.*)?");
 	
 	private static String extractExtra(String url) {
 		Matcher m = NETFLIX_URL_PATTERN.matcher(url);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]