Remove test function
This commit is contained in:
parent
ad3ebe9a77
commit
e6da96f2e7
38
badwitch.py
38
badwitch.py
@ -99,7 +99,7 @@ class BadWitch:
|
|||||||
self.argparser.add_argument('-d', '--debug', action='store_true',
|
self.argparser.add_argument('-d', '--debug', action='store_true',
|
||||||
help='Show even more status messages')
|
help='Show even more status messages')
|
||||||
self.argparser.add_argument('action', metavar='action', nargs='?',
|
self.argparser.add_argument('action', metavar='action', nargs='?',
|
||||||
choices=['download', 'list', 'test'],
|
choices=['download', 'list'],
|
||||||
help='Action to perform on the library')
|
help='Action to perform on the library')
|
||||||
# Set up appdirs
|
# Set up appdirs
|
||||||
self.dirs = AppDirs('badwitch', 'rehashedsalt')
|
self.dirs = AppDirs('badwitch', 'rehashedsalt')
|
||||||
@ -129,42 +129,6 @@ class BadWitch:
|
|||||||
+ ' - ' + song
|
+ ' - ' + song
|
||||||
+ ' by ' + songcontent['artist'])
|
+ ' by ' + songcontent['artist'])
|
||||||
return
|
return
|
||||||
elif self.args.action == 'test':
|
|
||||||
# Set up a test album
|
|
||||||
lib.albums['Bad Witch'] = {
|
|
||||||
'Shit Mirror': {
|
|
||||||
'track': 1,
|
|
||||||
'artist': 'Nine Inch Nails',
|
|
||||||
'source': 'https://www.youtube.com/watch?v=yeqjz5mXrLQ'
|
|
||||||
},
|
|
||||||
'Ahead of Ourselves': {
|
|
||||||
'track': 2,
|
|
||||||
'artist': 'Nine Inch Nails',
|
|
||||||
'source': 'https://www.youtube.com/watch?v=4Ab1O-i4ep4'
|
|
||||||
},
|
|
||||||
'Play the Goddamned Part': {
|
|
||||||
'track': 3,
|
|
||||||
'artist': 'Nine Inch Nails',
|
|
||||||
'source': 'https://www.youtube.com/watch?v=85UgvBkMfr8'
|
|
||||||
},
|
|
||||||
'God Break Down the Door': {
|
|
||||||
'track': 4,
|
|
||||||
'artist': 'Nine Inch Nails',
|
|
||||||
'source': 'https://www.youtube.com/watch?v=eeJ_DzRJUI4'
|
|
||||||
},
|
|
||||||
'I\'m Not From This World': {
|
|
||||||
'track': 5,
|
|
||||||
'artist': 'Nine Inch Nails',
|
|
||||||
'source': 'https://www.youtube.com/watch?v=9fjbcSUSt9w'
|
|
||||||
},
|
|
||||||
'Over and Out': {
|
|
||||||
'track': 6,
|
|
||||||
'artist': 'Nine Inch Nails',
|
|
||||||
'source': 'https://www.youtube.com/watch?v=h-XlN3N2fis'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
lib.save()
|
|
||||||
return
|
|
||||||
|
|
||||||
badwitch = BadWitch()
|
badwitch = BadWitch()
|
||||||
badwitch.execute()
|
badwitch.execute()
|
||||||
|
Reference in New Issue
Block a user