Decorum for the Forum:
  • Be nice. If you want to be mean, try Reddit.
  • No Piracy. If you want to be a thief, there are dark places on the internet dedicated to that.
  • No Cracking. Discussions on AnyDVD, DeUHD, DVDFab, UHDKeys and similar tools are not permitted here.
  • No Spamming. If you want to make a buck, work smarter... somewhere else.
  • No Adult Content. Half the internet is dedicated to adult content. This half isn't.

Privacy Policy: Click Here to Review (updated September 30, 2020)

[Resolved] Cannot remove old categories

General support forum for Chameleon MediaCenter (formerly MM Browser)
Redtarga
Posts: 18
Joined: Fri Oct 12, 2018 11:24 pm

[Resolved] Cannot remove old categories

Post by Redtarga » Mon Oct 21, 2019 10:44 am

I had a few categories out of 67 whose length was excessive. They would run into the next column. I replaced them with shorter names and, though the new categories appeared as expected the old ones are still there. I've done full syncs, checked that the old categories have zero titles, optimized the MMCM database, all to no avail.

Thank you.

User avatar
Pauven
Posts: 2788
Joined: Tue Dec 26, 2017 10:28 pm
Location: Atlanta, GA, USA
Contact:

Re: Cannot remove old categories

Post by Pauven » Mon Oct 21, 2019 12:42 pm

Sounds like a bug. I'll check on it. Thanks for reporting.
President, Chameleon Consulting LLC
Author, Chameleon MediaCenter

User avatar
Pauven
Posts: 2788
Joined: Tue Dec 26, 2017 10:28 pm
Location: Atlanta, GA, USA
Contact:

Re: Cannot remove old categories

Post by Pauven » Mon Oct 21, 2019 6:47 pm

I looked at the code, and a Full Sync should remove the old Categories, but you would have to exit and relaunch CMC to see the change.

Does it behave that way for you?
President, Chameleon Consulting LLC
Author, Chameleon MediaCenter

Redtarga
Posts: 18
Joined: Fri Oct 12, 2018 11:24 pm

Re: Cannot remove old categories

Post by Redtarga » Tue Oct 22, 2019 9:29 am

No, exiting CMC doesn't fix it, if by exiting you mean closing it with the top rightmost X button. I've been doing that many times a day while updating the content. I think I rebooted once or twice as well.

Jamie
Posts: 945
Joined: Wed Dec 27, 2017 11:26 pm

Re: Cannot remove old categories

Post by Jamie » Tue Oct 22, 2019 11:04 am

If you did a sync before exiting, did you wait for the sync spinning icon to stop before you exit. The sync might still be doing stuff in the background while that sync icon is still spinning.

Redtarga
Posts: 18
Joined: Fri Oct 12, 2018 11:24 pm

Re: Cannot remove old categories

Post by Redtarga » Tue Oct 22, 2019 11:37 am

Yes. Always.

User avatar
Pauven
Posts: 2788
Joined: Tue Dec 26, 2017 10:28 pm
Location: Atlanta, GA, USA
Contact:

Re: Cannot remove old categories

Post by Pauven » Tue Oct 22, 2019 12:09 pm

So I just tested this, and I can not reproduce this issue. When doing a Smart Sync, the Category is not removed - this is to be expected. But when doing a Full Sync, the Category is removed. You don't even have to exit CMC, the unused category is immediately removed.

So this means there is not a bug.

If the Full Sync isn't working for you, then that means one of two possibilities.

1) You still have a title assigned to that category, though this seems unlikely based upon your first post.

2) You have some orphaned XML files that are no longer getting updated by MMCM or CME.

#2 is actually pretty likely. For example, I actually ran into this problem while trying to test adding and removing a custom Category today. What happened is that I had an ISO that was originally configured as an Online File, so the XML data was saved as <ISOname>.mymovies.xml and <ISOname>.mmTitle.xml. But then My Movies Collection Management decided to change this configuration to an Online Folder (MMCM is really bad to do this), and then I got mymovies.xml and mmTitle.xml files in addition to the <ISOname>.* versions.

