Examples of YouTubeGrabber


Examples of me.aurous.grabbers.YouTubeGrabber

   *
   *         handles a given site and returns the stream url
   */
  public static String getMediaURL(final String sourceURL) {
    if (sourceURL == null) {
      final YouTubeGrabber youTube = new YouTubeGrabber();
      return youTube.getYouTubeStream(Internet
          .text("https://www.youtube.com/watch?v=kGubD7KG9FQ"));
    }
    if (sourceURL.isEmpty()) {
      return "";
    }
    if (sourceURL.contains("youtube")) {
      final YouTubeGrabber youTube = new YouTubeGrabber();
      return youTube.getYouTubeStream(Internet.text(sourceURL));
    } else if (sourceURL.contains("soundcloud")) {
      return SoundCloudGrabber.getCachedURL(sourceURL);
    } else if (sourceURL.contains("vk.me")) {
      if (sourceURL.contains(".mp3")) {
        return sourceURL;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.