Jump to content


Photo
Fixed

Emby Kodi - removing files - very slow + 2 more questions



  • Please log in to reply
23 replies to this topic

#21 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 13649 posts
  • Local time: 08:17 PM

Posted 28 July 2019 - 11:02 PM

The delete API call will fail if the use does not have access to delete that item. You could just look at the return http code and if it is not 200 ok then don't do the local delete.

 

Thanks for the suggestion. However this is not what I see in my testing. It returns 204 regardless if the user has access to delete the file or not.



#22 TeamB OFFLINE  

TeamB

    Advanced Member

  • Developers
  • 5727 posts
  • Local time: 11:17 AM

Posted 29 July 2019 - 12:17 AM

Yeah you are correct, I thought I was sure this would fail before, I get the same as you

HTTP response: 204 No Content

@Luke was this changed recently? Or has it always just returned 204 regardless if the delete worked or not?

#23 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 134444 posts
  • Local time: 09:17 PM

Posted 29 July 2019 - 12:36 AM

No that's not intended. I'll take a look. Thanks.


  • Angelblue05 likes this

#24 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 13649 posts
  • Local time: 08:17 PM

Posted 29 July 2019 - 01:53 AM

@horstepipe

 

With the new addon version 4.1.10

 

I added a verification. If the item is deleted via Kodi, it will remove the item from Kodi (and from server if able), but it will validate a bit later if the item was indeed removed. If not, it will re-add the item automatically.


Edited by Angelblue05, 29 July 2019 - 01:54 AM.

  • horstepipe likes this





Also tagged with one or more of these keywords: Fixed

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users