-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ID-Based Return Fuctionality, Spotify Embeds added, File Restructure
- Loading branch information
1 parent
c5e2928
commit 22a12a9
Showing
6 changed files
with
60 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,3 @@ | |
|
||
CLIENT_ID = "" | ||
CLIENT_SECRET = "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
Class to describe how songs are displayed in the webapp | ||
""" | ||
|
||
class DisplaySong(): | ||
|
||
def __init__(self, name, id): | ||
self.name = name | ||
self.id = id | ||
self.iframe = self.getIFrameLink() | ||
|
||
def setIFrameLink(self): | ||
return format('<iframe src="https://open.spotify.com/embed/track/{self.id}}" width="300" height="80" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>') | ||
|
||
def getIFrameLink(self): | ||
return self.iframe | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.