File tree Expand file tree Collapse file tree
src/main/java/mServer/crawler/sender Expand file tree Collapse file tree Original file line number Diff line number Diff 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" :
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments