Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SiCKRAGE
sickrage
Commits
fbc88147
Commit
fbc88147
authored
Aug 30, 2018
by
echel0n
Browse files
Removed unrequired logging from AniDB module
parent
f11067d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
changelog.md
View file @
fbc88147
# Changelog
-
*
1ad5bd8 - 2018-08-29: Release v9.3.64
-
*
313bbde - 2018-08-30: Removed unrequired logging from AniDB module
-
*
dc90396 - 2018-08-29: Release v9.3.64
-
*
0c2e95d - 2018-08-27: Release v9.3.63
-
*
9e66cf5 - 2018-08-27: Fixed javascript issue when adding existing shows
-
*
6b01822 - 2018-08-27: Release v9.3.62
...
...
sickrage/libs/adba/__init__.py
View file @
fbc88147
...
...
@@ -147,7 +147,6 @@ class Connection(threading.Thread):
def
_reAuthenticate
(
self
):
if
self
.
_username
and
self
.
_password
:
self
.
log
(
"auto re authenticating !"
)
resp
=
self
.
auth
(
self
.
_username
,
self
.
_password
)
if
resp
.
rescode
not
in
(
'500'
):
return
True
...
...
@@ -156,11 +155,9 @@ class Connection(threading.Thread):
def
_keep_alive
(
self
):
self
.
lastKeepAliveCheck
=
time
()
self
.
log
(
"auto check !"
)
# check every 30 minutes if the session is still valid
# if not reauthenticate
if
self
.
lastAuth
and
time
()
-
self
.
lastAuth
>
1800
:
self
.
log
(
"auto uptime !"
)
self
.
uptime
()
# this will update the self.link.session and will refresh the session if it is still alive
if
self
.
authed
():
# if we are authed we set the time
...
...
@@ -171,7 +168,6 @@ class Connection(threading.Thread):
# issue a ping every 20 minutes after the last package
# this ensures the connection will be kept alive
if
self
.
link
.
lastpacket
and
time
()
-
self
.
link
.
lastpacket
>
1200
:
self
.
log
(
"auto ping !"
)
self
.
ping
()
...
...
@@ -192,20 +188,13 @@ class Connection(threading.Thread):
mtu - maximum transmission unit (max packet size) (default: 1400)
"""
self
.
log
(
"ok1"
)
if
self
.
keepAlive
:
self
.
log
(
"ok2"
)
self
.
_username
=
username
self
.
_password
=
password
if
self
.
is_alive
()
==
False
:
self
.
log
(
"You wanted to keep this thing alive!"
)
if
self
.
_iamALIVE
==
False
:
self
.
log
(
"Starting thread now..."
)
self
.
start
()
self
.
_iamALIVE
=
True
else
:
self
.
log
(
"not starting thread seams like it is already running. this must be a _reAuthenticate"
)
self
.
lastAuth
=
time
()
return
self
.
handle
(
AuthCommand
(
username
,
password
,
3
,
self
.
clientname
,
self
.
clientver
,
nat
,
1
,
'utf8'
,
mtu
),
callback
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment