From 0690a5d242e760b3d62b080ba93e8c434ed6ea1e Mon Sep 17 00:00:00 2001 From: death916 Date: Tue, 23 Dec 2025 03:46:12 -0800 Subject: [PATCH] docstrings --- src/c2cscrape.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/c2cscrape.py b/src/c2cscrape.py index 13e1e61..85940ea 100644 --- a/src/c2cscrape.py +++ b/src/c2cscrape.py @@ -40,6 +40,10 @@ class TorrentScrape: return None def get_torrent_link(self): + """ + Get torrent link from page + Returns a list of torrent links + """ links = [] page = self.get_torrent_page() if not page: @@ -92,7 +96,7 @@ class Qbittorrent: self.port = 8080 def get_credentials(self): - # Get qbittorrent credentials from .env file + """Get qbittorrent credentials from .env file""" load_dotenv() # gets credentials from env file self.username = os.getenv("QB_USERNAME") self.password = os.getenv("QB_PASSWORD") @@ -103,6 +107,10 @@ class Qbittorrent: raise ValueError("QB_USERNAME and QB_PASSWORD must be set in .env file") def add_torrent(self, links): + """ + Add torrents to qbittorrent + Takes a list of links and adds them to qbittorrent + """ conn_info = dict( host=self.host, port=self.port,