Skip to content

Commit 221aefa

Browse files
Update lostfilm client add WEB-DLRip Link
1 parent efd975a commit 221aefa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clients/lostfilm_client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ def tag_with_HDTVRip_link(tag):
7070
return tag.name == 'a' and tag.has_attr('href') and 'HDTVRip' in tag.text
7171

7272

73+
def tag_with_WEBDLRip_link(tag):
74+
return tag.name == 'a' and tag.has_attr('href') and 'WEB-DLRip' in tag.text
75+
76+
7377
def get_redirect_url(torrent_mirror, series_id, lostfilm_lf_session, proxies):
7478
torrent_page = torrent_mirror + '/v_search.php?a=' + series_id
7579
cookies = {'lf_session': lostfilm_lf_session}
@@ -88,6 +92,8 @@ def get_torrent_url(redirect_url, proxies):
8892
item = soup.find(tag_with_720p_link)
8993
if item is None:
9094
item = soup.find(tag_with_HDTVRip_link)
95+
if item is None:
96+
item = soup.find(tag_with_WEBDLRip_link)
9197
torrent_url = item.attrs['href']
9298

9399
return torrent_url

0 commit comments

Comments
 (0)