this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update

+25 -30
+2 -2
backup
··· 26 26 printf "Artist\tTitle\n# vim: set tabstop=64 :\t.\n%s\n" "$(cat $library)" | sponge $library 27 27 echo "Added back the header" 28 28 29 - # Back up the scripts (including this one, so meta!!! to penrose) 30 - rclone copy --progress $HOME/music/ --include '*.py' --include backup --include '*.tsv' --include '**/*.m3u' penrose:music/ 31 29 git add . 32 30 git commit -m "update" 33 31 git push 32 + # Back up the scripts (including this one, so meta!!! to penrose) 33 + rclone copy --progress $HOME/music/ --include '*.py' --include backup --include '*.tsv' --include '**/*.m3u' penrose:music/ 34 34 cd $realwd
-10
dj-sets/no-mana-and-co/autofill.yaml
··· 1 1 from: https://open.spotify.com/playlist/2VcHzbMSacqvZBhgs6AOCa 2 - artists: 3 - - No Mana 4 - - deadmau5 5 - - CRi 6 - - Popof 7 - - GHOST DATA 8 - - Ewen-lbh 9 - - Jasper Tyger 10 - - Solee 11 - - Disclosure
+18 -18
download.py
··· 18 18 19 19 library_file = here / "library.tsv" 20 20 library = [ 21 - t.replace("/", "⁄").split("\t", 2) 22 - for t in library_file.read_text("UTF-8").splitlines() 23 - ] 21 + t.replace("/", "⁄").split("\t", 2) 22 + for t in library_file.read_text("UTF-8").splitlines() 23 + ] 24 24 25 25 def tag_track(title: str, artists: set[str], file: Path) -> bool: 26 26 """ ··· 49 49 if not list(here.glob(f"{hash}*.mp3")): 50 50 try: 51 51 run( 52 - [ 53 - "yt-dlp", 54 - "-x", 55 - "--audio-format", 56 - "mp3", 57 - "--output", 58 - str(here / f"{hash}%(id)s.mp3"), 59 - f"ytsearch15:{artist} {title}", 60 - "--max-downloads=1", 61 - "--ignore-errors", 62 - "--age-limit=20" # to prevent download errors due to agewall 63 - ] 64 - ) 52 + [ 53 + "yt-dlp", 54 + "-x", 55 + "--audio-format", 56 + "mp3", 57 + "--output", 58 + str(here / f"{hash}%(id)s.mp3"), 59 + f"ytsearch15:{artist} {title}", 60 + "--max-downloads=1", 61 + "--ignore-errors", 62 + "--age-limit=20" # to prevent download errors due to agewall 63 + ] 64 + ) 65 65 except KeyboardInterrupt: 66 66 print("Download skipped by user, continuing…") 67 67 return ··· 71 71 youtube_id = file.name.split('.')[0].replace(hash, "") 72 72 try: 73 73 tag_track(artists=artist.split(", "), title=title, file=file) 74 - file.rename(here / f"{artist}\t{title.replace('/', '∕')}\t{youtube_id}.mp3") 74 + file.rename(here / f"{artist} {title.replace('/', '∕')} {youtube_id}.mp3") 75 75 except OSError as e: 76 76 print(f"Couldn't rename file: {e}") 77 77 except IndexError as e: ··· 90 90 already_downloaded = False 91 91 92 92 for file in library_file.parent.iterdir(): 93 - if file.name.startswith("\t".join(track)): 93 + if file.name.startswith(("\t".join(track), (" " * 2).join(track))): 94 94 already_downloaded = True 95 95 break 96 96 # if file.name.startswith("⣎⡇ꉺლ"):
+5
library.tsv
··· 261 261 Bace I Can't 262 262 Bad Computer 2U 263 263 Bad Computer Destroy Me 264 + Bad Computer, Skyelle Silhouette 264 265 Bad Omens THE DEATH OF PEACE OF MIND 265 266 BAILE Gone 266 267 Bakermat, GoldFish, Marie Plassard Games Continued (feat. Marie Plassard) - Radio Edit ··· 1603 1604 Jeremy Blake Like the World Is New 1604 1605 Jeremy Blake Tellenous 1605 1606 Jeremy Blake Tenellous 1607 + Jerome Isma-Ae, Alastor Reflection 1606 1608 Jerry Folk Blinker 1607 1609 Jerry Folk, Tilla Low 1608 1610 Jesper Ryom Nights ··· 1738 1740 Kidnap Untroubled 1739 1741 Kiiara, No Mana Bipolar - No Mana Remix 1740 1742 Kill Paris where r u 1743 + KILL SCRIPT, Crooked Bangs Forever 1741 1744 Kindrid, notsure Breathless 1742 1745 Kinokoteikoku ありふれた言葉 1743 1746 Kinokoteikoku パラノイドパレード ··· 2372 2375 Noordpool Orchestra Weird Fishes 2373 2376 Nordfold Letter To Lillehammer 2374 2377 No Spirit Happy Moments 2378 + Notaker From Dust & Ashes 2375 2379 Notaker The Storm 2376 2380 Nothingtosay Reflection 2377 2381 notsure Dialed In ··· 3449 3453 Tigran Hamasyan To Negate 3450 3454 Tigran Hamasyan, Tosin Abasi Vortex (feat. Tosin Abasi) 3451 3455 Tigran Hamasyan Vardavar 3456 + Tinlicker Bird Feeder 3452 3457 Tinlicker Compound 3453 3458 Tinlicker, CUT_ If I Was 3454 3459 Tinlicker, CUT_ If I Was - Extended Mix