Skip to content

Commit

Permalink
🐛 (OurBits) Fix No extra url.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Aug 31, 2018
1 parent 71f3467 commit 61f903e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extractors/ourbits.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def torrent_clone(self, tid) -> dict:

body = details_bs.body
for pat, type_ in [("://movie.douban.com/subject", "dburl"), ("://www.imdb.com/title/tt", "url")]:
a_another = body.find("a", href=re.compile(pat))
return_dict[type_] = a_another.get_text() if a_another else ""
a_another = body.find("a", href=re.compile(re.escape(pat)))
return_dict[type_] = a_another.get("href") if a_another else ""

# Remove Quota First
kdescr = details_bs.find("div", id="kdescr")
Expand Down

0 comments on commit 61f903e

Please sign in to comment.