Skip to content

Commit 32ec88a

Browse files
v1.6.8 Merge
v1.6.8 Merge
2 parents be2610f + 42925fe commit 32ec88a

File tree

4 files changed

+38
-18
lines changed

4 files changed

+38
-18
lines changed

CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
# Change Log
22

3-
## [v1.6.7](https://github.com/Boerderij/Varken/tree/v1.6.7) (2019-04-18)
4-
[Full Changelog](https://github.com/Boerderij/Varken/compare/1.6.6...v1.6.7)
3+
## [v1.6.8](https://github.com/Boerderij/Varken/tree/v1.6.8) (2019-04-18)
4+
[Full Changelog](https://github.com/Boerderij/Varken/compare/1.6.7...v1.6.8)
5+
6+
**Implemented enhancements:**
7+
8+
- \[Enhancement\] Only drop the invalid episodes from sonarr [\#121](https://github.com/Boerderij/Varken/issues/121)
9+
10+
**Merged pull requests:**
11+
12+
- v1.6.8 Merge [\#122](https://github.com/Boerderij/Varken/pull/122) ([DirtyCajunRice](https://github.com/DirtyCajunRice))
13+
14+
## [1.6.7](https://github.com/Boerderij/Varken/tree/1.6.7) (2019-04-18)
15+
[Full Changelog](https://github.com/Boerderij/Varken/compare/1.6.6...1.6.7)
516

617
**Implemented enhancements:**
718

docker-compose.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ networks:
55
services:
66
influxdb:
77
hostname: influxdb
8-
user: auser
98
image: influxdb
109
networks:
1110
- internal
@@ -28,7 +27,6 @@ services:
2827
restart: unless-stopped
2928
grafana:
3029
hostname: grafana
31-
user: auser
3230
image: grafana/grafana
3331
networks:
3432
- internal
@@ -40,7 +38,6 @@ services:
4038
- GF_PATHS_DATA=/config/data
4139
- GF_PATHS_LOGS=/config/logs
4240
- GF_PATHS_PLUGINS=/config/plugins
43-
- GF_PATHS_CONFIG=/config/grafana.ini
4441
- GF_INSTALL_PLUGINS=grafana-piechart-panel,grafana-worldmap-panel
4542
depends_on:
4643
- influxdb

varken/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
VERSION = "1.6.7"
1+
VERSION = "1.6.8"
22
BRANCH = 'master'

varken/sonarr.py

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@ def get_missing(self):
3535
return
3636

3737
# Iteratively create a list of SonarrTVShow Objects from response json
38-
try:
39-
tv_shows = [SonarrTVShow(**show) for show in get]
40-
except TypeError as e:
41-
self.logger.error('TypeError has occurred : %s while creating SonarrTVShow structure', e)
38+
tv_shows = []
39+
for show in get:
40+
try:
41+
show_tuple = SonarrTVShow(**show)
42+
tv_shows.append(show_tuple)
43+
except TypeError as e:
44+
self.logger.error('TypeError has occurred : %s while creating SonarrTVShow structure for show', e)
45+
if not tv_shows:
4246
return
4347

4448
# Add show to missing list if file does not exist
@@ -86,10 +90,14 @@ def get_future(self):
8690
if not get:
8791
return
8892

89-
try:
90-
tv_shows = [SonarrTVShow(**show) for show in get]
91-
except TypeError as e:
92-
self.logger.error('TypeError has occurred : %s while creating SonarrTVShow structure', e)
93+
tv_shows = []
94+
for show in get:
95+
try:
96+
show_tuple = SonarrTVShow(**show)
97+
tv_shows.append(show_tuple)
98+
except TypeError as e:
99+
self.logger.error('TypeError has occurred : %s while creating SonarrTVShow structure for show', e)
100+
if not tv_shows:
93101
return
94102

95103
for show in tv_shows:
@@ -136,10 +144,14 @@ def get_queue(self):
136144
if not get:
137145
return
138146

139-
try:
140-
download_queue = [Queue(**show) for show in get]
141-
except TypeError as e:
142-
self.logger.error('TypeError has occurred : %s while creating Queue structure', e)
147+
download_queue = []
148+
for show in get:
149+
try:
150+
show_tuple = Queue(**show)
151+
download_queue.append(show_tuple)
152+
except TypeError as e:
153+
self.logger.error('TypeError has occurred : %s while creating Queue structure', e)
154+
if not download_queue:
143155
return
144156

145157
for show in download_queue:

0 commit comments

Comments
 (0)