[44] small fixes

pull/1298/head
meisnate12 2 years ago
parent 8218a9e596
commit e4c60c4158

@ -1 +1 @@
1.18.3-develop43 1.18.3-develop44

@ -1,8 +1,8 @@
############################################################################## ##############################################################################
# "Based On..." Collections # # "Based On..." Collections #
# Created by Yozora, Bullmoose20, & Sohjiro # # Created by Yozora, Bullmoose20, & Sohjiro #
# EDITING THIS FILE MAY CAUSE PULLING NEW UPDATES TO FAIL # # EDITING THIS FILE MAY CAUSE PULLING NEW UPDATES TO FAIL #
# https://metamanager.wiki/en/latest/defaults/both/based.html # # https://metamanager.wiki/en/latest/defaults/both/based.html #
############################################################################## ##############################################################################
external_templates: external_templates:

@ -52,10 +52,15 @@ templates:
conditions: conditions:
- key: [ended, returning, canceled] - key: [ended, returning, canceled]
value: <<key>> value: <<key>>
last_days:
conditions:
- key: airing
last.exists: true
value: <<last>>
ignore_blank_results: true ignore_blank_results: true
plex_search: plex_search:
any: any:
episode_air_date: <<last>> episode_air_date: <<last_days>>
plex_all: <<all>> plex_all: <<all>>
filters: filters:
tmdb_status: <<tmdb>> tmdb_status: <<tmdb>>

@ -421,7 +421,7 @@ While `show_missing` is true items missing from collections will be displayed.
</table> </table>
## Only Filter Missing ## Only Filter Missing
Only items missing from a collection will be filtered Only items missing from a collection will be filtered. **Only specific filters can filter missing. See [Filters](../metadata/filters) for more information.**
* this can be used to filter which missing media items get sent to Sonarr/Radarr * this can be used to filter which missing media items get sent to Sonarr/Radarr
<table class="dualTable colwidths-auto align-default table"> <table class="dualTable colwidths-auto align-default table">

@ -1562,7 +1562,9 @@ class Plex(Library):
for part in media.parts: for part in media.parts:
test_number.extend([s.language for s in part.subtitleStreams()]) test_number.extend([s.language for s in part.subtitleStreams()])
elif filter_attr == "duration": elif filter_attr == "duration":
test_number = getattr(item, filter_actual) / 60000 test_number = getattr(item, filter_actual)
if test_number:
test_number /= 60000
else: else:
test_number = getattr(item, filter_actual) test_number = getattr(item, filter_actual)
if modifier in [".count_gt", ".count_gte", ".count_lt", ".count_lte"]: if modifier in [".count_gt", ".count_gte", ".count_lt", ".count_lte"]:

@ -472,7 +472,7 @@ def run_libraries(config):
for library in config.libraries: for library in config.libraries:
if library.skip_library: if library.skip_library:
logger.info("") logger.info("")
logger.separator(f"Skipping {library.name} Library") logger.separator(f"Skipping {library.original_mapping_name} Library")
continue continue
library_status[library.name] = {} library_status[library.name] = {}
try: try:
@ -480,10 +480,10 @@ def run_libraries(config):
plexapi.server.TIMEOUT = library.timeout plexapi.server.TIMEOUT = library.timeout
os.environ["PLEXAPI_PLEXAPI_TIMEOUT"] = str(library.timeout) os.environ["PLEXAPI_PLEXAPI_TIMEOUT"] = str(library.timeout)
logger.info("") logger.info("")
logger.separator(f"{library.name} Library") logger.separator(f"{library.original_mapping_name} Library")
logger.debug("") logger.debug("")
logger.debug(f"Mapping Name: {library.original_mapping_name}") logger.debug(f"Library Name: {library.name}")
logger.debug(f"Folder Name: {library.mapping_name}") logger.debug(f"Folder Name: {library.mapping_name}")
for ad in library.asset_directory: for ad in library.asset_directory:
logger.debug(f"Asset Directory: {ad}") logger.debug(f"Asset Directory: {ad}")
@ -559,7 +559,7 @@ def run_libraries(config):
config.Cache.update_list_ids(list_key, [(i.ratingKey, i.guid) for i in temp_items]) config.Cache.update_list_ids(list_key, [(i.ratingKey, i.guid) for i in temp_items])
if not library.is_music: if not library.is_music:
logger.info("") logger.info("")
logger.separator(f"Mapping {library.name} Library", space=False, border=False) logger.separator(f"Mapping {library.original_mapping_name} Library", space=False, border=False)
logger.info("") logger.info("")
library.map_guids(temp_items) library.map_guids(temp_items)
library_status[library.name]["Library Loading and Mapping"] = str(datetime.now() - time_start).split('.')[0] library_status[library.name]["Library Loading and Mapping"] = str(datetime.now() - time_start).split('.')[0]

Loading…
Cancel
Save