INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MCWS: Delete File requests  (Read 4474 times)

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3106
MCWS: Delete File requests
« on: August 11, 2018, 12:10:07 pm »

Would it be possible to add a parameter to the MCWS Delete File function to allow to delete from disk or send to recycle bin?  It seems to only remove from the library by default.

Also, there is a delay from the function call until browsing the library reflects the file is gone.  I did a test in my browser where I successfully delete a file (only file in parent library item) and then refresh the browse URL  of the parent's parent library item.  It seems to take almost two minutes until the parent library item is gone.  I don't think it is a cache issue because I append a "&Rnd=N" to the URL and change N every time I refresh.
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42376
  • Shoes gone again!
Re: MCWS: Delete File requests
« Reply #1 on: December 13, 2018, 08:30:15 am »

This took a while, but I'm adding this to the next build.

Changed: The MCWS function File/Delete takes an optional 'Mode' parameter to delete the file from disk or recycle the file.
Logged
Matt Ashland, JRiver Media Center

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3106
Re: MCWS: Delete File requests
« Reply #2 on: January 02, 2019, 11:44:40 am »

Thanks for adding this.
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3106
Re: MCWS: Delete File requests
« Reply #3 on: February 28, 2019, 03:42:39 pm »

There is still a long delay when updating the library items after a delete.  Also, the file list in MCWS for a library item does not seem to be updated after a delete until MC is restarted.  Does MCWS do some kind of internal caching of this?
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: MCWS: Delete File requests
« Reply #4 on: March 07, 2019, 09:17:30 am »

There is still a long delay when updating the library items after a delete.  Also, the file list in MCWS for a library item does not seem to be updated after a delete until MC is restarted.  Does MCWS do some kind of internal caching of this?
I've noticed this too, when I change a bunch of files on my Id server not all of the changes get picked up in JRemote until I restart MC.
I'm not sure what exactly is going on. In DLNA at any rate almost all of the view tree is dynamic but I'm not sure that's also the case for MCWS (Matt??).
Even if I hit the refresh button in JRemote it doesn't fix the issue which to me implies it's on the MC side, not caching in JRemote.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10938
Re: MCWS: Delete File requests
« Reply #5 on: March 07, 2019, 09:47:13 am »

A bunch of structures in MCWS are definitely cached. I have a task on my list to investigate the impact of that sometime soon.
Logged
~ nevcairiel
~ Author of LAV Filters

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: MCWS: Delete File requests
« Reply #6 on: March 07, 2019, 10:03:34 am »

A bunch of structures in MCWS are definitely cached. I have a task on my list to investigate the impact of that sometime soon.
Great, thanks!
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10938
Re: MCWS: Delete File requests
« Reply #7 on: March 12, 2019, 09:14:51 am »

I'm checking out some things, but on top of that, do you have an example MCWS call that you see showing old information? Is it Browse/Files?
Logged
~ nevcairiel
~ Author of LAV Filters

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13874
Re: MCWS: Delete File requests
« Reply #8 on: March 12, 2019, 09:43:33 am »

I'm checking out some things, but on top of that, do you have an example MCWS call that you see showing old information? Is it Browse/Files?
It looks like JRemote uses
Browse/Files
Browse/Children and
Browse/Image
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10938
Re: MCWS: Delete File requests
« Reply #9 on: March 14, 2019, 07:07:57 pm »

As far as we can tell, this should be resolved in 24.0.77.
Logged
~ nevcairiel
~ Author of LAV Filters

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3106
Re: MCWS: Delete File requests
« Reply #10 on: March 18, 2019, 01:32:13 pm »

Seems to be mostly resolved for me.  Browse/Children seems to still have a small update delay (maybe 10-15 seconds) but maybe that can't be avoided.  Thanks.
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10938
Re: MCWS: Delete File requests
« Reply #11 on: March 18, 2019, 01:40:33 pm »

Seems to be mostly resolved for me.  Browse/Children seems to still have a small update delay (maybe 10-15 seconds) but maybe that can't be avoided.  Thanks.

Its at most 1 minute I believe due to structure caching.
Logged
~ nevcairiel
~ Author of LAV Filters

AntaresFR

  • Recent member
  • *
  • Posts: 36
Re: MCWS: Delete File requests
« Reply #12 on: June 10, 2019, 05:46:53 am »

I meet the same "problem".
I need to rename a playlist through MCWS.
So i save the playlist with a new name and delete the first one. But I have a cache problem, MCWS shows incorrect information with Browse/Children?ID=4 (playlist) during a time which vary between 10 sec and 1 minute.
Is there a way to avoid that ? IDK how to mange with that through my app to show correct things.

Regards
Logged
Pages: [1]   Go Up