Skip to content

Commit

Permalink
🐛 Type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Aug 2, 2018
1 parent c0dde84 commit 0bfa504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extractors/ourbits.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class OurBits(NexusPHP):

def torrent_link(self, tid):
torrent_link = self.url_host + "/download.php?id={tid}&passkey={pk}".format(tid=tid, pk=self.passkey)
tmp_file = "/tmp/[TJUPT].{}.torrent".format(tid)
tmp_file = "/tmp/[OurBits].{}.torrent".format(tid)
with open(tmp_file, "wb") as torrent:
r = requests.get(torrent_link)
torrent.write(r.content)
Expand Down
2 changes: 1 addition & 1 deletion utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def title_clean(noext: str) -> str:
noext = re.sub("([25])\.1", r"\1_1", noext)
noext = re.sub("\.", " ", noext)
noext = re.sub("H_264", "H.264", noext)
noext = re.sub("[25]_1", r"\1.1", noext)
noext = re.sub("([25])_1", r"\1.1", noext)
return noext


Expand Down

0 comments on commit 0bfa504

Please sign in to comment.