Added new songs
This commit is contained in:
parent
fe9faf5410
commit
80b240f979
5 changed files with 1080 additions and 42 deletions
BIN
music.db
BIN
music.db
Binary file not shown.
|
@ -1050,3 +1050,31 @@ The Talbott Brothers - Down the Line --- XmC9sD6225c --- YTM
|
|||
Ezgi Köker - Üsküdar'a Gider İken - Katibim --- CWOrDXnnmOc --- YTM
|
||||
Vega - Serzenişte --- E-CepHwRzQ0 --- YTM
|
||||
Vega - Bu Sabahların Bir Anlamı Olmalı --- m2FGzvw-mvA --- YTM
|
||||
İbrahim Erkal - Ellere Düş --- JOk4OLt9bjQ --- YTM
|
||||
İbrahim Erkal - Sen Aldırma --- WKW1LQTtUN0 --- YTM
|
||||
Edip Akbayram - Aldırma Gönül --- 8yk0dNCsN2Y --- YTM
|
||||
Şebnem Ferah - Can Kırıkları --- if_jCCyyUcY --- YTM
|
||||
L'Orchestra Cinematique - Gravity Falls - Main Theme - Epic Version --- EXH52L-HlgI --- YTM
|
||||
Hayko Cepkin - Ölüyorum --- LMspc8zxrQ0 --- YTM
|
||||
The Goo Goo Dolls - Iris --- Dy_eP-mqWow --- YTM
|
||||
Zeki Müren - Entarisi Ala Benziyor --- Ew_jM7FpA7g --- YTM
|
||||
Lena Raine - Resurrections --- -YjgOzSQNQ0 --- YTM
|
||||
The Chordettes - Mr. Sandman --- sBSC8eQVpsU --- YTM
|
||||
2 Unlimited - Get Ready - Rap Version Edit --- q8XQRfTgaCE --- YTM
|
||||
Le Click,Kayo - Tonight Is The Night --- wmTOTgsl4vA --- YTM
|
||||
Ice Mc - It's a Rainy Day --- yyK8sG-AZfY --- YTM
|
||||
DJ BoBo - Love Is All Around --- dKgtq9__PUc --- YTM
|
||||
Robert Miles - Children --- DMJgiky90pE --- YTM
|
||||
Volkan Konak - Göklerde Kartal Gibiydim --- dR_80LRG_lI --- YTM
|
||||
Yeni Türkü - Bana Bir Masal Anlat Baba --- GIPHAgJCjtc --- YTM
|
||||
Geek Music - Hearthstone - Main Theme --- o4zj46hv5Lo --- YTM
|
||||
Fatboy Slim - The Rockafeller Skank --- 5onsyfIzPUY --- YTM
|
||||
Cartoons - Witch Doctor --- a9iDzRnpj3U --- YTM
|
||||
Şevval Sam,Kâzım Koyuncu - Gelevera Deresi --- HnpOCDJU2kA --- YTM
|
||||
Vangelis - Chariots Of Fire --- r78QV5Cwiq0 --- YTM
|
||||
Jeremy Soule - Dragonborn --- 6fILxnBH1Tg --- YTM
|
||||
Cristiano Araújo,Bruno & Marrone - Bara Bara --- 0o30YB2jkM4 --- YTM
|
||||
Güliz Ayla - Olmazsan Olmaz --- 9U5fNLL1rYM --- YTM
|
||||
Aylin Aslım - Bi Sen Bi Ben --- xZEUvA4Kcps --- YTM
|
||||
MINI VANDALS - Shadoma --- 7zsNR2RJTmA --- YTM
|
||||
Koray Candemir,Özer Atik - Olmadı --- DxE_gjITHEc --- YTM
|
||||
|
|
1052
musiclist_backup.txt
Normal file
1052
musiclist_backup.txt
Normal file
File diff suppressed because it is too large
Load diff
BIN
old-music.db
BIN
old-music.db
Binary file not shown.
42
tohtml.py
42
tohtml.py
|
@ -1,42 +0,0 @@
|
|||
import os
|
||||
import random
|
||||
|
||||
if not os.path.exists("musiclist.txt"):
|
||||
print("musiclist.txt not found")
|
||||
exit()
|
||||
if os.path.exists("musiclist.html"):
|
||||
if os.path.exists("musiclist.html.old"):
|
||||
input("musiclist.html and musiclist.html.old already exists. Press Enter to overwrite musiclist.html.old or Ctrl+C to exit")
|
||||
os.remove("musiclist.html.old")
|
||||
os.rename("musiclist.html", "musiclist.html.old")
|
||||
|
||||
with open("musiclist.txt", "r") as f:
|
||||
musiclist = f.readlines()
|
||||
|
||||
html = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<link href=\"https://fonts.googleapis.com/css2?family=Jetbrains+Mono:wght@400;700&display=swap\" rel=\"stylesheet\">\n</head>\n<body style=\"background-color: #1f1f1f; color: #ffffff; font-family: 'Jetbrains Mono', monospace;\">\n"
|
||||
|
||||
random.shuffle(musiclist)
|
||||
|
||||
html += "<h1>Music List</h1><br>\n"
|
||||
html += "<h2>Click on the music to listen</h2><br>\n"
|
||||
html += "<h2><a href=\"https://git.halhadus.rocks/Halhadus/my-music-list\">List is randomized. To see history of list and source codes of scripts which I used to generate this list, click here</a></h2><br>\n"
|
||||
html += """<br><br><button onclick="window.location.href = document.links[Math.floor(Math.random() * document.links.length)].href;" style="background-color: #333333; color: #ffffff; font-family: 'Jetbrains Mono', monospace;">Select Random Music</button><br><br>\n"""
|
||||
|
||||
musiccount = 0
|
||||
for music in musiclist:
|
||||
musiccount += 1
|
||||
music = music.strip().split(" --- ")
|
||||
if music[2] == "YTM":
|
||||
html += f"<a href=\"https://music.youtube.com/watch?v={music[1]}\" style=\"color: #ffffff;\">{musiccount}.{music[0]}</a><br>\n"
|
||||
elif music[2] == "YT":
|
||||
html += f"<a href=\"https://www.youtube.com/watch?v={music[1]}\" style=\"color: #ffffff;\">{musiccount}.{music[0]}</a><br>\n"
|
||||
else:
|
||||
print("Invalid provider")
|
||||
exit()
|
||||
|
||||
html += f"Count: {musiccount}\n</body>\n</html>"
|
||||
|
||||
with open("musiclist.html", "w") as f:
|
||||
f.write(html)
|
||||
|
||||
print("Done")
|
Loading…
Add table
Reference in a new issue