[17] fix resolution default

pull/1288/head
meisnate12 2 years ago
parent ddeb8f47ce
commit 1737f3c492

@ -1 +1 @@
1.18.3-develop16 1.18.3-develop17

@ -49,18 +49,18 @@ external_templates:
- IMAX - IMAX
- Remastered - Remastered
- Criterion - Criterion
horizontal_offset: final_horizontal_offset:
default: 15 default: <<horizontal_offset>>
conditions: conditions:
- type: resolution_dovetail - type: resolution_dovetail
value: 45 value: <<horizontal_offset+30>>
vertical_offset: vertical_offset:
default: 15 default: <<vertical_offset>>
conditions: conditions:
- type: edition_dovetail - type: edition_dovetail
value: 79 value: <<vertical_offset+64>>
- type: resolution_dovetail - type: resolution_dovetail
value: 45 value: <<vertical_offset+30>>
back_width: back_width:
conditions: conditions:
- type: [edition, resolution, edition_dovetail] - type: [edition, resolution, edition_dovetail]
@ -99,6 +99,8 @@ external_templates:
value: edition value: edition
- type: [resolution, resolution_dovetail] - type: [resolution, resolution_dovetail]
value: resolution value: resolution
horizontal_offset: 15
vertical_offset: 15
horizontal_align: left horizontal_align: left
vertical_align: top vertical_align: top
@ -120,13 +122,11 @@ templates:
optional: optional:
- search - search
- use_<<key>> - use_<<key>>
- use_<<key_<<alt>>
- use_edition - use_edition
- allowed_libraries - allowed_libraries
allowed_library_types: allowed_library_types:
- <<use_<<key>>>> - <<use_<<key>>>>
- <<use_edition>> - <<use_edition>>
- <<use_<<key>>_<<alt>>>>
- <<allowed_libraries>> - <<allowed_libraries>>
ignore_blank_results: true ignore_blank_results: true
plex_all: true plex_all: true
@ -163,12 +163,14 @@ templates:
optional: optional:
- all - all
- use_<<key>> - use_<<key>>
- use_<<key>>_<<alt>>
- use_<<alt>> - use_<<alt>>
- use_resolution - use_resolution
- allowed_libraries - allowed_libraries
allowed_library_types: allowed_library_types:
- <<use_<<key>>>> - <<use_<<key>>>>
- <<use_<<alt>>>> - <<use_<<alt>>>>
- <<use_<<key>>_<<alt>>>>
- <<allowed_libraries>> - <<allowed_libraries>>
- <<use_resolution>> - <<use_resolution>>
ignore_blank_results: true ignore_blank_results: true

@ -16,9 +16,11 @@ templates:
font_size_<<key>>: <<font_size>> font_size_<<key>>: <<font_size>>
font_color_<<key>>: <<font_color>> font_color_<<key>>: <<font_color>>
font_style_<<key>>: <<font_style>> font_style_<<key>>: <<font_style>>
horizontal_offset_<<key>>: <<horizontal_offset>> final_horizontal_offset: <<horizontal_offset>>
horizontal_offset_<<key>>: <<final_horizontal_offset>>
horizontal_align_<<key>>: <<horizontal_align>> horizontal_align_<<key>>: <<horizontal_align>>
vertical_offset_<<key>>: <<vertical_offset>> final_vertical_offset: <<vertical_offset>>
vertical_offset_<<key>>: <<final_vertical_offset>>
vertical_align_<<key>>: <<vertical_align>> vertical_align_<<key>>: <<vertical_align>>
stroke_width_<<key>>: <<stroke_width>> stroke_width_<<key>>: <<stroke_width>>
stroke_color_<<key>>: <<stroke_color>> stroke_color_<<key>>: <<stroke_color>>

@ -106,7 +106,6 @@ class TVDb:
tvdb_id, _, _ = self.get_id_from_url(tvdb_url, is_movie=is_movie) tvdb_id, _, _ = self.get_id_from_url(tvdb_url, is_movie=is_movie)
return TVDbObj(self, tvdb_id, is_movie=is_movie) return TVDbObj(self, tvdb_id, is_movie=is_movie)
@retry(stop_max_attempt_number=6, wait_fixed=10000, retry_on_exception=util.retry_if_not_failed) @retry(stop_max_attempt_number=6, wait_fixed=10000, retry_on_exception=util.retry_if_not_failed)
def get_request(self, tvdb_url): def get_request(self, tvdb_url):
return self.config.get_html(tvdb_url, headers=util.header(self.language)) return self.config.get_html(tvdb_url, headers=util.header(self.language))

Loading…
Cancel
Save