Added track formatting into baseSong.
This commit is contained in:
parent
43f630d5d3
commit
3d54a752a4
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
# Byte-compiled / optimized / DLL files
|
||||
src/__pycache__/
|
||||
*__pycache__
|
||||
src/*.py[cod]
|
||||
src/*$py.class
|
||||
|
||||
|
@ -10,4 +10,7 @@ class song(object):
|
||||
self.artist = ""
|
||||
self.duration = ""
|
||||
self.size = 0
|
||||
self.url = ""
|
||||
self.url = ""
|
||||
|
||||
def format_track(self):
|
||||
return "{0}. {1}. {2}".format(self.title, self.duration, self.size)
|
@ -1,10 +1,10 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
import baseFile
|
||||
import re
|
||||
import json
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
from . import baseFile
|
||||
|
||||
class interface(object):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user