-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add proper HTML and JSON output
- Loading branch information
1 parent
468e215
commit 34d6bd7
Showing
7 changed files
with
145 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
include README.md | ||
include beetsplug/webm3u/config_default.yaml | ||
include beetsplug/webm3u/templates/*.html | ||
include beetsplug/webm3u/static/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
body { | ||
font-family: Verdana, sans-serif; | ||
font-size: 1.2em; | ||
line-height: 1.5em; | ||
} | ||
ul, li { | ||
margin: 0; | ||
padding: 0; | ||
list-style-type: none; | ||
} | ||
li a { | ||
display: block; | ||
padding: 0.5em 1em; | ||
} | ||
li a span { | ||
font-size: 0.7em | ||
} | ||
li:nth-child(odd) { | ||
background-color: #fafafa; | ||
} | ||
li a:hover, li a:active { | ||
background: #eeeeee; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Beets music library</title> | ||
<link rel="stylesheet" type="text/css" href= "{{ url_for('static',filename='style.css') }}"> | ||
</head> | ||
<body> | ||
<h1>Beets music library</h1> | ||
|
||
<p> | ||
<a href="javascript:history.back()">🢘 back</a> | ||
</p> | ||
|
||
<ul> | ||
<li><a href="playlists/">Playlists</a></li> | ||
<li><a href="music/">Audio files</a></li> | ||
</ul> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Playlists</title> | ||
<link rel="stylesheet" type="text/css" href= "{{ url_for('static',filename='style.css') }}"> | ||
</head> | ||
<body> | ||
<h1>Playlists</h1> | ||
|
||
<p> | ||
<a href="javascript:history.back()">🢘 back</a> | ||
</p> | ||
|
||
<ul> | ||
{% if path %} | ||
<li> | ||
<a href="../">..</a> | ||
</li> | ||
{% endif %} | ||
{% for dir in directories %} | ||
<li> | ||
<a href="{{ dir }}/">📁 {{ dir }}</a> | ||
</li> | ||
{% endfor %} | ||
{% for playlist in playlists %} | ||
<li> | ||
<a href="{{ playlist.path }}">🎵 {{ playlist.name }} <span>({{ humanize(playlist.size) }})</span></a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters