Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sick-Beard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
Sick-Beard
Commits
6c71cd2b
Commit
6c71cd2b
authored
Apr 26, 2012
by
Nic Wolfe
Browse files
Options
Downloads
Plain Diff
Merge branch 'ignore-files' of
git://github.com/yaleman/Sick-Beard
into development
parents
180ce7d8
671a7537
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickbeard/postProcessor.py
+7
-2
7 additions, 2 deletions
sickbeard/postProcessor.py
with
7 additions
and
2 deletions
sickbeard/postProcessor.py
+
7
−
2
View file @
6c71cd2b
...
...
@@ -54,6 +54,7 @@ class PostProcessor(object):
EXISTS_SMALLER
=
3
DOESNT_EXIST
=
4
IGNORED_FILESTRINGS
=
[
"
/.AppleDouble/
"
,
"
.DS_Store
"
]
def
__init__
(
self
,
file_path
,
nzb_name
=
None
):
"""
Creates a new post processor with the given file path and optionally an NZB name.
...
...
@@ -699,6 +700,10 @@ class PostProcessor(object):
if
os
.
path
.
isdir
(
self
.
file_path
):
self
.
_log
(
u
"
File
"
+
self
.
file_path
+
"
seems to be a directory
"
)
return
False
for
ignore_file
in
self
.
IGNORED_FILESTRINGS
:
if
ignore_file
in
self
.
file_path
:
self
.
_log
(
u
"
File
"
+
self
.
file_path
+
"
is ignored type, skipping
"
)
return
False
# reset per-file stuff
self
.
in_history
=
False
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment