diff --git a/maraschino/modules.py b/maraschino/modules.py index 39db73e1..e016f3ff 100644 --- a/maraschino/modules.py +++ b/maraschino/modules.py @@ -189,6 +189,18 @@ 'description': 'Show Power Controls', 'type': 'bool', }, + { + 'key': 'library_show_music', + 'value': '1', + 'description': 'Show music', + 'type': 'bool', + }, + { + 'key': 'library_show_files', + 'value': '1', + 'description': 'Show files', + 'type': 'bool', + }, ] }, { diff --git a/modules/index.py b/modules/index.py index a48bebb9..d73b9006 100644 --- a/modules/index.py +++ b/modules/index.py @@ -129,6 +129,8 @@ def index(): fanart_backgrounds = fanart_backgrounds, applications = applications, library_show_power_buttons = library_show_power_buttons, + show_music=get_setting_value('library_show_music') == '1', + show_files=get_setting_value('library_show_files') == '1', show_tutorial = unorganised_modules.count() == 0, webroot = maraschino.WEBROOT, kiosk = maraschino.KIOSK, diff --git a/modules/library.py b/modules/library.py index 572f9c70..5f1e471e 100644 --- a/modules/library.py +++ b/modules/library.py @@ -353,6 +353,8 @@ def render_library(library=None, title="Media Library", file_type=None, previous file_type=file_type, previous_dir=previous_dir, show_info=get_setting_value('library_show_info') == '1', + show_music=get_setting_value('library_show_music') == '1', + show_files=get_setting_value('library_show_files') == '1', library_show_power_buttons=get_setting_value('library_show_power_buttons', '1') == '1', bannerart=get_setting_value('library_use_bannerart') == '1', ) diff --git a/templates/library.html b/templates/library.html index 0576d030..6d6b7134 100644 --- a/templates/library.html +++ b/templates/library.html @@ -141,7 +141,7 @@

{{ title }}

{% endif %} - {% endfor %} + {% endfor %} {% endif %} {% if library.moviedetails %} @@ -323,20 +323,24 @@

Media Library

{% endif %}
- {% if message %} + {% if message %}
{{ message }}
{% endif %}
{% if library %} - {% if library.moviedetails %} + {% if library.moviedetails %} {% if library.moviedetails.resume.position >= 1 %} Resume {% endif %} @@ -346,27 +350,27 @@

Media Library

Trailer {% endif %} - {% elif library.tvshowdetails %} + {% elif library.tvshowdetails %} Play Queue - {% elif library.episodedetails %} + {% elif library.episodedetails %} {% if library.episodedetails.resume.position >= 1 %} Resume {% endif %} Play Queue - {% elif library.artistdetails %} + {% elif library.artistdetails %} Play Queue - {% elif library.albumdetails %} + {% elif library.albumdetails %} Play Queue {% endif %} - {% if library.tvshows or library.seasons or library.episodes or library.movies or library.moviedetails or library.tvshowdetails or library.episodedetails or file_type == "video_directory" %} + {% if library.tvshows or library.seasons or library.episodes or library.movies or library.moviedetails or library.tvshowdetails or library.episodedetails or file_type == "video_directory" %} @@ -379,10 +383,14 @@

Media Library

{% if message %} {% endif %} + {% if not library and not show_music %} + + + {% endif %} {% if library_show_power_buttons %} - - - + + + {% endif %}