Skip to content

Commit

Permalink
shortened lines and added noqa tags
Browse files Browse the repository at this point in the history
  • Loading branch information
shitwolfymakes committed Jun 3, 2022
1 parent 46aec62 commit 8997c62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions arm/ripper/handbrake.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,13 @@ def handbrake_all(srcpath, basepath, logfile, job):
if track.length < int(cfg.arm_config["MINLENGTH"]):
# too short
logging.info(f"Track #{track.track_number} of {job.no_of_titles}. "
f"Length ({track.length}) is less than minimum length ({cfg.arm_config['MINLENGTH']}). Skipping")
f"Length ({track.length}) is less than minimum length ({cfg.arm_config['MINLENGTH']}). "
f"Skipping...")
elif track.length > int(cfg.arm_config["MAXLENGTH"]):
# too long
logging.info(f"Track #{track.track_number} of {job.no_of_titles}. "
f"Length ({track.length}) is greater than maximum length ({cfg.arm_config['MAXLENGTH']}). Skipping")
f"Length ({track.length}) is greater than maximum length ({cfg.arm_config['MAXLENGTH']}). "
f"Skipping...")
else:
# just right
logging.info(f"Processing track #{track.track_number} of {job.no_of_titles}. "
Expand Down
2 changes: 1 addition & 1 deletion arm/ripper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def scan_emby():

if cfg.arm_config["EMBY_REFRESH"]:
logging.info("Sending Emby library scan request")
url = f"http://{cfg.arm_config['EMBY_SERVER']}:{cfg.arm_config['EMBY_PORT']}/Library/Refresh?api_key={cfg.arm_config['EMBY_API_KEY']}"
url = f"http://{cfg.arm_config['EMBY_SERVER']}:{cfg.arm_config['EMBY_PORT']}/Library/Refresh?api_key={cfg.arm_config['EMBY_API_KEY']}" # noqa: E501
try:
req = requests.post(url)
if req.status_code > 299:
Expand Down
3 changes: 2 additions & 1 deletion arm/ui/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,8 @@ def get_abcde_cfg(abcde_cfg_file):

def get_git_revision_hash() -> str:
"""Get full hash of current git commit"""
return subprocess.check_output(['git', 'rev-parse', 'HEAD'], cwd=cfg.arm_config['INSTALLPATH']).decode('ascii').strip()
return subprocess.check_output(['git', 'rev-parse', 'HEAD'],
cwd=cfg.arm_config['INSTALLPATH']).decode('ascii').strip()


def get_git_revision_short_hash() -> str:
Expand Down

0 comments on commit 8997c62

Please sign in to comment.