mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-02-23 15:44:37 +01:00
Merge pull request #1375 from rephormat/pornhubUpsellFix
Pornhub upsell fix
This commit is contained in:
commit
bd58568821
@ -69,10 +69,12 @@ public class PornhubRipper extends VideoRipper {
|
||||
int bestQual = 0;
|
||||
for (int i = 0; i < mediaDef.length(); i++) {
|
||||
JSONObject e = (JSONObject) mediaDef.get(i);
|
||||
int quality = Integer.parseInt((String)e.get("quality"));
|
||||
if (quality > bestQual) {
|
||||
bestQual = quality;
|
||||
vidUrl = (String)e.get("videoUrl");
|
||||
if (!"upsell".equals(e.getString("format"))) {
|
||||
int quality = Integer.parseInt((String)e.get("quality"));
|
||||
if (quality > bestQual) {
|
||||
bestQual = quality;
|
||||
vidUrl = (String)e.get("videoUrl");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (vidUrl == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user