mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-31 03:50:06 -07:00
Fix flake8 W293 blank line contains whitespace
This commit is contained in:
parent
0350521b87
commit
697df555ec
3 changed files with 9 additions and 9 deletions
|
@ -49,7 +49,7 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
|
|||
)
|
||||
|
||||
logger.postprocess('{0}'.format(r.text), section)
|
||||
|
||||
|
||||
if r.status_code not in [requests.codes.ok, requests.codes.created, requests.codes.accepted]:
|
||||
logger.error('Server returned status {0}'.format(r.status_code), section)
|
||||
return ProcessResult(
|
||||
|
|
|
@ -132,7 +132,7 @@ class NTMRotatingLogHandler(object):
|
|||
"""
|
||||
Returns a numbered log file name depending on i. If i==0 it just uses logName, if not it appends
|
||||
it to the extension (blah.log.3 for i == 3)
|
||||
|
||||
|
||||
i: Log number to ues
|
||||
"""
|
||||
|
||||
|
|
14
setup.py
14
setup.py
|
@ -24,18 +24,18 @@ setup(
|
|||
long_description="""
|
||||
nzbToMedia
|
||||
==========
|
||||
|
||||
|
||||
Efficient on demand post processing
|
||||
-----------------------------------
|
||||
|
||||
|
||||
A PVR app needs to know when a download is ready for post-processing. There are two methods:
|
||||
|
||||
|
||||
1. On-demand post-processing script (e.g. sabToSickBeard.py or nzbToMedia.py): A script in the downloader runs once at the end of the download job and notifies the PVR app that the download is complete.
|
||||
|
||||
|
||||
2. Continuous folder scanning: The PVR app frequently polls download folder(s) for completed downloads.
|
||||
|
||||
|
||||
On-demand is superior, for several reasons:
|
||||
|
||||
|
||||
1. The PVR app is notified only once, exactly when the download is ready for post-processing
|
||||
2. The PVR app does not have to wait for the next poll interval before it starts processing
|
||||
3. Continuous polling is not as efficient and is more stressful on low performance hardware
|
||||
|
@ -46,7 +46,7 @@ setup(
|
|||
8. On-demand scripts can be tweaked to allow for delays with slow hardware
|
||||
|
||||
nzbToMedia is an on-demand post-processing script and was created out of a demand for more efficient post-processing on low-performance hardware. Many features have been added so higher performance hardware can benefit too.
|
||||
|
||||
|
||||
Many issues that users have with folder scanning can be fixed by switching to on-demand. A whole class of support issues can be eliminated by using nzbToMedia.
|
||||
""",
|
||||
author='Clinton Hall',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue