|
|
@ -2,6 +2,7 @@ import os, re
|
|
|
|
from datetime import datetime
|
|
|
|
from datetime import datetime
|
|
|
|
from modules import plex, util
|
|
|
|
from modules import plex, util
|
|
|
|
from modules.util import Failed, LimitReached, YAML
|
|
|
|
from modules.util import Failed, LimitReached, YAML
|
|
|
|
|
|
|
|
from plexapi.exceptions import BadRequest, NotFound
|
|
|
|
|
|
|
|
|
|
|
|
logger = util.logger
|
|
|
|
logger = util.logger
|
|
|
|
|
|
|
|
|
|
|
@ -454,8 +455,12 @@ class Operations:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
if len(batch_display) > 0:
|
|
|
|
if len(batch_display) > 0:
|
|
|
|
|
|
|
|
try:
|
|
|
|
item.saveEdits()
|
|
|
|
item.saveEdits()
|
|
|
|
logger.info(f"Batch Edits{batch_display}")
|
|
|
|
logger.info(f"Batch Edits{batch_display}")
|
|
|
|
|
|
|
|
except (NotFound, BadRequest):
|
|
|
|
|
|
|
|
logger.stacktrace()
|
|
|
|
|
|
|
|
logger.error("Batch Edits Failed")
|
|
|
|
|
|
|
|
|
|
|
|
if self.library.mass_poster_update or self.library.mass_background_update:
|
|
|
|
if self.library.mass_poster_update or self.library.mass_background_update:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|