diff --git a/common/src/main/java/ctbrec/sites/manyvids/MVLive.java b/common/src/main/java/ctbrec/sites/manyvids/MVLive.java new file mode 100644 index 00000000..5e65234c --- /dev/null +++ b/common/src/main/java/ctbrec/sites/manyvids/MVLive.java @@ -0,0 +1,90 @@ +package ctbrec.sites.manyvids; + +import java.io.IOException; + +import ctbrec.Model; +import ctbrec.io.HttpClient; +import ctbrec.sites.AbstractSite; + +public class MVLive extends AbstractSite { + + public static final String BASE_URL = "https://www.manyvids.com"; + + private MVLiveHttpClient httpClient = new MVLiveHttpClient(); + + @Override + public String getName() { + return "MV Live"; + } + + @Override + public String getBaseUrl() { + return BASE_URL; + } + + @Override + public String getAffiliateLink() { + return getBaseUrl(); + } + + @Override + public Model createModel(String name) { + MVLiveModel model = new MVLiveModel(); + model.setName(name); + model.setDescription(""); + model.setSite(this); + return model; + } + + @Override + public Double getTokenBalance() throws IOException { + return 0d; + } + + @Override + public String getBuyTokensLink() { + return getBaseUrl(); + } + + @Override + public boolean login() throws IOException { + return false; + } + + @Override + public HttpClient getHttpClient() { + return httpClient; + } + + @Override + public void init() throws IOException { + } + + @Override + public void shutdown() { + if (httpClient != null) { + httpClient.shutdown(); + } + } + + @Override + public boolean supportsTips() { + return false; + } + + @Override + public boolean supportsFollow() { + return false; + } + + @Override + public boolean isSiteForModel(Model m) { + return m instanceof MVLiveModel; + } + + @Override + public boolean credentialsAvailable() { + return false; + } + +} diff --git a/common/src/main/java/ctbrec/sites/manyvids/MVLiveHttpClient.java b/common/src/main/java/ctbrec/sites/manyvids/MVLiveHttpClient.java new file mode 100644 index 00000000..63032193 --- /dev/null +++ b/common/src/main/java/ctbrec/sites/manyvids/MVLiveHttpClient.java @@ -0,0 +1,18 @@ +package ctbrec.sites.manyvids; + +import java.io.IOException; + +import ctbrec.io.HttpClient; + +public class MVLiveHttpClient extends HttpClient { + + public MVLiveHttpClient() { + super("mvlive"); + } + + @Override + public boolean login() throws IOException { + return false; + } + +} diff --git a/common/src/main/java/ctbrec/sites/manyvids/MVLiveModel.java b/common/src/main/java/ctbrec/sites/manyvids/MVLiveModel.java new file mode 100644 index 00000000..04bcfce9 --- /dev/null +++ b/common/src/main/java/ctbrec/sites/manyvids/MVLiveModel.java @@ -0,0 +1,57 @@ +package ctbrec.sites.manyvids; + +import java.io.IOException; +import java.util.List; +import java.util.concurrent.ExecutionException; + +import com.iheartradio.m3u8.ParseException; +import com.iheartradio.m3u8.PlaylistException; + +import ctbrec.AbstractModel; +import ctbrec.recorder.download.StreamSource; + +public class MVLiveModel extends AbstractModel { + + @Override + public boolean isOnline(boolean ignoreCache) throws IOException, ExecutionException, InterruptedException { + // TODO Auto-generated method stub + return false; + } + + @Override + public List getStreamSources() throws IOException, ExecutionException, ParseException, PlaylistException { + // TODO Auto-generated method stub + return null; + } + + @Override + public void invalidateCacheEntries() { + // TODO Auto-generated method stub + + } + + @Override + public void receiveTip(Double tokens) throws IOException { + // TODO Auto-generated method stub + + } + + @Override + public int[] getStreamResolution(boolean failFast) throws ExecutionException { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean follow() throws IOException { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean unfollow() throws IOException { + // TODO Auto-generated method stub + return false; + } + +}