Skip to content

Instantly share code, notes, and snippets.

@Axel-Erfurt
Axel-Erfurt / createApp_cxfreeze.py
Last active April 29, 2023 14:59
Gui for cxfreeze
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#############################################################################
from PyQt5.QtCore import (QFile, pyqtSignal, Qt, QMimeData, QProcess, QObject, QEvent)
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import (QApplication, QFileDialog, QMainWindow, QCheckBox,
QMessageBox, QHBoxLayout, QVBoxLayout, QWidget, QLabel, QMessageBox, QToolButton, QLineEdit)
from distutils.spawn import find_executable
import encodings
import sys
@Axel-Erfurt
Axel-Erfurt / PyQt5_Downloader.py
Last active November 1, 2023 21:51
PyQt5 Downloader
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
from PyQt5.QtWidgets import (QWidget, QPushButton, QLineEdit, QProgressBar, QApplication,
QVBoxLayout, QHBoxLayout, QLabel, QFileDialog)
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import QThread, pyqtSignal, QSettings, QStandardPaths
import queue #If this template is not loaded, pyinstaller may not be able to run the requests template after packaging
import requests
@Axel-Erfurt
Axel-Erfurt / PyQt5VideoPlayer
Last active November 1, 2023 22:27
PyQt5 VideoPlayer
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtGui import QPalette, QKeySequence, QIcon
from PyQt5.QtCore import QDir, Qt, QUrl, QSize, QPoint, QTime, QMimeData, QProcess, QEvent
from PyQt5.QtMultimedia import QMediaContent, QMediaPlayer, QMediaMetaData
from PyQt5.QtMultimediaWidgets import QVideoWidget
from PyQt5.QtWidgets import (QApplication, QFileDialog, QHBoxLayout, QLineEdit,
QPushButton, QSizePolicy, QSlider, QMessageBox, QStyle, QVBoxLayout,
QWidget, QShortcut, QMenu)
@Axel-Erfurt
Axel-Erfurt / getFolderNames.py
Created September 23, 2018 17:58
Linux User Folders (python)
from gi.repository import GLib
docs = GLib.get_user_special_dir(GLib.USER_DIRECTORY_DOCUMENTS)
desktop = GLib.get_user_special_dir(GLib.USER_DIRECTORY_DESKTOP)
pics = GLib.get_user_special_dir(GLib.USER_DIRECTORY_PICTURES)
videos = GLib.get_user_special_dir(GLib.USER_DIRECTORY_VIDEOS)
music = GLib.get_user_special_dir(GLib.USER_DIRECTORY_MUSIC)
downloads = GLib.get_user_special_dir(GLib.USER_DIRECTORY_DOWNLOAD)
public = GLib.get_user_special_dir(GLib.USER_DIRECTORY_PUBLIC_SHARE)
templates = GLib.get_user_special_dir(GLib.USER_DIRECTORY_TEMPLATES)
@Axel-Erfurt
Axel-Erfurt / normalize_movie_audio.py
Last active December 8, 2018 12:57
Normalize Audio in movie
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
import os
import unicodedata
from PyQt5.QtWidgets import QMainWindow, QApplication, QPushButton, QFileDialog, QLineEdit, QMessageBox, QComboBox, QPlainTextEdit, QProgressBar
from PyQt5.QtGui import QIcon, QFont, QPalette, QBrush, QColor, QPen
from PyQt5.QtCore import QSize, QEvent, QObject, QDir, QFileInfo, QProcess, Qt
from gi.repository import GLib
@Axel-Erfurt
Axel-Erfurt / TV_LiveStream.py
Last active December 9, 2018 15:37
TV LiveStream (German)
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtGui import QKeySequence, QIcon
from PyQt5.QtCore import Qt, QUrl, QSize, QPoint, QRect
from PyQt5.QtMultimedia import QMediaContent, QMediaPlayer
from PyQt5.QtMultimediaWidgets import QVideoWidget
from PyQt5.QtWidgets import (QApplication, QMessageBox, QVBoxLayout,
QWidget, QShortcut, QMenu, QToolTip, QPushButton)
from distutils.spawn import find_executable
@Axel-Erfurt
Axel-Erfurt / TVPlayer2.py
Last active December 10, 2018 22:28
Livestream TVPlayer
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#############################################################################
from PyQt5.QtCore import (QPoint, QRect, Qt, QUrl)
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import (QAction, QApplication, QMainWindow, QMessageBox, QMenu, QWidget)
from PyQt5.QtMultimedia import QMediaContent, QMediaPlayer
from PyQt5.QtMultimediaWidgets import QVideoWidget
import m3u8
@Axel-Erfurt
Axel-Erfurt / LiveStreamsDeutscheSender.py
Last active July 13, 2023 16:25
die aktuellen Livestreams der öffentlich rechtlichen Sender auslesen
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import requests
import json
url = "https://raw.githubusercontent.com/mediathekview/MServer/master/dist/live-streams.json"
data = requests.get(url).text
js = json.loads(data)
@Axel-Erfurt
Axel-Erfurt / ExclusiveRadio.m3u
Last active April 26, 2024 16:33
Exclusive Radio Channels
#EXTM3U
#EXTINF:1,Blues
http://streaming.exclusive.radio/er/blues/icecast.audio
#EXTINF:2,Calm
http://streaming.exclusive.radio/er/calm/icecast.audio
#EXTINF:3,Chart
http://streaming.exclusive.radio/er/chart/icecast.audio
#EXTINF:4,Classical
http://streaming.exclusive.radio/er/classical/icecast.audio
#EXTINF:5,Country
@Axel-Erfurt
Axel-Erfurt / ExclusiveRadio.txt
Last active August 12, 2020 07:57
ExclusiveRadio Liste für myRadio
-- Exclusive Radio Genres --
Blues,http://streaming.exclusive.radio/er/blues/icecast.audio
Classical,http://streaming.exclusive.radio/er/classical/icecast.audio
Country,http://streaming.exclusive.radio/er/country/icecast.audio
Easy,http://streaming.exclusive.radio/er/easy/icecast.audio
Folk,http://streaming.exclusive.radio/er/folk/icecast.audio
Jazz,http://streaming.exclusive.radio/er/jazz/icecast.audio
Motown,http://streaming.exclusive.radio/er/motown/icecast.audio
Rock,http://streaming.exclusive.radio/er/rock/icecast.audio
Soft Rock,http://streaming.exclusive.radio/er/softrock/icecast.audio