Skip to content

Commit df2b56c

Browse files
committed
v0.5.14
2 parents 4b80e2b + e168305 commit df2b56c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2540
-1110
lines changed

.gitattributes

-1
This file was deleted.

.gitignore

+11-12
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,18 @@
44
.project
55
.pydevproject
66

7-
# coverage generated:
7+
# coverage generated
88
/cover-html/
99
.coverage
1010
.coveralls.yml
1111

12-
# Compiled source #
13-
###################
12+
# Compiled source
1413
*.pyc
1514
*.py~
1615
*.pyproj
1716
*.sln
1817

19-
# Headphones files #
20-
######################
18+
# Headphones files
2119
*.log
2220
*.db*
2321
*.db-journal
@@ -26,27 +24,25 @@ version.lock
2624
logs/*
2725
cache/*
2826

29-
# HTTPS Cert/Key #
30-
##################
27+
# HTTPS Cert/Key
3128
*.crt
3229
*.key
3330
*.csr
3431

35-
# OS generated files #
36-
######################
32+
# OS generated files
3733
.DS_Store?
3834
.DS_Store
3935
ehthumbs.db
4036
Icon?
4137
Thumbs.db
4238

43-
#Ignore files generated by PyCharm
39+
# Ignore files generated by PyCharm
4440
.idea/*
4541

46-
#Ignore files generated by vi
42+
# Ignore files generated by vi
4743
*.swp
4844

49-
#Ignore files build by Visual Studio
45+
# Ignore files build by Visual Studio
5046
*.obj
5147
*.exe
5248
*.pdb
@@ -72,3 +68,6 @@ obj/
7268
[Rr]elease*/
7369
_ReSharper*/
7470
.vscode
71+
72+
# Python virtual env
73+
venv

.pep8

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
[pep8]
2-
# E121 continuation line under-indented for hanging indent
3-
# E122 continuation line missing indentation or outdented
4-
# E124 closing bracket does not match visual indentation
5-
# E125 continuation line with same indent as next logical line
62
# E126 continuation line over-indented for hanging indent
73
# E127 continuation line over-indented for visual indent
84
# E128 continuation line under-indented for visual indent
9-
# E261 at least two spaces before inline comment
10-
# E262 inline comment should start with '# '
11-
# E265 block comment should start with '# '
125
# E501 line too long (312 > 160 characters)
13-
# E502 the backslash is redundant between brackets
14-
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E261,E262,E265,E501,E502
6+
ignore = E123,E126,E127,E128,E501
157
max-line-length = 160

.travis.yml

+6-17
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,25 @@
22
# http://about.travis-ci.org/docs/
33

44
language: python
5+
56
sudo: false
67

78
cache:
89
pip: true
910
directories:
10-
- lib
11+
- lib
1112

12-
# Available Python versions:
13-
# http://about.travis-ci.org/docs/user/ci-environment/#Python-VM-images
1413
python:
1514
- "2.6"
16-
matrix:
17-
include:
18-
- python: "2.7"
19-
env: SENDCOVERAGE=1
15+
- "2.7"
2016

21-
# pylint 1.4 does not run under python 2.6
2217
install:
23-
- pip install pyOpenSSL
24-
- pip install pylint==1.3.1
25-
- pip install pyflakes
26-
- pip install pep8
27-
# coverage stuff:
28-
- pip install coveralls
29-
- pip install coverage
18+
- pip install -r requirements-dev.txt
19+
3020
script:
3121
- pep8 headphones
3222
- pyflakes headphones
3323
- nosetests
3424

