1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-22 07:42:24 +00:00

FIX: undeclared variable when using ComicRN script on non-windows OS

This commit is contained in:
evilhero 2019-10-09 21:30:15 -04:00
parent e350eca3ef
commit a1f844f5cd

View file

@ -13,6 +13,7 @@ except ImportError:
requests to bypass this in the future (i.e. pip install requests)''' requests to bypass this in the future (i.e. pip install requests)'''
use_requests = False use_requests = False
use_win32api = False
if platform.system() == 'Windows': if platform.system() == 'Windows':
try: try:
import win32api import win32api
@ -22,7 +23,6 @@ if platform.system() == 'Windows':
running a Windows-based OS, so it would benefit you to install it. It enables ComicRN to better running a Windows-based OS, so it would benefit you to install it. It enables ComicRN to better
work with file paths beyond the 260 character limit. Run "pip install pypiwin32".''' work with file paths beyond the 260 character limit. Run "pip install pypiwin32".'''
apc_version = "2.04" apc_version = "2.04"
def processEpisode(dirName, nzbName=None): def processEpisode(dirName, nzbName=None):