mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
improve overall folder structure and update files according to structure
This commit is contained in:
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
@@ -18,12 +18,12 @@ from PySide6.QtWidgets import (
|
||||
from PySide6.QtGui import QIcon, QAction
|
||||
import darkdetect
|
||||
import threading
|
||||
from core.scraping.scrapers.uztracker import scrape_uztracker
|
||||
from core.scraping.scrapers.rutracker import scrape_rutracker
|
||||
from core.scraping.utils import get_magnet_link
|
||||
from core.downloading.download import start_client
|
||||
from core.downloading.download import add_magnet
|
||||
from core.downloading.aria2p_server import dlprogress, set_threads
|
||||
from core.data.scrapers.uztracker import scrape_uztracker
|
||||
from core.data.scrapers.rutracker import scrape_rutracker
|
||||
from core.data.utils import get_magnet_link
|
||||
from core.network.aria2_wrapper import start_client
|
||||
from core.network.aria2_wrapper import add_magnet
|
||||
from core.network.aria2_integration import dlprogress, set_threads
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
|
||||
self.searchbar.setPlaceholderText("Search for software...")
|
||||
self.searchbar.setClearButtonEnabled(True)
|
||||
self.searchbar.setMinimumHeight(30)
|
||||
self.searchbar.returnPressed.connect(lambda: self.run_thread(threading.Thread(target=self.return_pressed))) # Triggers scraping function thread on enter
|
||||
self.searchbar.returnPressed.connect(lambda: self.run_thread(threading.Thread(target=self.return_pressed))) # Triggers data function thread on enter
|
||||
|
||||
self.dlbutton = QtWidgets.QPushButton("Download")
|
||||
self.softwareList = QListWidget()
|
||||
@@ -226,7 +226,7 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
|
||||
item = self.softwareList.currentItem()
|
||||
if item is not None:
|
||||
if debug:
|
||||
print(f"Downloading {self.softwareList.currentItem().text()}")
|
||||
print(f"network {self.softwareList.currentItem().text()}")
|
||||
self.run_thread(threading.Thread(target=self.get_item_index, args=(self.softwareList.currentItem().text(), self.postnames, self.postlinks, debug)))
|
||||
else:
|
||||
if debug:
|
||||
@@ -1,4 +1,4 @@
|
||||
from .aria2p_server import run_aria2p
|
||||
from .aria2_integration import run_aria2p
|
||||
|
||||
def start_client():
|
||||
global aria2
|
||||
@@ -1,7 +1,7 @@
|
||||
from core.ui.gui import MainWindow
|
||||
from core.ui.gui import state_debug
|
||||
from core.ui.gui import pass_aria
|
||||
from core.downloading.aria2p_server import aria2server
|
||||
from core.interface.gui import MainWindow
|
||||
from core.interface.gui import state_debug
|
||||
from core.interface.gui import pass_aria
|
||||
from core.network.aria2_integration import aria2server
|
||||
from PySide6 import QtWidgets
|
||||
import qdarktheme
|
||||
import darkdetect
|
||||
|
||||
Reference in New Issue
Block a user