Skip to content

Commit 683ac31

Browse files
v1.6.7 Merge
v1.6.7 Merge
2 parents 8877b7b + 5cdf780 commit 683ac31

File tree

6 files changed

+36
-8
lines changed

6 files changed

+36
-8
lines changed

CHANGELOG.md

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

3-
## [v1.6.6](https://github.com/Boerderij/Varken/tree/v1.6.6) (2019-03-11)
4-
[Full Changelog](https://github.com/Boerderij/Varken/compare/1.6.5...v1.6.6)
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)
5+
6+
**Implemented enhancements:**
7+
8+
- \[BUG\] Ombi null childRequest output [\#119](https://github.com/Boerderij/Varken/issues/119)
9+
- \[ENHANCEMENT\] Invalid entries in Sonarr's queue leaves varken unable to process the rest of the queue [\#117](https://github.com/Boerderij/Varken/issues/117)
10+
11+
**Merged pull requests:**
12+
13+
- v1.6.7 Merge [\#120](https://github.com/Boerderij/Varken/pull/120) ([DirtyCajunRice](https://github.com/DirtyCajunRice))
14+
15+
## [1.6.6](https://github.com/Boerderij/Varken/tree/1.6.6) (2019-03-12)
16+
[Full Changelog](https://github.com/Boerderij/Varken/compare/1.6.5...1.6.6)
517

618
**Fixed bugs:**
719

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ Key features:
4343
## Installation Guides
4444
Varken Installation guides can be found in the [wiki](https://github.com/Boerderij/Varken/wiki/Installation).
4545

46+
## Support
47+
Please read [Asking for Support](https://github.com/Boerderij/Varken/wiki/Asking-for-Support) before seeking support.
48+
49+
[Click here for quick access to discord support](http://cyborg.decreator.dev/channels/518970285773422592/530424560504537105/). No app or account needed!
50+
4651
### InfluxDB
4752
[InfluxDB Installation Documentation](https://docs.influxdata.com/influxdb/v1.7/introduction/installation/)
4853

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.6"
1+
VERSION = "1.6.7"
22
BRANCH = 'master'

varken/ombi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ def get_all_requests(self):
102102
hash_id = hashit(f'{show.id}{show.tvDbId}{show.title}')
103103

104104
# Denied = 0, Approved = 1, Completed = 2, Pending = 3
105-
if show.childRequests[0]['denied']:
105+
if show.childRequests[0].get('denied'):
106106
status = 0
107107

108-
elif show.childRequests[0]['approved'] and show.childRequests[0]['available']:
108+
elif show.childRequests[0].get('approved') and show.childRequests[0].get('available'):
109109
status = 2
110110

111-
elif show.childRequests[0]['approved']:
111+
elif show.childRequests[0].get('approved'):
112112
status = 1
113113

114114
else:

varken/sonarr.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,13 @@ def get_queue(self):
143143
return
144144

145145
for show in download_queue:
146-
sxe = f"S{show.episode['seasonNumber']:0>2}E{show.episode['episodeNumber']:0>2}"
146+
try:
147+
sxe = f"S{show.episode['seasonNumber']:0>2}E{show.episode['episodeNumber']:0>2}"
148+
except TypeError as e:
149+
self.logger.error('TypeError has occurred : %s while processing the sonarr queue. \
150+
Remove invalid queue entries.', e)
151+
continue
152+
147153
if show.protocol.upper() == 'USENET':
148154
protocol_id = 1
149155
else:

varken/tautulli.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ def get_activity(self):
8080
latitude = geodata.location.latitude
8181
longitude = geodata.location.longitude
8282

83+
if not geodata.city.name:
84+
location = '👽'
85+
else:
86+
location = geodata.city.name
87+
8388
decision = session.transcode_decision
8489
if decision == 'copy':
8590
decision = 'direct stream'
@@ -134,7 +139,7 @@ def get_activity(self):
134139
"quality_profile": session.quality_profile,
135140
"progress_percent": session.progress_percent,
136141
"region_code": geodata.subdivisions.most_specific.iso_code,
137-
"location": geodata.city.name,
142+
"location": location,
138143
"full_location": f'{geodata.subdivisions.most_specific.name} - {geodata.city.name}',
139144
"latitude": latitude,
140145
"longitude": longitude,

0 commit comments

Comments
 (0)