mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-25 14:51:11 +02:00
Fixed indentation.
This commit is contained in:
@@ -114,15 +114,10 @@ public class HentaidudeRipper extends AbstractSingleFileRipper {
|
|||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TO find data object:
|
/*
|
||||||
$.ajax({
|
* TO find data object: $.ajax({ url:
|
||||||
url: 'https://hentaidude.com/wp-admin/admin-ajax.php',
|
* 'https://hentaidude.com/wp-admin/admin-ajax.php', type: 'post', data: {
|
||||||
type: 'post',
|
* action: 'msv-get-sources', id: '48227', nonce: '907f1bd45c' }
|
||||||
data: {
|
|
||||||
action: 'msv-get-sources',
|
|
||||||
id: '48227',
|
|
||||||
nonce: '907f1bd45c'
|
|
||||||
}
|
|
||||||
*/
|
*/
|
||||||
public String getVideoUrl(Document doc) throws IOException {
|
public String getVideoUrl(Document doc) throws IOException {
|
||||||
String jsonString = null;
|
String jsonString = null;
|
||||||
@@ -135,7 +130,8 @@ public class HentaidudeRipper extends AbstractSingleFileRipper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (jsonString != null) {
|
if (jsonString != null) {
|
||||||
// send POST request to https://hentaidude.com/wp-admin/admin-ajax.php with the data object parameters.
|
// send POST request to https://hentaidude.com/wp-admin/admin-ajax.php with the
|
||||||
|
// data object parameters.
|
||||||
JSONObject dataObject = new JSONObject(jsonString);
|
JSONObject dataObject = new JSONObject(jsonString);
|
||||||
Map<String, String> dataMap = new HashMap<>();
|
Map<String, String> dataMap = new HashMap<>();
|
||||||
for (String key : JSONObject.getNames(dataObject)) {
|
for (String key : JSONObject.getNames(dataObject)) {
|
||||||
@@ -145,11 +141,13 @@ public class HentaidudeRipper extends AbstractSingleFileRipper {
|
|||||||
.method(Method.POST).getJSON();
|
.method(Method.POST).getJSON();
|
||||||
// return source url from below JSON.
|
// return source url from below JSON.
|
||||||
/*
|
/*
|
||||||
success true
|
* success true sources { video-source-0
|
||||||
sources {
|
* https://cdn1.hentaidude.com/index.php?data=
|
||||||
video-source-0 https://cdn1.hentaidude.com/index.php?data=2f4a576957694872754d6736466f6c585579704b4d584e4a434372546c51346d4f4c697a6c734f6678307a59324c5458624f4675664863323768397a3371452f41384b62375246643243466f744447536b2b6250565a3859306a41506d366942713066336c6659386d78513d
|
* 2f4a576957694872754d6736466f6c585579704b4d584e4a434372546c51346d4f4c697a6c734f6678307a59324c5458624f4675664863323768397a3371452f41384b62375246643243466f744447536b2b6250565a3859306a41506d366942713066336c6659386d78513d
|
||||||
video-source-1 <iframe src="https://openload.co/embed/iaJ_zDCTW0M/" scrolling="no" frameborder="0" width="100%" height="430" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>
|
* video-source-1 <iframe src="https://openload.co/embed/iaJ_zDCTW0M/"
|
||||||
}
|
* scrolling="no" frameborder="0" width="100%" height="430"
|
||||||
|
* allowfullscreen="true" webkitallowfullscreen="true"
|
||||||
|
* mozallowfullscreen="true"></iframe> }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (jsonResopnse.getBoolean("success")) {
|
if (jsonResopnse.getBoolean("success")) {
|
||||||
|
Reference in New Issue
Block a user