forked from gaetbout/YoutubeDl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
youtubedl.py
34 lines (27 loc) · 925 Bytes
/
youtubedl.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/user/bin/env python3 -tt
# Imports
import sys
from window import *
from PyQt5 import QtGui, QtCore, QtWidgets, sip
# Cmd C:\Users\gaetb\AppData\Local\Programs\Python\Python36-32\Scripts\pyuic5.exe -x .\mainwindow.ui -o test.py
# Global variables
PLAYLIST_NAME = "https://www.youtube.com/playlist?list=PL-PHOurQ0Fdj8uFTqOQ51rk-6ae49N-Uz"
LIMIT_NAME_SIZE = 60
LIMIT_AUTHOR_SIZE = 40
PLAYLIST_ENTRY_DEFAULT = "Entrez le lien de votre playlist"
class Window(object):
# Front end Functions
def launchFront(self):
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
def main(self):
import os
self.launchFront()
#self.second()
#launchBack()
if __name__ == '__main__':
Window().main()