From 5240f3eb34da968c09feee146923e852503dab19 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Wed, 16 Nov 2022 11:22:24 +0100 Subject: [PATCH] added superclass for download sources --- src/music_kraken/audio_source/sources/source.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/music_kraken/audio_source/sources/source.py diff --git a/src/music_kraken/audio_source/sources/source.py b/src/music_kraken/audio_source/sources/source.py new file mode 100644 index 0000000..d92860d --- /dev/null +++ b/src/music_kraken/audio_source/sources/source.py @@ -0,0 +1,15 @@ +from typing import Tuple + +""" +The class "Source" is the superclass every class for specific audio +sources inherits from. This gives the advantage of a consistent +calling of the functions do search for a song and to download it. +""" + + +class Source: + def __init__(self): + pass + + def get_source(self, row) -> Tuple[str, str]: + return "", ""