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
c5e43382
Commit
c5e43382
authored
Jan 29, 2011
by
Nic Wolfe
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of github.com:midgetspy/Sick-Beard into windows_binaries
parents
776b5c8e
89145a5a
Branches
Branches containing commit
Tags
build-477
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/hachoir_parser/parser_list.py
+1
-1
1 addition, 1 deletion
lib/hachoir_parser/parser_list.py
sickbeard/image_cache.py
+11
-2
11 additions, 2 deletions
sickbeard/image_cache.py
with
12 additions
and
3 deletions
lib/hachoir_parser/parser_list.py
+
1
−
1
View file @
c5e43382
...
@@ -198,7 +198,7 @@ class HachoirParserList(ParserList):
...
@@ -198,7 +198,7 @@ class HachoirParserList(ParserList):
return
self
.
parser_list
return
self
.
parser_list
todo
=
[]
todo
=
[]
module
=
__import__
(
"
hachoir_parser
"
)
module
=
__import__
(
"
lib.
hachoir_parser
"
)
for
attrname
in
dir
(
module
):
for
attrname
in
dir
(
module
):
attr
=
getattr
(
module
,
attrname
)
attr
=
getattr
(
module
,
attrname
)
if
isinstance
(
attr
,
types
.
ModuleType
):
if
isinstance
(
attr
,
types
.
ModuleType
):
...
...
This diff is collapsed.
Click to expand it.
sickbeard/image_cache.py
+
11
−
2
View file @
c5e43382
...
@@ -115,11 +115,17 @@ class ImageCache:
...
@@ -115,11 +115,17 @@ class ImageCache:
logger
.
log
(
u
"
Checking if we need any cache images for show
"
+
str
(
show_obj
.
tvdbid
),
logger
.
DEBUG
)
logger
.
log
(
u
"
Checking if we need any cache images for show
"
+
str
(
show_obj
.
tvdbid
),
logger
.
DEBUG
)
has_poster
=
self
.
has_poster
(
show_obj
.
tvdbid
)
has_banner
=
self
.
has_banner
(
show_obj
.
tvdbid
)
logger
.
log
(
u
"
has_poster:
"
+
str
(
has_poster
)
+
"
, has_banner:
"
+
str
(
has_banner
),
logger
.
DEBUG
)
# check if the images are already cached or not
# check if the images are already cached or not
need_images
=
{
self
.
POSTER
:
not
self
.
has_poster
(
show_obj
.
tvdbid
)
,
need_images
=
{
self
.
POSTER
:
not
has_poster
,
self
.
BANNER
:
not
self
.
has_banner
(
show_obj
.
tvdbid
)
,
self
.
BANNER
:
not
has_banner
,
}
}
logger
.
log
(
u
"
need_images:
"
+
str
(
need_images
),
logger
.
DEBUG
)
if
not
need_images
[
self
.
POSTER
]
and
not
need_images
[
self
.
BANNER
]:
if
not
need_images
[
self
.
POSTER
]
and
not
need_images
[
self
.
BANNER
]:
logger
.
log
(
u
"
No new cache images needed, not retrieving new ones
"
)
logger
.
log
(
u
"
No new cache images needed, not retrieving new ones
"
)
return
return
...
@@ -127,6 +133,7 @@ class ImageCache:
...
@@ -127,6 +133,7 @@ class ImageCache:
# check the show dir for images and use them
# check the show dir for images and use them
try
:
try
:
for
cur_provider
in
sickbeard
.
metadata_provider_dict
.
values
():
for
cur_provider
in
sickbeard
.
metadata_provider_dict
.
values
():
logger
.
log
(
u
"
Checking if we can use the show image from the
"
+
cur_provider
.
name
+
"
metadata
"
,
logger
.
DEBUG
)
if
ek
.
ek
(
os
.
path
.
isfile
,
cur_provider
.
get_poster_path
(
show_obj
)):
if
ek
.
ek
(
os
.
path
.
isfile
,
cur_provider
.
get_poster_path
(
show_obj
)):
cur_file_name
=
os
.
path
.
abspath
(
cur_provider
.
get_poster_path
(
show_obj
))
cur_file_name
=
os
.
path
.
abspath
(
cur_provider
.
get_poster_path
(
show_obj
))
cur_file_type
=
self
.
which_type
(
cur_file_name
)
cur_file_type
=
self
.
which_type
(
cur_file_name
)
...
@@ -146,3 +153,5 @@ class ImageCache:
...
@@ -146,3 +153,5 @@ class ImageCache:
if
cur_image_type
in
need_images
and
need_images
[
cur_image_type
]:
if
cur_image_type
in
need_images
and
need_images
[
cur_image_type
]:
self
.
_cache_image_from_tvdb
(
show_obj
,
cur_image_type
)
self
.
_cache_image_from_tvdb
(
show_obj
,
cur_image_type
)
logger
.
log
(
u
"
Done cache check
"
)
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