fixed bug with source priority

This commit is contained in:
Osten 2023-07-14 21:33:14 +02:00 committed by GitHub
parent 927453d9fe
commit c3296f3210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,7 +209,7 @@ class GeneratorPlayer : FullScreenPlayer() {
closestQuality(linkData?.quality) closestQuality(linkData?.quality)
) )
val sourcePriority = val sourcePriority =
QualityDataHelper.getSourcePriority(qualityProfile, linkData?.name) QualityDataHelper.getSourcePriority(qualityProfile, linkData?.source)
// negative because we want to sort highest quality first // negative because we want to sort highest quality first
return qualityPriority + sourcePriority return qualityPriority + sourcePriority