Added track formatting into baseSong.

This commit is contained in:
Manuel Cortez 2018-01-24 17:41:18 -06:00
parent 43f630d5d3
commit 3d54a752a4
3 changed files with 6 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
# Byte-compiled / optimized / DLL files
src/__pycache__/
*__pycache__
src/*.py[cod]
src/*$py.class

View File

@ -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)

View File

@ -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):