ZeroQI / Hama.bundle

Plex HTTP Anidb Metadata Agent (HAMA)
GNU General Public License v3.0
1.19k stars 110 forks source link

Collections keeps being automatically created even if it's set to None #495

Closed squilcon closed 2 years ago

squilcon commented 2 years ago

I don't know if I'm doing everything correctly, but everything I tried so far didn't work. I'm trying to disable the creation of the collections in a library with this plugin. I don't want them to be created automatically. So, I tried, on a fresh install, to set the value for T--M 'collections' to None but it did nothing and the collections are still being created automatically.

If I'm doing something wrong, I'd like to know what I'm suppose to do to make it stop creating collections. If not, could you check if there's a bug in the plugin?

I'm testing this with the Appleseed movies that are being put into Appleseed Collection.

I attached the xml for configuration I chose for Hama Preferences.zip

with the logs of the plugin for the library I tested Logs.zip

I'm getting this Wrong

When I want this (I manually deleted the collection here) Right

If there's other log or information you need, I can get them.

Thx

ZeroQI commented 2 years ago

https://github.com/ZeroQI/Hama.bundle/blob/master/Contents/Code/common.py

I don't think it is done by Hama. What happens if you update .metadata for 1 movie or series? Does it come back What other agents do you have active In library agent list? Lambda?

squilcon commented 2 years ago

When I delete the collection, the Collection field is then locked. If I unlock it and refresh the metadata, the collection is created again. For the agents, I'm not sure where I need to go to see that. I don't have Lambda for sure. If you mean the agents in the settings, I only have HamaTV and HamaMovies selected.

hamatv hamamovies

ZeroQI commented 2 years ago

You can show or hide items in collection by changing your library settings. I would need to change the code to output the fields set to None as it doesn't make sense currently...

squilcon commented 2 years ago

True, I could let the collection as is and show every item, but what I wanted was to create them manually and only show the collections. If it's not possible, I'll try to do it by creating parent folder and setting the value to Local and hoping that only the parent folders will be created as collection. I'd prefer having every anime folder into a single parent folder though.

ZeroQI commented 2 years ago

https://github.com/ZeroQI/Hama.bundle/blob/master/Contents/Code/common.py line 671 it will not loop if source is not in the loop line 688 it will not display if source set to 'None' there is no field 'collection' assigned at the end of the logs, it's not done by Hama, you likely have a corrupted database and it reuses old series meta