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
b5943da1
Commit
b5943da1
authored
Nov 16, 2014
by
raver2046
Browse files
Options
Downloads
Patches
Plain Diff
maj du filtre de recherches libertalia
parent
3283d8df
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickbeard/providers/libertalia.py
+21
-18
21 additions, 18 deletions
sickbeard/providers/libertalia.py
with
21 additions
and
18 deletions
sickbeard/providers/libertalia.py
+
21
−
18
View file @
b5943da1
# -*- coding: latin-1 -*-
# -*- coding: latin-1 -*-
# Author: Raver2046
<raver2046@gmail.com>
# Author: Raver2046
# based on tpi.py
# based on tpi.py
# URL: http://code.google.com/p/sickbeard/
# URL: http://code.google.com/p/sickbeard/
#
#
...
@@ -53,15 +53,15 @@ class LIBERTALIAProvider(generic.TorrentProvider):
...
@@ -53,15 +53,15 @@ class LIBERTALIAProvider(generic.TorrentProvider):
if
audio_lang
==
"
en
"
and
french
==
None
:
if
audio_lang
==
"
en
"
and
french
==
None
:
results
.
append
(
urllib
.
urlencode
(
{
results
.
append
(
urllib
.
urlencode
(
{
'
name
'
:
searchString
'
name
'
:
searchString
}
)
+
"
*VO*&cat%5B%5D=9
"
)
}
)
+
"
*VO*&cat%5B%5D=9
&[PARAMSTR]=
"
+
searchString
+
"
VO
"
)
elif
audio_lang
==
"
fr
"
or
french
:
elif
audio_lang
==
"
fr
"
or
french
:
results
.
append
(
urllib
.
urlencode
(
{
results
.
append
(
urllib
.
urlencode
(
{
'
name
'
:
searchString
'
name
'
:
searchString
}
)
+
"
*FRENCH*&cat%5B%5D=9
"
)
}
)
+
"
*FRENCH*&cat%5B%5D=9
&[PARAMSTR]=
"
+
searchString
+
"
FRENCH
"
)
else
:
else
:
results
.
append
(
urllib
.
urlencode
(
{
results
.
append
(
urllib
.
urlencode
(
{
'
name
'
:
searchString
'
name
'
:
searchString
}
)
+
"
&cat%5B%5D=9
"
)
}
)
+
"
&cat%5B%5D=9
&[PARAMSTR]=
"
+
searchString
)
return
results
return
results
def
_get_season_search_strings
(
self
,
show
,
season
):
def
_get_season_search_strings
(
self
,
show
,
season
):
...
@@ -153,10 +153,13 @@ class LIBERTALIAProvider(generic.TorrentProvider):
...
@@ -153,10 +153,13 @@ class LIBERTALIAProvider(generic.TorrentProvider):
link
=
columns
.
find
(
"
a
"
,
href
=
re
.
compile
(
"
torrents
"
))
link
=
columns
.
find
(
"
a
"
,
href
=
re
.
compile
(
"
torrents
"
))
if
link
:
if
link
:
title
=
link
.
text
title
=
link
.
text
logger
.
log
(
u
"
LIBERTALIA TITLE TEMP:
"
+
title
,
logger
.
DEBUG
)
recherched
=
searchUrl
.
split
(
"
&[PARAMSTR]=
"
)[
1
]
recherched
=
recherched
.
replace
(
"
"
,
"
(.*)
"
)
logger
.
log
(
u
"
LIBERTALIA TITLE :
"
+
title
,
logger
.
DEBUG
)
logger
.
log
(
u
"
LIBERTALIA CHECK MATCH :
"
+
recherched
,
logger
.
DEBUG
)
#downloadURL = self.url + "/" + row.find("a",href=re.compile("torrent_pass"))['href']
#downloadURL = self.url + "/" + row.find("a",href=re.compile("torrent_pass"))['href']
if
re
.
match
(
recherched
,
title
,
re
.
IGNORECASE
):
downloadURL
=
row
.
find
(
"
a
"
,
href
=
re
.
compile
(
"
torrent_pass
"
))[
'
href
'
]
downloadURL
=
row
.
find
(
"
a
"
,
href
=
re
.
compile
(
"
torrent_pass
"
))[
'
href
'
]
quality
=
Quality
.
nameQuality
(
title
)
quality
=
Quality
.
nameQuality
(
title
)
if
quality
==
Quality
.
UNKNOWN
and
title
:
if
quality
==
Quality
.
UNKNOWN
and
title
:
if
'
720p
'
not
in
title
.
lower
()
and
'
1080p
'
not
in
title
.
lower
():
if
'
720p
'
not
in
title
.
lower
()
and
'
1080p
'
not
in
title
.
lower
():
...
...
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