From 67ce1832a4cb76a1b0759df58d2192c9248851d4 Mon Sep 17 00:00:00 2001 From: veclav talica Date: Sat, 10 Feb 2024 20:12:59 +0500 Subject: [PATCH] purge xm track player page, it was never good --- compile.sh | 2 - tools/page_shares.py | 1 - tools/track_listing_generator.py | 92 -------------------------------- 3 files changed, 95 deletions(-) delete mode 100755 tools/track_listing_generator.py diff --git a/compile.sh b/compile.sh index 79eebaf..c0043c1 100755 --- a/compile.sh +++ b/compile.sh @@ -24,5 +24,3 @@ for d in ./articles/*/; do done ./tools/feed_generator.py ./articles/ https://mjestecko.neocities.org/ > ./html/feed.xml - -./tools/track_listing_generator.py html/tracks > html/tracks.html diff --git a/tools/page_shares.py b/tools/page_shares.py index f41e3b2..01a88d1 100644 --- a/tools/page_shares.py +++ b/tools/page_shares.py @@ -7,7 +7,6 @@ HEAD_EMBED = """ diff --git a/tools/track_listing_generator.py b/tools/track_listing_generator.py deleted file mode 100755 index b10a5db..0000000 --- a/tools/track_listing_generator.py +++ /dev/null @@ -1,92 +0,0 @@ -#!/usr/bin/python3 - -from sys import argv, exit -from os import walk, path - -from page_shares import HEAD_EMBED, TAIL_EMBED - -if len(argv) <= 1: - print("No directory was supplied") - exit(-1) - -page = """ - - - - Tracks - - - - - -""" -page += HEAD_EMBED - -page += """ -

Tracks

-

.xm module tracks of my own. Btw, they're playable in browser :3

-

Note that some files are rendered incorrectly.

-
-""" - -for _, _, files in walk(argv[1]): - files.sort() - for f in files: - # note: Base64 gzip encoded data is expected. - if not f.endswith('.xm.txt'): - continue - page += ( - f"""

{f[:-4]}

\n""" - "
\n" - ) - break - -page += TAIL_EMBED - -page += """ - - -""" - -print(page)