Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

MediaTomb adds album covers and DVD covers into the photo collection. That means, when you are going through your photos, you also get album covers intermixed in there.

Is there a way of restricting the type of media from specific folders. So, /path/to/music will be restricted to music, /path/to/photos will be restricted to photos etc?

share|improve this question
add comment

1 Answer

You can use custom MediaTomb's Javascript API to do whatever you want with the file layout. I have used it to change filenames displayed and re-organize the directory structure. For instance if you have,

  1. Tv/Mash/Mash-E01-Hawkeye-gets-shot.avi
  2. Tv/Mash/Mash-E02-Hot-lips-gets-shot.avi

You might only want E01-Hawkeye-gets-shot and E02-Hot-lips-gets-shot to be displayed depending on how your media render displays the titles. For sure, you can filter files (not include them) this way as well. Typically these files are in /usr/share/mediatomb/js and are specified in the /etc/mediatomb/config.xml.

Specifically look at 5.1.3. Image Content Handler. You need to change the addImage() function in the import script.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.