mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-29 23:20:23 +00:00
Merge pull request #28 from blha303/patch-1
Plex needs the refresh to be a PUT request
This commit is contained in:
commit
c72058a668
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue