Skip to content

Commit

Permalink
#938 optimize wdr urls
Browse files Browse the repository at this point in the history
  • Loading branch information
pidoubleyou committed Nov 21, 2023
1 parent a4dd4d8 commit 9e44db2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ public String optimizeHdUrl(final String url) {
/**
* wdr urls uses the following pattern: the last part of the filename determines the quality this
* is the actual order: 1920, 480, 640, 960, 1280 to determine the 1920-url by the 1280-url
* substract 4 example: 1280: https://wdrmedien-a.akamaihd.net/.../2625725_54085881.mp4 1920:
* https://wdrmedien-a.akamaihd.net/.../2625725_54085877.mp4
* substract 4
* example:
* 1280: https://wdrmedien-a.akamaihd.net/.../2625725_54085881.mp4
* 1920: https://wdrmedien-a.akamaihd.net/.../2625725_54085877.mp4
*/
private String determineWdrFullHdUrl(String url) {
final Optional<String> fileName = UrlUtils.getFileName(url);
Expand Down

0 comments on commit 9e44db2

Please sign in to comment.