View Single Post
Old 06-21-2015, 08:04 PM   #326
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by JimmXinu View Post
There's an unintended interaction between your setup and the updated add_genre_when_multi_category feature. I'll look into it, but in the meantime, commenting out add_genre_when_multi_category: Crossover will allow you to download again.
Here's the deal:

When 'genre' is fetched, the add_genre_when_multi_category feature looks at how many entries are in 'category' to decide if it should add that value.

That feature used to use the raw 'category', but was changed to allow include_in_category to populate 'category' as well. That change also started calling all of the include/exclude/replace code as well.

You have in replace_metadata:
Code:
## retag Crossovers
 category=>(.*)=>Crossover.\1&&genre=>Crossover
These cause an infinite recursion when the add_genre_when_multi_category feature tries to get 'category' (which gets 'genre', which gets 'category', which gets 'genre', which gets 'category', ...).

So the imperfect answer is to not do include/exclude/replace when add_genre_when_multi_category fetches 'category'. This means, for example, you can't use replace_metadata to reduce 'Marvel Movies' and 'Marvel (Movies)' down to one category before add_genre_when_multi_category is applied. But then you couldn't before earlier this month anyway.

I've posted a new test version (direct link) with this change.
JimmXinu is offline   Reply With Quote