The problem is that CMC will use the <ISOname>.mmTitle.xml or <ISOname>.mymovies.xml files if they exist, choosing them over the more generic mymovies.xml and mmTitle.xml files. But since the movie was now configured as an Online Folder, the <ISOname>.* files were now orphaned and no longer being updated with the Category changes. I could see this easily by looking in the movie folder, I saw the older <ISOname>.* files that had older dates from a few months ago, and the mmTitle.xml/mymovies.xml files that had today's date.

To figure out which titles in your collection have this problem, in CMC go ahead an filter by old Categories that you want removed, and see which titles show up. Then look in their folders and see if you don't find old XML files that are not getting updated anymore.
President, Chameleon Consulting LLC
Author, Chameleon MediaCenter

User avatar
Pauven
Posts: 2788
Joined: Tue Dec 26, 2017 10:28 pm
Location: Atlanta, GA, USA
Contact:

Re: Cannot remove old categories

Post by Pauven » Tue Oct 22, 2019 12:12 pm

Oh, and if you have a lot of movies that somehow got orphaned XML files like this, your best strategy might be to purge all the XML files from your media folders and re-export everything. While that will take a while, it will be mostly automatic versus you manually hunting these down.
President, Chameleon Consulting LLC
Author, Chameleon MediaCenter

Redtarga
Posts: 18
Joined: Fri Oct 12, 2018 11:24 pm

Re: Cannot remove old categories

Post by Redtarga » Wed Oct 23, 2019 12:33 pm

Perhaps I misunderstood what you said, but I had mentioned in my first post that there were no titles in the old categories. I confirmed this a few minutes ago.

However, based on what you wrote I looked at titles in a small, renamed category. I found one that had an old mymovies.xml file and a recent mmtitle.xml file. I deleted the mymovies.xml file and ran CMC Data Exporter (a wonderful program, by the way) on the title.

After a full sync the old category was no longer present.

The bad news is I have to do this manually for several hundred titles (out of over 6700), but I think I can figure out a way to make this easier with Beyond Compare or Windows Search.

If you don't mind my adding an unrelated question here: I noticed that MMCM shows a total of 6627 titles but CMC shows only 4706. Of course all discs are scanned. Any thoughts?

User avatar
Pauven
Posts: 2788
Joined: Tue Dec 26, 2017 10:28 pm
Location: Atlanta, GA, USA
Contact:

Re: Cannot remove old categories

Post by Pauven » Wed Oct 23, 2019 1:13 pm

Redtarga wrote: Wed Oct 23, 2019 12:33 pm I noticed that MMCM shows a total of 6627 titles but CMC shows only 4706. Of course all discs are scanned. Any thoughts?

The # you see in CMC is the number of covers shown on the screen. This changes due to Filters being applied (i.e. Show Unwatched Only, Genres, Categories), but also TV Series and Box Sets only count as 1 cover. If you have a lot of TV Series and Box Sets, you should expect the CMC count to be lower.

If you want to see how many titles CMC is processing behind the scenes, you can open the CMC_MoviesDB.xml file, and find the title count in the top row. This will probably be slightly higher than My Movies, because each TV Series and Box Set adds 1 to the total count for this #.


Redtarga wrote: Wed Oct 23, 2019 12:33 pm The bad news is I have to do this manually for several hundred titles (out of over 6700), but I think I can figure out a way to make this easier with Beyond Compare or Windows Search.

This is why I suggested you may want to do a meta-data cleanup. CME has some cleanup tools built into it (Settings > CME Metadata Cleanup), plus MMCM has meta-data cleanup tools built into it. Then do a full export from CME. I know it seems like overkill to delete all metadata, but this way you won't have to manually try and find these hundred or so files.

As an alternate approach, you could skip the metadata cleanup and just do the full export from CME. Then do a file search for *.xml where the date is older than today, and those should be the orphaned files.
President, Chameleon Consulting LLC
Author, Chameleon MediaCenter

Post Reply