✨
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from requests import get
|
||||
from requests import get, post
|
||||
from random import choice
|
||||
import io
|
||||
from math import floor
|
||||
@@ -41,7 +41,8 @@ class QBittorrent(Service):
|
||||
def __init__(self, ip: str, port: str, username: str, password: str) -> None:
|
||||
self.ip = ip
|
||||
self.port = port
|
||||
response = get(f"http://{ip}:{port}/api/v2/auth/login?username={username}&password={password}")
|
||||
data = {"username": username,"password": password}
|
||||
response = post(f"http://{ip}:{port}/api/v2/auth/login", data=data)
|
||||
self.logged_in = response.ok
|
||||
self.cookie = {"SID": response.cookies.values()[0]}
|
||||
|
||||
@@ -116,7 +117,7 @@ class BetterNetflix():
|
||||
|
||||
if "imdb" in picked_movie['ratings']:
|
||||
description += f"<:imdb:1301506320603676782> {picked_movie['ratings']['imdb']['value']}"
|
||||
description += "\u1CBC\u1CBC"
|
||||
description += "/10"
|
||||
|
||||
if "rottenTomatoes" in picked_movie['ratings']:
|
||||
rt_value = picked_movie['ratings']['rottenTomatoes']['value']
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 3.0 KiB |
Reference in New Issue
Block a user