Skip to content

Commit

Permalink
v1.6.8 Merge
Browse files Browse the repository at this point in the history
v1.6.8 Merge
  • Loading branch information
dirtycajunrice authored Apr 19, 2019
2 parents be2610f + 42925fe commit 32ec88a
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 18 deletions.
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
# Change Log

## [v1.6.7](https://github.com/Boerderij/Varken/tree/v1.6.7) (2019-04-18)
[Full Changelog](https://github.com/Boerderij/Varken/compare/1.6.6...v1.6.7)
## [v1.6.8](https://github.com/Boerderij/Varken/tree/v1.6.8) (2019-04-18)
[Full Changelog](https://github.com/Boerderij/Varken/compare/1.6.7...v1.6.8)

**Implemented enhancements:**

- \[Enhancement\] Only drop the invalid episodes from sonarr [\#121](https://github.com/Boerderij/Varken/issues/121)

**Merged pull requests:**

- v1.6.8 Merge [\#122](https://github.com/Boerderij/Varken/pull/122) ([DirtyCajunRice](https://github.com/DirtyCajunRice))

## [1.6.7](https://github.com/Boerderij/Varken/tree/1.6.7) (2019-04-18)
[Full Changelog](https://github.com/Boerderij/Varken/compare/1.6.6...1.6.7)

**Implemented enhancements:**

Expand Down
3 changes: 0 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ networks:
services:
influxdb:
hostname: influxdb
user: auser
image: influxdb
networks:
- internal
Expand All @@ -28,7 +27,6 @@ services:
restart: unless-stopped
grafana:
hostname: grafana
user: auser
image: grafana/grafana
networks:
- internal
Expand All @@ -40,7 +38,6 @@ services:
- GF_PATHS_DATA=/config/data
- GF_PATHS_LOGS=/config/logs
- GF_PATHS_PLUGINS=/config/plugins
- GF_PATHS_CONFIG=/config/grafana.ini
- GF_INSTALL_PLUGINS=grafana-piechart-panel,grafana-worldmap-panel
depends_on:
- influxdb
Expand Down
2 changes: 1 addition & 1 deletion varken/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = "1.6.7"
VERSION = "1.6.8"
BRANCH = 'master'
36 changes: 24 additions & 12 deletions varken/sonarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ def get_missing(self):
return

# Iteratively create a list of SonarrTVShow Objects from response json
try:
tv_shows = [SonarrTVShow(**show) for show in get]
except TypeError as e:
self.logger.error('TypeError has occurred : %s while creating SonarrTVShow structure', e)
tv_shows = []
for show in get:
try:
show_tuple = SonarrTVShow(**show)
tv_shows.append(show_tuple)
except TypeError as e:
self.logger.error('TypeError has occurred : %s while creating SonarrTVShow structure for show', e)
if not tv_shows:
return

# Add show to missing list if file does not exist
Expand Down Expand Up @@ -86,10 +90,14 @@ def get_future(self):
if not get:
return

try:
tv_shows = [SonarrTVShow(**show) for show in get]
except TypeError as e:
self.logger.error('TypeError has occurred : %s while creating SonarrTVShow structure', e)
tv_shows = []
for show in get:
try:
show_tuple = SonarrTVShow(**show)
tv_shows.append(show_tuple)
except TypeError as e:
self.logger.error('TypeError has occurred : %s while creating SonarrTVShow structure for show', e)
if not tv_shows:
return

for show in tv_shows:
Expand Down Expand Up @@ -136,10 +144,14 @@ def get_queue(self):
if not get:
return

try:
download_queue = [Queue(**show) for show in get]
except TypeError as e:
self.logger.error('TypeError has occurred : %s while creating Queue structure', e)
download_queue = []
for show in get:
try:
show_tuple = Queue(**show)
download_queue.append(show_tuple)
except TypeError as e:
self.logger.error('TypeError has occurred : %s while creating Queue structure', e)
if not download_queue:
return

for show in download_queue:
Expand Down

0 comments on commit 32ec88a

Please sign in to comment.