Skip to content

Commit

Permalink
3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KhunHtetzNaing committed Jun 1, 2020
1 parent 22a87b1 commit fdd2109
Show file tree
Hide file tree
Showing 67 changed files with 1,912 additions and 1,623 deletions.
40 changes: 23 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
# Beware
If you publish your app use this library, google will be suspended your app!
# xGetter => LowCostVideo [3.0]
I change something to comply with Google play policy.
- Remove external javascript file
- Change the class name to LowCostVideo
- Rewrite codes

# xGetter Library for Android!
[![](https://jitpack.io/v/KhunHtetzNaing/XGetter.svg)](https://jitpack.io/#KhunHtetzNaing/XGetter)

**#NOTE**
***I don't know why google photos can't stream in Video Player (eg. ExoPlayer)
But, you can download and play in JWPlayer -_-***

ရုပ်ရှင်နဲ့ Video App ဖန်တီးချင်သူတွေအနေနဲ့
အသုံးဝင်မယ့် Lib လေးတစ်ခုဖန်တီးပေးထားပါတယ်။
Video တွေကို အကန့်အသတ်မရှိ Free တင်လို့ရပြီ
ကြည့်တဲ့အချိန်မှာကြော်ငြာအရမ်းတက်တဲ့
Openload, Streamango တို့လိုလင့်တွေကနေ
အသုံးဝင်မယ့် Library လေးပါ။
ကြော်ငြာကြည့်စရာမလိုပဲ
တိုက်ရိုက်ဒေါင်းဖို့လင့်ဆွဲထုတ်ပေးနိုင်တဲ့ကောင်လေးပါ။
တိုက်ရိုက်ဒေါင်းဖို့လင့်ဆွဲထုတ်ပေးနိုင်ပြီး
ရလာတဲ့လင့်ကို တိုက်ရိုက်ဒေါင်းမလား
ကိုယ်ပိုင် Player နဲ့တိုက်ရိုက်ပြမလား
အဆင်ပြေသလိုအသုံးချနိုင်ပါတယ်။
Expand All @@ -38,12 +34,22 @@ Openload, Streamango တို့လိုလင့်တွေကနေ
- **16. Uptobox**
- **17. FEmbed**
- **18. FileRio**

## New supported sites [v2.0.1]
- **19. MegaUp**
- **20. GoUnlimited**
- **21. CocoScope**
- **22. VidBM**
- **22. VidBM**

## New supported sites [3.0]

- **23. Vlare**
- **24. pStream**
- **25. Vivo.sx**
- **26. VideoBin**
- **27. BitTube**
- **28. 4Shared**
- **29. StreamTape**
- **30. Vudeo**


တို့ပဲဖြစ်ပါတယ်။
ဒီဆိုဒ်တွေအားလုံးကနေ ကြော်ငြာကြည့်စရာမလိုပဲတိုက်ရိုက်လင့်ထုတ်ပေးမှာပါ။
Expand All @@ -67,7 +73,7 @@ Openload, Streamango တို့လိုလင့်တွေကနေ


dependencies {
implementation 'com.github.KhunHtetzNaing:xGetter:2.0.1'
implementation 'com.github.KhunHtetzNaing:xGetter:3.0'
}

**Android Studio** သမားတွေဆိုရင်တော့ **Sync Now** လုပ်ပေးပါ။
Expand All @@ -88,8 +94,8 @@ Openload, Streamango တို့လိုလင့်တွေကနေ

ပြီးရင်တော့ကိုယ်ခေါ်ချင်တဲ့ Activity ကနေ

XGetter xGetter = new XGetter(this);
xGetter.onFinish(new XGetter.OnTaskCompleted() {
LowCostVideo xGetter = new LowCostVideo(this);
xGetter.onFinish(new LowCostVideo.OnTaskCompleted() {
@Override
public void onTaskCompleted(ArrayList<XModel> vidURL, boolean multiple_quality) {
if (multiple_quality){ //This video you can choose qualities
Expand Down
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.htetznaing.xgetterexample"
minSdkVersion 19
targetSdkVersion 28
versionCode 23
versionName "2.0.1"
versionCode 24
versionName "3.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand All @@ -24,11 +24,11 @@ android {
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.2.0-beta01'
implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test:runner:1.3.0-beta01'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-beta01'
androidTestImplementation 'androidx.test:runner:1.3.0-rc01'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-rc01'
implementation project(':xgetter')
implementation 'com.google.android.exoplayer:exoplayer:2.8.4'
implementation 'com.google.android.material:material:1.1.0'
Expand Down
Binary file not shown.
1 change: 0 additions & 1 deletion app/release/output.json

This file was deleted.

Binary file modified app/release/xgetter.jar
Binary file not shown.
46 changes: 31 additions & 15 deletions app/src/main/java/com/htetznaing/xgetterexample/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
import com.androidnetworking.interfaces.StringRequestListener;
import com.github.javiersantos.materialstyleddialogs.MaterialStyledDialog;
import com.github.javiersantos.materialstyleddialogs.enums.Style;
import com.htetznaing.xgetter.Model.XModel;
import com.htetznaing.xgetter.XGetter;
import com.htetznaing.xgetterexample.Player.SimpleVideoPlayer;
import com.htetznaing.lowcostvideo.LowCostVideo;
import com.htetznaing.lowcostvideo.Model.XModel;
import com.htetznaing.xgetterexample.Utils.XDownloader;
import com.htetznaing.xplayer.XPlayer;

Expand All @@ -48,7 +47,7 @@
import java.util.List;

public class MainActivity extends AppCompatActivity {
XGetter xGetter;
LowCostVideo xGetter;
ProgressDialog progressDialog;
String org;
EditText edit_query;
Expand All @@ -60,9 +59,9 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);
progressDialog = new ProgressDialog(this);
progressDialog.setCancelable(false);
xGetter = new XGetter(this);
xGetter = new LowCostVideo(this);

xGetter.onFinish(new XGetter.OnTaskCompleted() {
xGetter.onFinish(new LowCostVideo.OnTaskCompleted() {

@Override
public void onTaskCompleted(ArrayList<XModel> vidURL, boolean multiple_quality) {
Expand All @@ -76,7 +75,6 @@ public void onTaskCompleted(ArrayList<XModel> vidURL, boolean multiple_quality)
multipleQualityDialog(vidURL);
}else done(null);
}else {
System.out.println(vidURL.get(0).getUrl());
done(vidURL.get(0));
}
}
Expand Down Expand Up @@ -140,7 +138,7 @@ public void gphotos(View view) {
}

public void fb(View view) {
letGo("925916414463007");
letGo("317455892574677");
}

public void mediafire(View view) {
Expand Down Expand Up @@ -168,7 +166,7 @@ public void solidfiles(View view) {
}

public void vidozafiles(View view) {
letGo("https://vidoza.net/8tpr1zvluray.html");
letGo("https://vidoza.net/vjo82qvj91d0.html");
}

public void uptostreamfiles(View view) {
Expand Down Expand Up @@ -392,7 +390,11 @@ public void fetch(View view) {
}

public void showAbout() {
String message = "Extract stream/download url!\n" +
String message = "Need to fix\n" +
"4Shared\n" +
"StreamWIKI\n" +
"\n" +
"Extract stream/download url!\n" +
"\n" +
"#Supported Sites\n" +
"\n" +
Expand All @@ -405,7 +407,7 @@ public void showAbout() {
"7. Ok.Ru\n" +
"8. VK\n" +
"9. Twitter\n" +
"10. Youtube\n" +
"10. Youtube [Removed]\n" +
"11. SolidFiles\n" +
"12. Vidoza\n" +
"13. UptoStream\n" +
Expand All @@ -419,9 +421,16 @@ public void showAbout() {
"21. GoUnlimited\n" +
"22. CocoScope\n" +
"23. VidBM\n" +
"23. Vlare\n" +
"24. pStream\n" +
"25. Vivo.sx\n" +
"26. VideoBin\n" +
"27. BitTube\n" +
"28. 4Shared\n" +
"29. StreamTape\n" +
"30. Vudeo\n" +
"\n" +
"Github Repo => https://github.com/KhunHtetzNaing/xGetter" +
"\n" +
"Github Repo => https://github.com/KhunHtetzNaing/xGetter\n" +
"Developer => https://facebook.com/KhunHtetzNaing0";
View view = getLayoutInflater().inflate(R.layout.done, null);
TextView textView = view.findViewById(R.id.message);
Expand Down Expand Up @@ -597,7 +606,7 @@ public void vivosx(View view) {
}

public void bittube(View view) {
letGo("https://bittube.video/videos/watch/36231473-613d-47c6-89a3-4bff2502dc92");
letGo("https://bittube.video/videos/watch/8e02be96-fa09-4309-a469-3c74c945182b");
}

public void videobin(View view) {
Expand Down Expand Up @@ -627,7 +636,7 @@ protected String doInBackground(Void... voids) {
@Override
protected void onPostExecute(String s) {
super.onPostExecute(s);
System.out.println("File Size: "+s);
System.out.println(xModel.getUrl()+" => File Size: "+s+"\nCookie => "+xModel.getCookie());
Toast.makeText(MainActivity.this, "File Size: "+s, Toast.LENGTH_SHORT).show();
}
}.execute();
Expand All @@ -643,4 +652,11 @@ private String calculateFileSize(long size) {
public void fourshared(View view) {
letGo("https://www.4shared.com/video/bLza9r9mea/45016068_2204489923208618_5254.html");
}
public void streamtape(View view) {
letGo("https://streamtape.com/v/GbmzAG9ZaVHlzK/%5BAsahi%5D_Fugou_Keiji_-_Balance_-_UNLIMITED_-_01_%5B1080p%5D.mp4");
}

public void vudeo(View view) {
letGo("https://vudeo.net/azhfxfpzq6yq.html");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import com.google.android.exoplayer2.upstream.DefaultDataSourceFactory;
import com.google.android.exoplayer2.upstream.DefaultHttpDataSourceFactory;
import com.google.android.exoplayer2.util.Util;
import com.htetznaing.xgetter.Model.XModel;
import com.htetznaing.lowcostvideo.Model.XModel;
import com.htetznaing.xgetterexample.R;
import com.htetznaing.xgetterexample.Utils.XDownloader;

Expand Down
7 changes: 0 additions & 7 deletions app/src/main/java/com/htetznaing/xgetterexample/Test.java
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
package com.htetznaing.xgetterexample;

import com.htetznaing.xgetter.Model.XModel;
import com.htetznaing.xgetter.Utils.GPhotosUtils;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import static com.htetznaing.xgetter.Utils.GPhotosUtils.getGPhotoLink;

public class Test {
public static void main(String zz[]){
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import android.provider.MediaStore;
import android.widget.Toast;

import com.htetznaing.xgetter.Model.XModel;
import com.htetznaing.lowcostvideo.Model.XModel;

import java.io.File;
import java.io.UnsupportedEncodingException;
Expand Down
14 changes: 14 additions & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@
android:layout_height="wrap_content" />

<Button
android:visibility="gone"
android:onClick="streamWiki"
android:text="StreamWIKI"
android:layout_width="match_parent"
Expand All @@ -233,6 +234,19 @@
android:text="BitTube"
android:layout_width="match_parent"
android:layout_height="wrap_content" />


<Button
android:onClick="streamtape"
android:text="StreamTape"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

<Button
android:onClick="vudeo"
android:text="Vudeo"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>

</LinearLayout>
Expand Down
10 changes: 5 additions & 5 deletions xgetter/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
group='com.htetznaing'
version='2.0.1'
version='3.0'

android {
compileSdkVersion 26
defaultConfig {
minSdkVersion 17
targetSdkVersion 26
versionCode 23
versionName "2.0.1"
versionCode 24
versionName "3.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand All @@ -27,8 +27,8 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test:runner:1.3.0-beta01'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-beta01'
androidTestImplementation 'androidx.test:runner:1.3.0-rc01'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-rc01'
implementation 'org.apache.commons:commons-lang3:3.8.1'
implementation 'org.jsoup:jsoup:1.13.1'
implementation 'com.amitshekhar.android:android-networking:1.0.2'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.htetznaing.xgetter;
package com.htetznaing.lowcostvideo;

import android.content.Context;
import androidx.test.InstrumentationRegistry;
Expand Down
2 changes: 1 addition & 1 deletion xgetter/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.htetznaing.xgetter" />
package="com.htetznaing.lowcostvideo" />
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
package com.htetznaing.xgetter.Core;
import com.htetznaing.xgetter.Model.XModel;
package com.htetznaing.lowcostvideo.Core;
import com.htetznaing.lowcostvideo.Model.XModel;

import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLDecoder;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import static com.htetznaing.xgetter.Utils.GDriveUtils.getCookie;
import static com.htetznaing.xgetter.Utils.GDriveUtils.getDRIVE_STREAM;
import static com.htetznaing.xgetter.Utils.GDriveUtils.getTitle;
import static com.htetznaing.lowcostvideo.Utils.GDriveUtils.getTitle;

public class GDrive {
public static ArrayList<XModel> fetch(String cookie,final String response){
Expand Down
Loading

0 comments on commit fdd2109

Please sign in to comment.