3525
after_success:
36-
# coverage stuff:
37-
- if [ $SENDCOVERAGE ]; then coveralls; fi
26+
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then coveralls; fi

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## v0.5.14
4+
Released 02 June 2016
5+
6+
Highlights:
7+
* Fixed: File/folder format on new installs
8+
* Fixed: Pep8 errors
9+
* Improved: Updated fontawesome
10+
* Improved: Reverted back to less
11+
12+
The full list of commits can be found [here](https://github.com/rembo10/headphones/compare/v0.5.13...v0.5.14).
13+
314
## v0.5.13
415
Released 25 February 2016
516

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
##![Headphones Logo](https://github.com/rembo10/headphones/raw/master/data/images/headphoneslogo.png) Headphones
22

3-
**Master Branch:** [![Build Status](https://travis-ci.org/rembo10/headphones.svg?branch=master)](https://travis-ci.org/rembo10/headphones)
4-
**Develop Branch:** [![Build Status](https://travis-ci.org/rembo10/headphones.svg?branch=develop)](https://travis-ci.org/rembo10/headphones)
3+
[![Build Status](https://travis-ci.org/rembo10/headphones.svg?branch=master)](https://travis-ci.org/rembo10/headphones)
4+
[![Build Status](https://img.shields.io/travis/rembo10/headphones/develop.svg?label=develop%20branch%20build)](https://travis-ci.org/rembo10/headphones)
55

66
Headphones is an automated music downloader for NZB and Torrent, written in Python. It supports SABnzbd, NZBget, Transmission, µTorrent, Deluge and Blackhole.
77

data/interfaces/default/base.html

+3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@
8282
<div id="info">
8383
<small>
8484
<a href="https://github.com/rembo10/headphones"><i class="fa fa-headphones"></i> Website</a> |
85+
%if headphones.CONFIG.GIT_USER != 'rembo10':
86+
<a href="https://github.com/${headphones.CONFIG.GIT_USER}/headphones" title="Open this fork on github"><i class="fa fa-github"></i> GitHub</a> |
87+
%endif
8588
<a href="https://github.com/rembo10/headphones/wiki/TroubleShooting"><i class="fa fa-ambulance"></i> Help</a>
8689
</small>
8790
</div>

data/interfaces/default/config.html

+10-4
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,12 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
392392
<input type="text" name="deluge_host" value="${config['deluge_host']}" size="30">
393393
<small>Usually http://localhost:8112 (requires WebUI plugin)</small>
394394
</div>
395+
<div class="row">
396+
<label>Deluge SSL Certificate</label>
397+
<input type="text" name="deluge_cert" value="${config['deluge_cert']}" size="30">
398+
<small>Path to the certificate file. Make sure to use a valid certificate ("Issued To" field must match
399+
hostname) which is <em>not</em> the case with the default certificate. Path is usually <span style="font-family: monospace;">%appdata%\deluge\ssl</span> on Windows, <span style="font-family: monospace;">~/.config/deluge/ssl/</span> on Linux. Leave this blank if you are using a self-signed certificate.</small>
400+
</div>
395401
<div class="row">
396402
<label>Deluge Password</label>
397403
<input type="password" name="deluge_password" value="${config['deluge_password']}" size="30">
@@ -888,7 +894,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
888894
<div class="row">
889895
as <input type="text" class="override-float" name="album_art_format" value="${config['album_art_format']}" size="10">.jpg
890896
</div>
891-
<small>Use $Artist/$artist, $Album/$album, $Year/$year, put optional variables in square brackets, use single-quote marks to escape square brackets literally ('[', ']').</small>
897+
<small>Use $Artist/$artist, $Album/$album, $Year/$year, put optional variables in curly braces, use single-quote marks to escape curly braces literally ('{', '}').</small>
892898
</div>
893899
<div class="row checkbox left clearfix nopad">
894900
<label>
@@ -1283,13 +1289,13 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
12831289
<div class="row">
12841290
<label>Folder Format</label>
12851291
<input type="text" name="folder_format" value="${config['folder_format']}" size="43">
1286-
<small>Use: $Artist/$artist, $SortArtist/$sortartist, $Album/$album, $Year/$year, $Type/$type (release type) and $First/$first (first letter in artist name), $OriginalFolder/$originalfolder (downloaded directory name). Put optional variables in square brackets, use single-quote marks to escape square brackets literally ('[', ']').<br>E.g.: $Type/$First/$artist/$album '['$year']' = Album/G/girl talk/all day [2010]</small>
1292+
<small>Use: $Artist/$artist, $SortArtist/$sortartist, $Album/$album, $Year/$year, $Type/$type (release type) and $First/$first (first letter in artist name), $OriginalFolder/$originalfolder (downloaded directory name). Put optional variables in curly braces, use single-quote marks to escape curly braces literally ('{', '}').<br>E.g.: $Type/$First/$artist/$album{ '['$year']'} = Album/G/girl talk/all day [2010]</small>
12871293

12881294
</div>
12891295
<div class="row">
12901296
<label>File Format</label>
12911297
<input type="text" name="file_format" value="${config['file_format']}" size="43">
1292-
<small>Use: $Disc/$disc (disc #), $Track/$track (track #), $Title/$title, $Artist/$artist, $Album/$album and $Year/$year. Put optional variables in square brackets, use single-quote marks to escape square brackets literally ('[', ']').</small>
1298+
<small>Use: $Disc/$disc (disc #), $Track/$track (track #), $Title/$title, $Artist/$artist, $Album/$album and $Year/$year. Put optional variables in curly braces, use single-quote marks to escape curly braces literally ('{', '}').</small>
12931299
</div>
12941300
<div class="checkbox row clearfix">
12951301
<input type="checkbox" name="file_underscores" id="file_underscores" value="1" ${config['file_underscores']}/><label>Use underscores instead of spaces</label>
@@ -1592,7 +1598,7 @@ <h1 class="clearfix"><i class="fa fa-gear"></i> Settings</h1>
15921598
<fieldset>
15931599
<legend>Musicbrainz</legend>
15941600
<div class="row">
1595-
<label>Muscbrainz Mirror</label>
1601+
<label>Musicbrainz Mirror</label>
15961602
<select name="mirror" id="mirror">
15971603
%for mirror in config['mirrorlist']:
15981604
<%

data/interfaces/default/css/README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# About less and css
2+
3+
**The main message of this document: DO NOT MODIFY style.css - IT IS GENERATED FILE**
4+
5+
----
6+
7+
If you want modify the appearance of Headphones, please, follow this simple steps.
8+
9+
0. **Install**. Do this just once, and if you still do not have `lessc` utility on your PC. Here is very useful guide, how to install less : [http://lesscss.org/#using-less-installation](http://lesscss.org/#using-less-installation)
10+
1. **Modify**. Carefully add your changes to the `style.less` (`.less` extension, not `.css`).
11+
2. **Compile**. Currently, there is no magic, so you should compile css manually. Go to the `/data/interfaces/default/css` folder (or use full paths..), and then just type:
12+
13+
```bash
14+
lessc style.less > style.css
15+
```
16+
17+
_works good on *nix hosts, I didn't test this on win-hosts_
18+
19+
DONE. You have new CSS file.
20+
21+
## LESS
22+
23+
Less is very useful tool (CSS pre-processor) for CSS writing. There is the awesome guide on the official site: [Official Less Guide](http://lesscss.org/features/)
24+
25+
Thanks!

data/interfaces/default/css/config.less

+37-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@
1010
@msg-bg: #FFF6A9;
1111
@msg-bg-success: #D3FFD7;
1212
@msg-bg-error: #FFD3D3;
13+
@brand-color: #4F4F4F;
14+
@caption-color: #999999;
15+
16+
@gradient-color-1: #FAFAFA;
17+
@gradient-color-2: #E7E7E7;
18+
19+
@heading-input-radius: 5px;
1320

1421
/* Mixins */
15-
.rounded(@radius: 5px) {
22+
.rounded(@radius: 5px) {
1623
-moz-border-radius: @radius;
1724
-webkit-border-radius: @radius;
1825
border-radius: @radius;
@@ -75,3 +82,32 @@
7582
opacity:@opacity_percent / 100 !important;
7683
}
7784

85+
86+
/*
87+
COLUMNS STUFF
88+
https://css-tricks.com/guide-responsive-friendly-css-columns/
89+
*/
90+
.columnWidth(@width) {
91+
-webkit-column-width: @width;
92+
-moz-column-width: @width;
93+
column-width: @width;
94+
}
95+
.columnCount(@count) {
96+
-webkit-columns: @count;
97+
-moz-columns: @count;
98+
columns: @count;
99+
}
100+
.columnGap(@width) {
101+
-webkit-column-gap: @width;
102+
-moz-column-gap: @width;
103+
column-gap: @width;
104+
}
105+
.columnRule(@border) {
106+
-webkit-column-rule: @border;
107+
-moz-column-rule: @border;
108+
column-rule: @border;
109+
}
110+
.columnSpan(@what) {
111+
-webkit-column-span: @what;
112+
column-span: @what;
113+
}

data/interfaces/default/css/font-awesome.min.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)