Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
deeffest authored Mar 1, 2024
1 parent e480639 commit bf9fa0a
Show file tree
Hide file tree
Showing 39 changed files with 480 additions and 283 deletions.
Binary file added core/__pycache__/about_dialog.cpython-39.pyc
Binary file not shown.
Binary file added core/__pycache__/alert_dialog.cpython-39.pyc
Binary file not shown.
Binary file added core/__pycache__/confirm_dialog.cpython-39.pyc
Binary file not shown.
Binary file added core/__pycache__/download_manager.cpython-39.pyc
Binary file not shown.
Binary file added core/__pycache__/input_dialog.cpython-39.pyc
Binary file not shown.
Binary file added core/__pycache__/main_window.cpython-39.pyc
Binary file not shown.
Binary file not shown.
Binary file added core/__pycache__/options_dialog.cpython-39.pyc
Binary file not shown.
Binary file added core/__pycache__/tray_icon.cpython-39.pyc
Binary file not shown.
Binary file added core/__pycache__/web_engine_page.cpython-39.pyc
Binary file not shown.
Binary file added core/__pycache__/web_engine_view.cpython-39.pyc
Binary file not shown.
3 changes: 1 addition & 2 deletions core/about_dialog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#about_dialog.py
from PyQt5.QtWidgets import QDialog
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon
Expand Down Expand Up @@ -31,7 +30,7 @@ def __init__(
self._init_connect()

def _init_content(self):
pass
self.BodyLabel_2.setText(self.version)

def _init_connect(self):
self.PushButton.clicked.connect(self.close)
Expand Down
1 change: 0 additions & 1 deletion core/alert_dialog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#alert_dialog.py
from PyQt5.QtWidgets import QDialog, QSizePolicy
from PyQt5.QtCore import Qt, QUrl
from PyQt5.QtGui import QIcon
Expand Down
1 change: 0 additions & 1 deletion core/confirm_dialog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#confirm_dialog.py
from PyQt5.QtWidgets import QDialog
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon
Expand Down
12 changes: 6 additions & 6 deletions core/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ QMenuBar{
color: white;
}
QMenuBar::item:selected{
background-color: rgb(65,65,65);
background-color: rgb(60,60,60);
}

QMenu {
background-color: rgb(43,43,43);
color: white;
border: 1px solid rgb(160,160,160);
border: 1px solid rgb(46,46,46);
padding: 2px 2px;
}
QMenu::icon {
Expand All @@ -22,7 +22,7 @@ QMenu::item {
margin: 0px;
}
QMenu::item:selected {
background-color: rgb(65,65,65);
background-color: rgb(60,60,60);
}
QMenu::item:disabled:selected {
background-color: rgb(53,53,53);
Expand All @@ -33,13 +33,13 @@ QMenu::item:disabled {
}
QMenu::separator {
height: 1px;
background-color: rgb(128,128,128);
background-color: rgb(64,64,64);
margin: 3px 3px;
}

QToolTip {
background-color: rgb(17,18,20);
background-color: rgb(44,44,44);
color: white;
border: 1px solid rgb(63,65,71);
border: 1px solid rgb(55,60,67);
padding: 3px 4px;
}
26 changes: 26 additions & 0 deletions core/download_manager.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from PyQt5.QtCore import pyqtSignal, QObject
from subprocess import Popen, PIPE

class DownloadManager(QObject):
downloadFinished = pyqtSignal(str)
downloadError = pyqtSignal(str)

def __init__(self, current_dir, settings):
super().__init__()
self.current_dir = current_dir
self.settings = settings

def download_external_process(self, url, download_path, download_type):
script_dir = self.settings.value("current_dir")
process = Popen(
[f'{self.current_dir}/core/download_script.exe',
url, download_path, download_type, script_dir],
stdout=PIPE,
stderr=PIPE
)
output, error = process.communicate()

if process.returncode == 0:
self.downloadFinished.emit(download_path)
else:
self.downloadError.emit(str(error))
Binary file modified core/download_script.exe
Binary file not shown.
1 change: 0 additions & 1 deletion core/input_dialog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#input_dialog.py
from PyQt5.QtWidgets import QDialog
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon
Expand Down
1 change: 1 addition & 0 deletions core/js/get_play_pause_state.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var video = document.getElementsByTagName('video')[0]; video.paused;
1 change: 1 addition & 0 deletions core/js/get_track_image.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
document.querySelector(".image.style-scope.ytmusic-player-bar").getAttribute("src")
1 change: 1 addition & 0 deletions core/js/next_track.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
document.querySelector(".next-button").click();
2 changes: 2 additions & 0 deletions core/js/play_pause_track.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var video = document.getElementsByTagName('video')[0];
if (video.paused) video.play(); else video.pause();
1 change: 1 addition & 0 deletions core/js/previous_track.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
document.querySelector(".previous-button").click();
Loading

0 comments on commit bf9fa0a

Please sign in to comment.