Added _ to youtube id parsing
This commit is contained in:
parent
4699017e68
commit
bb9e55e12d
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ import java.util.regex.Pattern;
|
||||||
*/
|
*/
|
||||||
public class UeBehaviourVideoStreaming extends UeBehaviour implements MediaPlayer.OnErrorListener{
|
public class UeBehaviourVideoStreaming extends UeBehaviour implements MediaPlayer.OnErrorListener{
|
||||||
private static final Logger log = Logger.getLogger(UeBehaviourVideoStreaming.class);
|
private static final Logger log = Logger.getLogger(UeBehaviourVideoStreaming.class);
|
||||||
private static final Pattern YOUTUBE_VIDEOURL_PATTERN = Pattern.compile(".*youtube.*[&\\?]v=([\\w-]*)[&#]?");
|
private static final Pattern YOUTUBE_VIDEOURL_PATTERN = Pattern.compile(".*youtube.*[&\\?]v=([\\w-_]*)[&#]?");
|
||||||
private static final Pattern YOUTUBE_VIDEOID_PATTERN = Pattern.compile("^[\\w-]*$");
|
private static final Pattern YOUTUBE_VIDEOID_PATTERN = Pattern.compile("^[\\w-_]*$");
|
||||||
protected static final String YOUTUBE_FEED_URL = "http://gdata.youtube.com/feeds/api/videos/";
|
protected static final String YOUTUBE_FEED_URL = "http://gdata.youtube.com/feeds/api/videos/";
|
||||||
|
|
||||||
@Configurable("Streaming URL")
|
@Configurable("Streaming URL")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue