mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-10 15:32:35 -07:00
Fix flake8 E265 block comment should start with '# '
This commit is contained in:
parent
5f633b931a
commit
a571fc3122
2 changed files with 6 additions and 6 deletions
|
@ -90,13 +90,13 @@ def find_imdbid(dir_name, input_name, omdb_api_key):
|
||||||
def category_search(input_directory, input_name, input_category, root, categories):
|
def category_search(input_directory, input_name, input_category, root, categories):
|
||||||
tordir = False
|
tordir = False
|
||||||
|
|
||||||
#try:
|
# try:
|
||||||
# input_name = input_name.encode(core.SYS_ENCODING)
|
# input_name = input_name.encode(core.SYS_ENCODING)
|
||||||
#except Exception:
|
# except Exception:
|
||||||
# pass
|
# pass
|
||||||
#try:
|
# try:
|
||||||
# input_directory = input_directory.encode(core.SYS_ENCODING)
|
# input_directory = input_directory.encode(core.SYS_ENCODING)
|
||||||
#except Exception:
|
# except Exception:
|
||||||
# pass
|
# pass
|
||||||
|
|
||||||
if input_directory is None: # =Nothing to process here.
|
if input_directory is None: # =Nothing to process here.
|
||||||
|
|
|
@ -20,9 +20,9 @@ def sanitize_name(name):
|
||||||
|
|
||||||
# remove leading/trailing periods and spaces
|
# remove leading/trailing periods and spaces
|
||||||
name = name.strip(' .')
|
name = name.strip(' .')
|
||||||
#try:
|
# try:
|
||||||
# name = name.encode(core.SYS_ENCODING)
|
# name = name.encode(core.SYS_ENCODING)
|
||||||
#except Exception:
|
# except Exception:
|
||||||
# pass
|
# pass
|
||||||
|
|
||||||
return name
|
return name
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue