mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
Some lint and silence the error
This commit is contained in:
parent
47950201b0
commit
06ca74dbce
1 changed files with 41 additions and 35 deletions
|
@ -1,5 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from plexapi import log, utils, compat
|
||||
|
||||
import xml
|
||||
|
||||
from plexapi import compat, log, utils
|
||||
from plexapi.base import PlexObject
|
||||
from plexapi.exceptions import BadRequest
|
||||
from plexapi.utils import cast
|
||||
|
@ -560,7 +563,10 @@ class Poster(PlexObject):
|
|||
def select(self):
|
||||
key = self._initpath[:-1]
|
||||
data = '%s?url=%s' % (key, compat.quote_plus(self.ratingKey))
|
||||
try:
|
||||
self._server.query(data, method=self._server._session.put)
|
||||
except xml.etree.ElementTree.ParseError:
|
||||
pass
|
||||
|
||||
|
||||
@utils.registerPlexObject
|
||||
|
|
Loading…
Reference in a new issue