INTERACT FORUM

Windows => Plug-in Development => Topic started by: cncb on August 11, 2018, 12:10:07 pm

Title: MCWS: Delete File requests
Post by: cncb 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.
Title: Re: MCWS: Delete File requests
Post by: Matt 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.
Title: Re: MCWS: Delete File requests
Post by: cncb on January 02, 2019, 11:44:40 am
Thanks for adding this.
Title: Re: MCWS: Delete File requests
Post by: cncb 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?
Title: Re: MCWS: Delete File requests
Post by: bob 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.
Title: Re: MCWS: Delete File requests
Post by: Hendrik 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.
Title: Re: MCWS: Delete File requests
Post by: bob 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!
Title: Re: MCWS: Delete File requests
Post by: Hendrik 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?
Title: Re: MCWS: Delete File requests
Post by: bob 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
Title: Re: MCWS: Delete File requests
Post by: Hendrik on March 14, 2019, 07:07:57 pm
As far as we can tell, this should be resolved in 24.0.77 (https://yabb.jriver.com/interact/index.php/topic,119835.msg828463.html#msg828463).
Title: Re: MCWS: Delete File requests
Post by: cncb 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.
Title: Re: MCWS: Delete File requests
Post by: Hendrik 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.
Title: Re: MCWS: Delete File requests
Post by: AntaresFR 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