View Single Post
Old 02-23-2021, 07:54 AM   #364
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,201
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Also turns out subitems() automatically removes duplicates anyway. So this works fine to get the top level genres:

Code:
program:
    genres = category_items('#genre');
    subitems(genres, 0, 1)
capink is offline   Reply With Quote