Deleting media doesn't remove from the current view #10700
Replies: 16 comments 5 replies
-
Issues go stale after 60d of inactivity. Mark the issue as fresh by adding a comment or commit. Stale issues close after an additional 7d of inactivity. If this issue is safe to close now please do so. If you have any questions you can reach us on Matrix or Social Media. |
Beta Was this translation helpful? Give feedback.
-
This is still an issue. |
Beta Was this translation helpful? Give feedback.
-
Issues go stale after 90d of inactivity. Mark the issue as fresh by adding a comment or commit. Stale issues close after an additional 14d of inactivity. If this issue is safe to close now please do so. If you have any questions you can reach us on Matrix or Social Media. |
Beta Was this translation helpful? Give feedback.
-
Go away @stalebot. Can we disable stalebot for real known bugs please? Like exclude issues that have the label bug. |
Beta Was this translation helpful? Give feedback.
-
I'm inclined to agree. |
Beta Was this translation helpful? Give feedback.
-
I believe the reason for this is two different issues: 1.) the web page may not implement auto refresh after deleting a video 2.) "delete media" deletes the *.ts, *.jpg and *.nfo corresponding to episodes but leaves the folder structure and tvshow.nfo intact. If there are no more videos remaining for a show, the folder structure and tvshow.nfo should be deleted too. Then, the TV show will no longer appear on the Shows page. To validate this, you can compare the difference between using the "delete media" menu item versus manually deleting a TV show folder at the file system level. A file system delete (e.g. using Synology DSM) results in the TV show being removed from the JellyFin UI. |
Beta Was this translation helpful? Give feedback.
-
@classicjazz I don't think either of your explanations are valid.
Without confirming this behaviour[1], if it is true, then it makes the lack of updating of the page with the show listed that you just deleted (by the menu) even worse. If the page can dynamically update when the filesystem is modified underneath it, it surely must be able to be updated when it knows exactly what the update (a delete) was. [1] I tried this process out but the web UI did not update even though Jellyfin did update (per the log). I suspect because as you suggest, there is no auto-update or AJAX or any such thing to cause the page to be refreshed. Manually refreshing did update the page with the episode deleted from the filesystem though. |
Beta Was this translation helpful? Give feedback.
-
I took a look at this to see if it's still around and it is. I did see, however, that if you were to delete a movie or photo the page refreshes as expected. |
Beta Was this translation helpful? Give feedback.
-
if so, please change the title to reflect this. |
Beta Was this translation helpful? Give feedback.
-
I think it's orthogonal. Ultimately whatever you delete whether it's a single episode, a season or a whole show, the UI should auto-refresh to reflect what was deleted. |
Beta Was this translation helpful? Give feedback.
-
@brianjmurrell l this is not so much a bug report though as a long-form discussion of an eventual feature. do you have any objection to it being converted to a discussion? lots of stuff in jelly land doesn't refresh the UI as you might expect, and a place to discuss these seems appropriate to me. |
Beta Was this translation helpful? Give feedback.
-
Given that this issue has been open for nearly 5 years, I probably don't really care what happens with it at this point. Whatever you do with it, please at least post a link here to wherever it gets moved to. |
Beta Was this translation helpful? Give feedback.
-
I know I said I don't really care, but what is there really to discuss about this? The issue (when it was an issue) was quite clear. The UI does not immediately (i.e. without manual refreshes) reflect the remote state of deleted items. Now that I see what discussion item looks like, this does not seem an appropriate place for this issue. Discussions appear to be more of a question and answer forum. There is no answer for this issue. It's a defect/shortcoming of the software that needs fixing. This is more appropriately an issue, not a discussion IMO. |
Beta Was this translation helpful? Give feedback.
-
Since this is an issue with the web-frontend and not the server, shouldn't this issue/discussion be moved to the https://github.com/jellyfin/jellyfin-web repo? |
Beta Was this translation helpful? Give feedback.
-
Agreed this really is on the clients to sort out. For jellyfin-web specifically, the old view code really doesn't have a good way to update information dynamically without a full page refresh. There are a couple places where we try to refresh things but it's a pain to manage. Going forward this will be much easier though. Using react with react-query, we can pretty easily have data displayed in the ui refreshed on a regular interval and immediately invalidated when an edit is made. There is still a lot of work to do to get things converted over, but we have the tools we need and work is underway. |
Beta Was this translation helpful? Give feedback.
-
@thornbill is this polling behavior the only way to achieve this goal on other clients? seems to me that thats going to be a non-trivial burden in some of them. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
If I'm on the page for a given show, listing the episodes and I delete an episode, the removal is not reflected on that page until I back out of it and then go back into it.
To Reproduce
Expected behavior
The deleted item should be removed from the visible page immediately.
System (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions