mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-02 13:04:50 +00:00
10 lines
294 B
Python
10 lines
294 B
Python
from plex import Plex
|
|
from plex.objects.core.base import Property, DescriptorMixin
|
|
|
|
|
|
class RateMixin(DescriptorMixin):
|
|
rating = Property(type=float)
|
|
user_rating = Property('userRating', type=float)
|
|
|
|
def rate(self, value):
|
|
return Plex['library'].rate(self.rating_key, value)
|