<uses-permission android:name="android.permission.INTERNET"/>
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.uguraltinsoy:YouTubeInfo:0.1.0'
}
or Maven:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.uguraltinsoy</groupId>
<artifactId>YouTubeInfo</artifactId>
<version>0.1.0</version>
</dependency>
String[] all = YTInfo.get("https://www.youtube.com/watch?v=oLY1rss9Jx8").getAll();
String title = all[0];
String authorName = all[1];
String authorUrl = all[2];
String type = all[3];
String thumbnail = all[4];
String title = YTInfo.get("https://www.youtube.com/watch?v=oLY1rss9Jx8").getTitle();
String authorName = YTInfo.get("https://www.youtube.com/watch?v=oLY1rss9Jx8").getAuthorName();
String authorUrl = YTInfo.get("https://www.youtube.com/watch?v=oLY1rss9Jx8").getAuthorUrl();
String type = YTInfo.get("https://www.youtube.com/watch?v=oLY1rss9Jx8").getType();
String thumbnail = YTInfo.get("https://www.youtube.com/watch?v=oLY1rss9Jx8").getThumbnail();
Uğur Altınsoy
BTC : 1N7V3wX4xvGfwgBP1zQrcMSxohKKfiDxyH
ETH : 0x0df6da87e219fb4854e933f1071ad91d17afa517
XRP : rEb8TK3gBgk5auZkwc6sHnwrGVJH8DuaLh
DOGE : DKKmSHAa8GhAE5HNjmCXzkXPKTjpybY3mq
DENT : 0x0df6da87e219fb4854e933f1071ad91d17afa517