Skip to content

media item delete can fail. #201

Description

@Hellowlol
  File "c:\users\x\onedrive\dokumenter\github\plexcli\plexcli\cli.py", line 221, in remove_dupes
    media.delete()
  File "c:\users\x\onedrive\dokumenter\github\python-plexapi\plexapi\media.py", line 58, in delete
    return self._server.query(part, method=self._server._session.delete)
  File "c:\users\x\onedrive\dokumenter\github\python-plexapi\plexapi\server.py", line 345, in query
    raise BadRequest('(%s) %s; %s %s' % (response.status_code, codename, response.url, errtext))
plexapi.exceptions.BadRequest: (404) not_found; https:.....plex.direct:16667/library/sections/1/all?duplicate=1&X-Plex-Container-Size=50&X-Plex-Container-Start=0/media/243629&X-Plex-Token=<removed>

This fails since https://github.com/pkkid/python-plexapi/blob/484461b0ddc86766d8ae036ba45bf8fcd3c97318/plexapi/media.py#L56 uses the _initpart, that worked since if i used the key when i added this feature

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions