Define basic class layout, will come back to this
This commit is contained in:
parent
0bd828c6c5
commit
b12ea337bd
25
badwitch.py
25
badwitch.py
@ -11,7 +11,19 @@
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
class Library:
|
||||
# A big thing full of songs
|
||||
def __init__(self):
|
||||
return
|
||||
|
||||
class Song:
|
||||
# An item with metadata and a source
|
||||
def __init__(self, title, source):
|
||||
self.title = title or 'Untitled song'
|
||||
self.source = source or ''
|
||||
|
||||
class BadWitch:
|
||||
# Our program
|
||||
def __init__(self):
|
||||
# Set up arguments
|
||||
self.argparser = argparse.ArgumentParser(description='Manage a declarative music library through YouTube scraping')
|
||||
@ -30,5 +42,18 @@ class BadWitch:
|
||||
print(self.args.downloadall)
|
||||
print(self.args.verbose)
|
||||
|
||||
def load(self, library):
|
||||
# Load a library as an object
|
||||
return
|
||||
|
||||
def add(self, song):
|
||||
# Add a song to the library
|
||||
return
|
||||
|
||||
def remove(self):
|
||||
# Use keyword arguments here
|
||||
# Remove a song based on criterea
|
||||
return
|
||||
|
||||
badwitch = BadWitch()
|
||||
badwitch.execute()
|
||||
|
Loading…
x
Reference in New Issue
Block a user