diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt index fd29d998..da0e43d3 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt @@ -209,7 +209,7 @@ class GeneratorPlayer : FullScreenPlayer() { closestQuality(linkData?.quality) ) val sourcePriority = - QualityDataHelper.getSourcePriority(qualityProfile, linkData?.name) + QualityDataHelper.getSourcePriority(qualityProfile, linkData?.source) // negative because we want to sort highest quality first return qualityPriority + sourcePriority @@ -1410,4 +1410,4 @@ class GeneratorPlayer : FullScreenPlayer() { } } } -} \ No newline at end of file +}