Commit 94e71c82 authored by echel0n's avatar echel0n
Browse files

Fixed issue #88 - Show are truncated when show set in different language

parent e6e02375
# Changelog # Changelog
- * 7f4c026 - 2017-10-17: Added Anizb Newznab provider - * a0fa354 - 2017-10-17: Fixed issue #88 - Show are truncated when show set in different language
- * e6e0237 - 2017-10-17: Added Anizb Newznab provider
- * f45988b - 2017-10-17: Refactored Newznab provider code Refactored locations of static files and mako templates - * f45988b - 2017-10-17: Refactored Newznab provider code Refactored locations of static files and mako templates
- * 7aac26b - 2017-10-17: Refactored Newznab provider code Refactored locations of static files and mako templates - * 7aac26b - 2017-10-17: Refactored Newznab provider code Refactored locations of static files and mako templates
- * 6384aab - 2017-10-17: Release v9.1.39 - * 6384aab - 2017-10-17: Release v9.1.39
......
...@@ -529,10 +529,12 @@ class Tvdb: ...@@ -529,10 +529,12 @@ class Tvdb:
# translate if required to provided language # translate if required to provided language
if not self.config['language'] == self.config['api']['lang']: if not self.config['language'] == self.config['api']['lang']:
intl_episode_info = self._request('get',
self.config['api']['episodes'].format(id=sid),
params={'page': p})
for i, x in enumerate(episode_info): for i, x in enumerate(episode_info):
x.update((k, v) for k, v in self._request('get', x.update((k, v) for k, v in intl_episode_info['data'][i].iteritems() if v)
self.config['api']['episodes'].format(id=sid),
)['data'][i].iteritems() if v)
episode_info[i] = x episode_info[i] = x
episodes += episode_info episodes += episode_info
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment