Post Reply 
Re-tagged items appearing in Recently Added
05-11-2022, 17:35
Post: #1
Re-tagged items appearing in Recently Added
Hi,

I'm using MinimServer 2.1.2 update 218 for Synology NAS (DSM 6.x).

Today I wanted to tidy up the list of Genres, removing things like Indie and Britpop by re-tagging the items in those genres as Rock, Pop, Alternative, etc.

I re-tagged all albums by particular artists at once and then re-scanned. At first, the albums moved into the correct genre as expected (I didn't check Recently Added at this point). Then I did the same with a 2nd artist and after a re-scan, all the albums from the 1st artist appeared under Recently Added.

I have tried to re-produce this as follows:
  1. Re-tagging an album (Bjork, Telegram) from Electronica to Alternative - that still left other albums by other artists tagged as Electronica.
  2. Setting MinimServer logging level to Debug and triggering a re-scan. The log shows it discarding the cache for each file and re-reading it - fine.
  3. Re-tagging another album (Various, The Ultimate System Set-Up Disc) from Sound Clip to Classical - that left no other audio files with the genre of "Sound Clip".
  4. Setting MinimServer logging level to Debug and triggering a re-scan. The log shows it discarding the cache for each file and re-reading it - fine.
  5. Recently Added now shows Bjork, Telegram as added today. Looking at the log for the 2nd refresh above, it doesn't try to update the Bjork, Telegram album on the 2nd refresh as it's not changed. So why does that now appear in Recently Added?
I have the MinimServer.log file for this and can supply the contents of the etc/recent folder as well if required.

How can I fix this situation with my library?

I thought of using a tool to change the modified dates on the recently re-tagged files back to a much older date, delete MinimServer's cache file while it's not running then re-scan?

I've had a nightmare trying to post the above, with the server show a "Forbidden" error unless I take bits out, put them back in, etc.
Find all posts by this user
Quote this message in a reply
05-11-2022, 21:31
Post: #2
RE: Re-tagged items appearing in Recently Added
Thanks for reporting this problem. I confirm that this behaviour is incorrect. Looking at the code in MinimServer, I can see a combination of circumstances that could possibly cause this. I will do some testing and if this confirms the problem I will fix it in the next MinimServer update.

To work around this problem for now, you could reset last modified dates for the affected files as you suggest and then do a rescan. You should not delete the MinimServer cache file as this might cause other files to appear incorrectly in the recently added list.

Alternatively, you could stop MinimServer and manually edit the added-dates.txt file to remove entries for files that should not be in your recently added list. In this case, no rescan is needed, just a restart.You don't need to edit the added-files.txt file because this is regenerated automatically from the added-dates.txt file when you do a restart.

The 'forbidden' message is generated by security filtering software installed by my hosting provider. It is usually caused by a left parenthesis preceded by the word file or system. Other uses of left parenthesis (for example, in smilies) can also produce this message. This is based on my own experience as my hosting provider will not provide me with any information about the rules that this security software uses.
Find all posts by this user
Quote this message in a reply
05-11-2022, 21:44
Post: #3
RE: Re-tagged items appearing in Recently Added
(05-11-2022 21:31)simoncn Wrote:  Thanks for reporting this problem. I confirm that this behaviour is incorrect. Looking at the code in MinimServer, I can see a combination of circumstances that could possibly cause this. I will do some testing and if this confirms the problem I will fix it in the next MinimServer update.
Thanks, let me know if you need my logs.
(05-11-2022 21:31)simoncn Wrote:  To work around this problem for now, you could reset last modified dates for the affected files as you suggest and then do a rescan. You should not delete the MinimServer cache file as this might cause other files to appear incorrectly in the recently added list.

Alternatively, you could stop MinimServer and manually edit the added-dates.txt file to remove entries for files that should not be in your recently added list. In this case, no rescan is needed, just a restart.You don't need to edit the added-files.txt file because this is regenerated automatically from the added-dates.txt file when you do a restart.

The strange thing as that added-dates.txt does NOT include these items, only the added-files.txt
Find all posts by this user
Quote this message in a reply
05-11-2022, 22:26 (This post was last modified: 05-11-2022 22:29 by simoncn.)
Post: #4
RE: Re-tagged items appearing in Recently Added
It would be helpful if you could attach both added-dates.txt and added-files.txt as file attachments to a post here. I would like to investigate why some files are in one of these but not the other. I think this is related to the problem with incorrect "last added" dates while browsing. Many thanks.
Find all posts by this user
Quote this message in a reply
05-11-2022, 23:22
Post: #5
RE: Re-tagged items appearing in Recently Added
(05-11-2022 22:26)simoncn Wrote:  It would be helpful if you could attach both added-dates.txt and added-files.txt as file attachments to a post here.

Done


Attached File(s)
.txt  added-dates.txt (Size: 32.1 KB / Downloads: 5)
.txt  added-files.txt (Size: 28.15 KB / Downloads: 4)
Find all posts by this user
Quote this message in a reply
07-11-2022, 14:36 (This post was last modified: 07-11-2022 14:41 by simoncn.)
Post: #6
RE: Re-tagged items appearing in Recently Added
Thanks for this. As a workaround until a fix is available, I suggest you do the following:

1) Reset the last modified dates for the affected files to a very old date
2) Do a rescan
3) Change the last modified dates for the affected files to a slightly different very old date
4) Do another rescan

Do not modify added-dates.txt or added-files.txt and do not delete the cache file. Try this with a few files first to make sure it has the desired effect.
Find all posts by this user
Quote this message in a reply
07-12-2022, 12:09
Post: #7
RE: Re-tagged items appearing in Recently Added
There is a fix for this problem in MinimServer update 219, just released. Please try this update and let me know whether it solves the problem you have had with retagged files.

At present, update 219 is not installed automatically. It can be installed manually from the About dialog (Show updates) or from the Packages tab of the Properties dialog.
Find all posts by this user
Quote this message in a reply
07-12-2022, 18:50
Post: #8
RE: Re-tagged items appearing in Recently Added
(07-12-2022 12:09)simoncn Wrote:  There is a fix for this problem in MinimServer update 219, just released. Please try this update and let me know whether it solves the problem you have had with retagged files.

Just to say that I had the exact same problem as the OP where retagged files were appearing in the Recents. They were in added-files but not in added-dates. I updated to 219, rescanned and now it is working as expected. Thanks
Find all posts by this user
Quote this message in a reply
08-12-2022, 21:51 (This post was last modified: 08-12-2022 22:05 by Peter StreamMagic.)
Post: #9
RE: Re-tagged items appearing in Recently Added
Just to say that I had the exact same problem as the OP where retagged files were appearing in the Recents. They were in added-files but not in added-dates. I updated to 219, rescanned and now it is working as expected. Thanks


I can't confirm this.
I also installed update 219 and rescanned, retagged files still appear in recently added.
Only Kazoo on my PC displays correctly, all other controlpoints on iPhone and iPad show recently retagged albums as recently added.

Edit: the new Linn app also displays correctly!
Find all posts by this user
Quote this message in a reply
09-12-2022, 10:15
Post: #10
RE: Re-tagged items appearing in Recently Added
(08-12-2022 21:51)Peter StreamMagic Wrote:  I also installed update 219 and rescanned, retagged files still appear in recently added.

Are these retagged files shown in the added-dates.txt file? If so, they would have been placed there because of a bug in the previous version of MinimServer. To fix this problem, you can manually remove these incorrect eentries.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)