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
acff5085
Commit
acff5085
authored
12 years ago
by
Luca
Browse files
Options
Downloads
Patches
Plain Diff
Fix unicode characters as well as other unicode issues
parent
9d647e8d
No related branches found
No related tags found
Loading
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
sickbeard/helpers.py
+4
-3
4 additions, 3 deletions
sickbeard/helpers.py
sickbeard/show_name_helpers.py
+6
-5
6 additions, 5 deletions
sickbeard/show_name_helpers.py
with
10 additions
and
8 deletions
sickbeard/helpers.py
+
4
−
3
View file @
acff5085
...
...
@@ -609,7 +609,8 @@ def chmodAsParent(childPath):
logger
.
log
(
u
"
No parent path provided in
"
+
childPath
+
"
, unable to get permissions from it
"
,
logger
.
DEBUG
)
return
parentMode
=
stat
.
S_IMODE
(
os
.
stat
(
parentPath
)[
stat
.
ST_MODE
])
parentPathStat
=
ek
.
ek
(
os
.
stat
,
parentPath
)
parentMode
=
stat
.
S_IMODE
(
parentPathStat
[
stat
.
ST_MODE
])
childPathStat
=
ek
.
ek
(
os
.
stat
,
childPath
)
childPath_mode
=
stat
.
S_IMODE
(
childPathStat
[
stat
.
ST_MODE
])
...
...
@@ -647,7 +648,7 @@ def fixSetGroupID(childPath):
return
parentPath
=
ek
.
ek
(
os
.
path
.
dirname
,
childPath
)
parentStat
=
os
.
stat
(
parentPath
)
parentStat
=
ek
.
ek
(
os
.
stat
,
parentPath
)
parentMode
=
stat
.
S_IMODE
(
parentStat
[
stat
.
ST_MODE
])
if
parentMode
&
stat
.
S_ISGID
:
...
...
This diff is collapsed.
Click to expand it.
sickbeard/show_name_helpers.py
+
6
−
5
View file @
acff5085
...
...
@@ -16,18 +16,18 @@
# You should have received a copy of the GNU General Public License
# along with Sick Beard. If not, see <http://www.gnu.org/licenses/>.
import
sickbeard
import
re
import
datetime
import
sickbeard
from
sickbeard.common
import
countryList
from
sickbeard.helpers
import
sanitizeSceneName
from
sickbeard.scene_exceptions
import
get_scene_exceptions
from
sickbeard
import
logger
from
sickbeard
import
db
import
re
import
datetime
from
name_parser.parser
import
NameParser
,
InvalidNameException
from
lib.unidecode
import
unidecode
resultFilters
=
[
"
sub(pack|s|bed)
"
,
"
nlsub(bed|s)?
"
,
"
swesub(bed)?
"
,
"
(dir|sample|nfo)fix
"
,
"
sample
"
,
"
(dvd)?extras
"
,
...
...
@@ -206,6 +206,7 @@ def isGoodResult(name, show, log=True):
all_show_names
=
allPossibleShowNames
(
show
)
showNames
=
map
(
sanitizeSceneName
,
all_show_names
)
+
all_show_names
showNames
+=
map
(
unidecode
,
all_show_names
)
for
curName
in
set
(
showNames
):
escaped_name
=
re
.
sub
(
'
\\\\
[
\\
s.-]
'
,
'
\W+
'
,
re
.
escape
(
curName
))
...
...
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