Skip to content

Commit 213c74f

Browse files
committed
Merge branch 'hotfix/1035' into hotfix/3.1.248
2 parents 90f2f8a + a3fcd7d commit 213c74f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/mServer/crawler/sender/base/M3U8Dto.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public Optional<Qualities> getResolution() {
6767
case "480x320":
6868
case "480x360":
6969
case "512x288":
70-
return Optional.of(Qualities.SMALL);
7170
case "636x360":
7271
case "640x360":
7372
case "640x480":
@@ -77,15 +76,16 @@ public Optional<Qualities> getResolution() {
7776
case "720x544":
7877
case "768x576":
7978
case "852x480":
79+
return Optional.of(Qualities.SMALL);
8080
case "960x540":
8181
case "960x544":
8282
case "1024x576":
8383
case "1064x576":
8484
case "1152x576":
85-
return Optional.of(Qualities.NORMAL);
8685
case "1280x720":
8786
case "1330x720":
8887
case "1440x720":
88+
return Optional.of(Qualities.NORMAL);
8989
case "1920x1080":
9090
case "2560x1440":
9191
case "3840x2160":

src/main/java/mServer/crawler/sender/srf/parser/SrfFilmJsonDeserializer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ private static Optional<Qualities> getResolution(M3U8Dto aDto) {
169169
if (widthMeta.isPresent()) {
170170
int width = Integer.parseInt(widthMeta.get());
171171

172-
if (width <= 700000) {
173-
return Optional.of(Qualities.SMALL);
174-
} else if (width > 3000000) {
172+
if (width > 6000000) {
175173
return Optional.of(Qualities.HD);
176-
} else {
174+
} else if (width > 2000000) {
177175
return Optional.of(Qualities.NORMAL);
176+
} else {
177+
return Optional.of(Qualities.SMALL);
178178
}
179179
}
180180
}

0 commit comments

Comments
 (0)