Skip to content

Commit

Permalink
Update YTR.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-self authored Nov 9, 2024
1 parent 3c217a3 commit 80dbd6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions YTR.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def create_readme():
except Exception as e:
print(f"Failed to create readme.txt: {str(e)}")

# DownloadThread handles video downloading and ringtone creation in separate threads

class DownloadThread(QThread):
update_signal = pyqtSignal(str)
download_complete_signal = pyqtSignal()
Expand All @@ -45,7 +45,7 @@ def run(self):
video_filename = self.get_video_filename(output_path)
if video_filename:
self.update_signal.emit(f"Video downloaded: {video_filename}")
create_readme() # Create the readme.txt after successful download
create_readme()
else:
self.update_signal.emit("Error: Video file not found.")
else:
Expand Down Expand Up @@ -97,13 +97,13 @@ def get_video_filename(self, output_path):

return None

# MainWindow handles the UI and connects user actions to the appropriate functions

class MainWindow(QMainWindow):
def __init__(self):
super().__init__()

self.setWindowTitle('YT Ringtones')
self.setWindowIcon(QIcon('ytd.icns')) # You can replace this with your own icon
self.setWindowIcon(QIcon('icon.icns'))
self.setFixedSize(380, 500)

self.url_input = QLineEdit(self)
Expand Down

0 comments on commit 80dbd6e

Please sign in to comment.