diff --git a/data/interfaces/default/_inc_footer.tmpl b/data/interfaces/default/_inc_footer.tmpl new file mode 100644 index 00000000..9bf2eafe --- /dev/null +++ b/data/interfaces/default/_inc_footer.tmpl @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/data/interfaces/default/_inc_header.tmpl b/data/interfaces/default/_inc_header.tmpl new file mode 100644 index 00000000..0468460c --- /dev/null +++ b/data/interfaces/default/_inc_header.tmpl @@ -0,0 +1,37 @@ +#attr title = "" +#attr rootPath = "" +#attr scripts = "" +#attr styles = "" + + + Headphones $title + + + + + + + + + +
+ + +
+
+
+
\ No newline at end of file diff --git a/data/interfaces/default/albumPage.tmpl b/data/interfaces/default/albumPage.tmpl new file mode 100644 index 00000000..66b9f4d1 --- /dev/null +++ b/data/interfaces/default/albumPage.tmpl @@ -0,0 +1,45 @@ +#attr $albumASIN = "" +#attr $albumTitle = "" +#attr $albumID = "" +#attr $artitstID = "" +#attr $artistName = "" +#import os.path +#import time +#include os.path.abspath($appPath+"/data/interfaces/default/_inc_header.tmpl") + + + + + + + + + + + + #for $track in $tracks + + + + + + #end for +
+ #if $albumASIN: + +
+ #end if +
+ ${artistName} -${albumTitle}
+ Download
+
Track #Track TitleDuration
${track[7]} + ${track[3]}(link) + + #try + #echo time.strftime("%M:%S", time.gmtime(int($track[4])/1000)) + #except + n/a + #end try +
+ +#include os.path.abspath($appPath+"/data/interfaces/default/_inc_footer.tmpl") \ No newline at end of file diff --git a/data/interfaces/default/artistInfo.tmpl b/data/interfaces/default/artistInfo.tmpl new file mode 100644 index 00000000..ae8480ae --- /dev/null +++ b/data/interfaces/default/artistInfo.tmpl @@ -0,0 +1,13 @@ +#attr $artistName = "" +#attr $artistUuid = "" +#attr $releaseGroups = [] +#import os.path +#include os.path.abspath($appPath+"/data/interfaces/default/_inc_header.tmpl") + Artist Name: $artistName
+ Unique ID: $artistUuid
+
+ Albums:
+ #for $releaseGroup in $releaseGroups: + $releaseGroup
+ #end for +#include os.path.abspath($appPath+"/data/interfaces/default/_inc_footer.tmpl") \ No newline at end of file diff --git a/data/interfaces/default/artistPage.tmpl b/data/interfaces/default/artistPage.tmpl new file mode 100644 index 00000000..76af1721 --- /dev/null +++ b/data/interfaces/default/artistPage.tmpl @@ -0,0 +1,39 @@ +#attr $artistName = "" +#attr $artistID = "" +#import os.path +#include os.path.abspath($appPath+"/data/interfaces/default/_inc_header.tmpl") + + + + + + + + + + + #for $album in $albums + + + + + + + #end for +
+

$artistName

+
Album NameRelease DateStatus
+ + $album[0] + (link)$album[1] + #if $album[3] == 'Skipped': + $album[3][want] + #elif $album[3] == 'Wanted': + $album[3][skip] + #elif $album[3] == 'Downloaded' or $album[3] == 'Snatched': + $album[3][retry] + #else: + $album[3] + #end if +
+#include os.path.abspath($appPath+"/data/interfaces/default/_inc_footer.tmpl") \ No newline at end of file diff --git a/data/interfaces/default/index.tmpl b/data/interfaces/default/index.tmpl new file mode 100644 index 00000000..570c355a --- /dev/null +++ b/data/interfaces/default/index.tmpl @@ -0,0 +1,33 @@ +#import os.path +#include os.path.abspath($appPath+"/data/interfaces/default/_inc_header.tmpl") + + + + + + + #for $artist in $artists + + + + + + #end for +
Artist NameStatusUpcoming Albums
+ $artist[0] + (link) + [delete] + + #if $artist[2] == 'Active': + $artist[2] (pause) + #else: + $artist[2](resume) + #end if + + #try + $artist[3] $artist[4] + #except + None + #end try +
+#include os.path.abspath($appPath+"/data/interfaces/default/_inc_footer.tmpl") \ No newline at end of file diff --git a/data/interfaces/default/manage.tmpl b/data/interfaces/default/manage.tmpl new file mode 100644 index 00000000..92da4055 --- /dev/null +++ b/data/interfaces/default/manage.tmpl @@ -0,0 +1,28 @@ +#attr $path = "" +#import os.path +#include os.path.abspath($appPath+"/data/interfaces/default/_inc_header.tmpl") + +
+

Import or Sync Your iTunes Library/Music Folder

+

Enter the full path to your iTunes XML file or music folder + i.e. /Users/"username"/Music/iTunes/iTunes Music Library.xml + or /Users/"username"/Music/iTunes/iTunes Media/Music + (artists should have their own directories for folder import to work) + note: This process can take a LONG time! + Once you click "Submit" you can navigate away from this + page while the process runs.

+
+ + +
+
+
+ +
+ +#include os.path.abspath($appPath+"/data/interfaces/default/_inc_footer.tmpl") \ No newline at end of file diff --git a/data/interfaces/default/search.tmpl b/data/interfaces/default/search.tmpl new file mode 100644 index 00000000..4ac94ebd --- /dev/null +++ b/data/interfaces/default/search.tmpl @@ -0,0 +1,31 @@ +#import os.path +#include os.path.abspath($appPath+"/data/interfaces/default/_inc_header.tmpl") + +
+ Results: +
+

+#include os.path.abspath($appPath+"/data/interfaces/default/_inc_footer.tmpl") \ No newline at end of file