Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String getThumbUrl(String videoUrl) {
        videoUrl = videoUrl.replace("swf/", "");

        int index = videoUrl.indexOf("video/");

        if (index != -1) {
            return "http://www.abewy.com/apps/klyph/services/content_from_url.php?url="
                    + videoUrl.substring(0, index) + "thumbnail/" + videoUrl.substring(index);
        }

        return "";
    }
}