{% if library %}
{% if library.moviedetails %}
{% if library.moviedetails.resume.position >= 1 %}
Resume
{% endif %}
Play
Queue
{% if library.moviedetails.trailer %}
Trailer
{% endif %}
{% elif library.tvshowdetails %}
Play
Queue
{% elif library.episodedetails %}
{% if library.episodedetails.resume.position >= 1 %}
Resume
{% endif %}
Play
Queue
{% elif library.artistdetails %}
Play
Queue
{% 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" %}
 }})
{% elif library.artists or library.albums or library.songs or library.artistdetails or library.albumdetails or file_type == "music_directory" %}
 }})
{% endif %}
{% endif %}
{% if message %}
 }})
{% endif %}
{% if not library and not show_music %}
 }})
{% endif %}
{% if library_show_power_buttons %}
 }})
{% endif %}