Kodi Community Forum
Req Filter based on folder content and metadata? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+---- Forum: Ember Media Manager (https://forum.kodi.tv/forumdisplay.php?fid=195)
+---- Thread: Req Filter based on folder content and metadata? (/showthread.php?tid=332587)



Filter based on folder content and metadata? - badbob001 - 2018-06-07

I'm looking for a way to filter based on:
  • The content of the movie's folder.
    For example, list only movies with a subfolder /Extras/ or list only movies with /*.chinese.srt/ files.
  • The movie's metadata.
    For example, list movies with more than one audio track (help find movies with dual languages or commentary).
This way, I can then apply changes to the entire filtered list, such as Adding an Extras genre/tag or Commentary genre/tag.

I could do some of this filtering with an external script, but then I would need EMM to support modifying a movie from the commandline.


RE: Filter based on folder content and metadata? - DanCooper - 2018-06-07

Filter by "movies with /Extras/ folder" is not possible. Ember doesn't indexing folder or files that are not needed.

But you can filter by local stored subtitles if they are stored in the database. Subtitles are only indexed if they are safed directly in the movie or "/subs/" folder and begin with the same file name like the video file. An SQL query for that you can find here: Link
The only problem is that language of external subtitles will not be recognized automatically. So that works only if you've set the language manually.

More than one audio stream: Link

These queries can be used in Settings => Misc => Media List Editor

Modifing per command line is not planed ATM, but a JSON interface for Ember 2.0. But don't ask me when that will be released...