Skip to content

Instantly share code, notes, and snippets.

@Axel-Erfurt
Axel-Erfurt / Gtk3_PDF_Viewer.py
Created May 21, 2022
View PDF in python Gtk3
View Gtk3_PDF_Viewer.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import gi
gi.require_version('EvinceView', '3.0')
gi.require_version('EvinceDocument', '3.0')
gi.require_version('Gtk', '3.0')
gi.require_version('Gdk', '3.0')
from gi.repository import Gtk, Gdk
from gi.repository import EvinceDocument
from gi.repository import EvinceView
@Axel-Erfurt
Axel-Erfurt / PyQt6_PDFViewer.py
Created Mar 26, 2022
Show PDF with PyQt6 QWebengineView
View PyQt6_PDFViewer.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from PyQt6.QtCore import QUrl
from PyQt6.QtWidgets import QApplication, QMainWindow, QWidget
from PyQt6.QtWebEngineWidgets import QWebEngineView #, QWebEngineSettings
from os import path
class MainWindow(QMainWindow):
def __init__(self):
View hypnotix.m3u
#EXTM3U
#EXTINF:-1 tvg-name="Canal 26" tvg-logo="https://i.imgur.com/xDjOUuz.png" group-title="Argentina",Canal 26
https://live-edge01.telecentro.net.ar/live/smil:c26.smil/playlist.m3u8
#EXTINF:-1 tvg-name="LN+ Ⓨ" tvg-logo="https://i.imgur.com/vJYzGt1.png" group-title="Argentina",LN+ Ⓨ
https://youtu.be/ns8-5XKA0Ww
#EXTINF:-1 tvg-name="ABC" tvg-logo="https://i.imgur.com/5CVl5EF.png" group-title="Australia",ABC
https://c.mjh.nz/101002210221/
#EXTINF:-1 tvg-name="TVSN" tvg-logo="https://i.imgur.com/p3QCBOo.png" group-title="Australia",TVSN
https://tvsn-i.akamaihd.net/hls/live/261837/tvsn/tvsn_750.m3u8
#EXTINF:-1 tvg-name="ABC Me" tvg-logo="https://i.imgur.com/gBh54wY.png" group-title="Australia",ABC Me
View olympia.m3u
#EXTM3U
#EXTINF:1,NDR Olympia 1
https://ndrspezial-lh.akamaihd.net/i/spezial_1@430235/master.m3u8
#EXTINF:2,NDR Olympia 2
https://ndrspezial-lh.akamaihd.net/i/spezial_2@430236/master.m3u8
#EXTINF:3,NDR Olympia 3
https://ndrspezial-lh.akamaihd.net/i/spezial_3@430237/master.m3u8
#EXTINF:4,NDR Olympia 4
https://ndrspezial-lh.akamaihd.net/i/spezial_4@430238/master.m3u8
#EXTINF:5,NDR Olympia 5
View wilsberg.m3u
#EXTM3U
#EXTINF:0,Aus heiterem Himmel - Der Samstagskrimi [ZDF]
https://rodlzdf-a.akamaihd.net/none/zdf/21/05/210522_2015_sendung_wil/3/210522_2015_sendung_wil_a1a2_2360k_p35v15.mp4
#EXTINF:0,Überwachen und belohnen - Der Samstagskrimi [ZDF]
https://rodlzdf-a.akamaihd.net/none/zdf/21/02/210220_2015_sendung_wil/2/210220_2015_sendung_wil_a1a2_2360k_p35v15.mp4
#EXTINF:0,Wilsberg - Unser tägliches Brot - Der Samstagskrimi [ZDF]
https://rodlzdf-a.akamaihd.net/none/zdf/21/01/210102_2015_sendung_wil/3/210102_2015_sendung_wil_a1a2_2360k_p35v15.mp4
#EXTINF:0,Alles Lüge - Der Samstagskrimi [ZDF]
https://rodlzdf-a.akamaihd.net/none/zdf/20/11/201128_2015_sendung_wil/4/201128_2015_sendung_wil_a1a2_2360k_p35v15.mp4
#EXTINF:0,Vaterfreuden - Der Samstagskrimi [ZDF]
View PlutoTV_aktuell.m3u
#EXTM3U
#EXTINF:-1 tvg-name="Kids" group-title="Kids" tvg-logo="http://images.pluto.tv/channels/5ad9b648e738977e2c312131/solidLogoPNG.png" tvg-id="",Kids
https://service-stitcher.clusters.pluto.tv/v1/stitch/embed/hls/channel/5ad9b648e738977e2c312131/master.m3u8?deviceId=channel&deviceModel=web&deviceVersion=1.0&appVersion=1.0&deviceType=rokuChannel&deviceMake=rokuChannel&deviceDNT=1&advertisingId=channel&embedPartner=rokuChannel&appName=rokuchannel&is_lat=1&bmodel=bm1&content=channel&platform=web&tags=ROKU_CONTENT_TAGS&coppa=false&content_type=livefeed&rdid=channel&genre=ROKU_ADS_CONTENT_GENRE&content_rating=ROKU_ADS_CONTENT_RATING&studio_id=viacom&channel_id=channel
#EXTINF:-1 tvg-name="Animals+" group-title="Samsung" tvg-logo="http://images.pluto.tv/channels/5ad9b6f57ef2767e1846e59f/solidLogoPNG.png" tvg-id="",Animals+
https://service-stitcher.clusters.pluto.tv/v1/stitch/embed/hls/channel/5ad9b6f57ef2767e1846e59f/master.m3u8?deviceId=channel&deviceModel=web&deviceVersion=1.0&appVersion=1.0&deviceType=rokuCh
View myTVList.m3u
#EXTM3U
#EXTINF:-1,Das Erste
https://mcdn.daserste.de/daserste/de/master.m3u8
#EXTINF:-1,Das Erste SD
https://mcdn.daserste.de/daserste/de/master_640p_1328.m3u8
#EXTINF:-1,ZDF
http://zdf-hls-15.akamaized.net/hls/live/2016498/de/high/master.m3u8
#EXTINF:-1,ZDF SD
http://zdf-hls-15.akamaized.net/hls/live/2016498/de/low/master.m3u8
#EXTINF:-1,ZDF neo
@Axel-Erfurt
Axel-Erfurt / audioplayer
Created Oct 18, 2021
PyQt5 Audio Player
View audioplayer
#!/usr/bin/python3
from PyQt5.QtCore import (pyqtSignal, QAbstractItemModel,
QFileInfo, QModelIndex, Qt, QTime, QUrl, QSettings)
from PyQt5.QtGui import QIcon
from PyQt5.QtMultimedia import (QMediaContent, QMediaMetaData, QMediaPlayer, QMediaPlaylist)
from PyQt5.QtWidgets import (QApplication, QFileDialog,
QHBoxLayout, QLabel, QListView, QMessageBox, QPushButton,
QSlider, QStyle, QToolButton, QVBoxLayout, QWidget, QStatusBar)
import os
@Axel-Erfurt
Axel-Erfurt / OlympiaLiveStreams
Created Jul 31, 2021
Olympia 2021 Tokio Livestreams
View OlympiaLiveStreams
ARD Olympia 1
https://ndrspezial-lh.akamaihd.net/i/spezial_1@430235/master.m3u8
ARD Olympia 2
https://ndrspezial-lh.akamaihd.net/i/spezial_2@430236/master.m3u8
ARD Olympia 3
https://ndrspezial-lh.akamaihd.net/i/spezial_3@430237/master.m3u8
ARD Olympia 4
https://ndrspezial-lh.akamaihd.net/i/spezial_4@430238/master.m3u8
ARD Olympia 5
https://ndrspezial-lh.akamaihd.net/i/spezial_5@430239/master.m3u8
View XAppStatusicon.py
#!/usr/bin/python3
import gi
gi.require_versions({'Gtk': '3.0','XApp': '1.0'})
from gi.repository import Gtk, XApp
import warnings
warnings.filterwarnings("ignore")
class MyStatusIconApp: