mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-26 15:24:51 +02:00
Merge pull request #1375 from rephormat/pornhubUpsellFix
Pornhub upsell fix
This commit is contained in:
@@ -69,12 +69,14 @@ public class PornhubRipper extends VideoRipper {
|
||||
int bestQual = 0;
|
||||
for (int i = 0; i < mediaDef.length(); i++) {
|
||||
JSONObject e = (JSONObject) mediaDef.get(i);
|
||||
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) {
|
||||
throw new IOException("Unable to find encrypted video URL at " + this.url);
|
||||
}
|
||||
|
Reference in New Issue
Block a user