mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
refactor: update import paths and reorganize utility modules
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import requests
|
||||
from ..utils.state import state
|
||||
from core.utils.state import state
|
||||
|
||||
|
||||
def scrape_rutracker(search_text):
|
||||
|
||||
@@ -2,7 +2,7 @@ import requests
|
||||
import asyncio
|
||||
import aiohttp
|
||||
from bs4 import BeautifulSoup
|
||||
from ..utils.state import state
|
||||
from core.utils.state import state
|
||||
|
||||
|
||||
global url_uztracker
|
||||
|
||||
@@ -22,9 +22,9 @@ import threading
|
||||
import asyncio
|
||||
from core.data.scrapers.uztracker import scrape_uztracker
|
||||
from core.data.scrapers.rutracker import scrape_rutracker
|
||||
from core.data.utils.tracker import get_item_index
|
||||
from core.data.utils.settings import save_settings
|
||||
from core.data.utils.state import state
|
||||
from core.utils.tracker import get_item_index
|
||||
from core.utils.settings import save_settings
|
||||
from core.utils.state import state
|
||||
from core.network.aria2_integration import dlprogress
|
||||
|
||||
|
||||
@@ -231,7 +231,7 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
|
||||
print("No item selected for download.")
|
||||
# add gui notification for no item selected
|
||||
|
||||
|
||||
# this needs a cleanup
|
||||
def return_pressed(self):
|
||||
search_text = self.searchbar.text()
|
||||
if search_text == "":
|
||||
|
||||
Reference in New Issue
Block a user