Merge pull request #28 from blha303/patch-1

Plex needs the refresh to be a PUT request
This commit is contained in:
Michael Shepanski 2015-10-28 14:17:26 -04:00
commit c72058a668

View file

@ -2,6 +2,7 @@
PlexVideo
"""
import re
from requests import put
from plexapi.client import Client
from plexapi.media import Media, Country, Director, Genre, Producer, Actor, Writer
from plexapi.myplex import MyPlexUser
@ -111,7 +112,7 @@ class Video(PlexPartialObject):
client.playMedia(self)
def refresh(self):
self.server.query('/%s/refresh' % self.key)
self.server.query('/%s/refresh' % self.key, method=put)
class Movie(Video):