- zlib >= 1.2.11
- Qt 6.5.0 - 6.5.5
- Despite building headless application, the QT library should be installed
- CMake >= 3.16
- Boost >= 1.76
- libtorrent-rasterbar >= 1.2.19
- Python >= 3.7.0
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| album_pack.py - Make albums Mechen-M30-ready (gapless single FLAC + sidecar cue). | |
| Point it at ANY folder. It walks the tree and treats every folder that directly | |
| contains audio as one album (nested libraries like Artist/.../Year - Album/*.flac | |
| are fully discovered; pure artwork subfolders are ignored). Each album is one of: | |
| CASE A single audio file (e.g. an already-concatenated EAC rip, with or without a .cue) | |
| -> used as-is, NO re-encode (unless --cd-quality forces a resample). Fixes/normalizes |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # fix_flac_covers.sh - retag embedded FLAC cover art to picture type 3 (Front cover), in place. | |
| # | |
| # Why: ffmpeg embeds FLAC covers as picture type 0 ("Other"). Some players (e.g. Mechen M30) | |
| # choke on that and then ignore the ENTIRE metadata block - so album/artist vanish too. | |
| # Rewriting the cover as type 3 ("Cover (front)") fixes it. This does the export -> remove -> | |
| # re-import-as-type-3 dance for every FLAC found, recursively. | |
| # | |
| # Usage: | |
| # ./fix_flac_covers.sh [--dry-run] [DIR] |
This file contains hidden or 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
| import re | |
| import os | |
| import time | |
| import googleapiclient.discovery | |
| from datetime import timedelta | |
| from functools import reduce | |
| API_TEST_CHANNEL = "UC_x5XG1OV2P6uZZ5FSM9Ttw" # Google Developers YouTube channel | |
| MAX_RESULTS = 10 |
This file contains hidden or 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
| Get-ChildItem | Select-Object -ExpandProperty Name | ForEach-Object { $_.Substring(0, $_.LastIndexOf(".")) } |
This file contains hidden or 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
| // ParseDuration | |
| let | |
| ParseDuration = (duration as text) as nullable time => | |
| let | |
| minutesText = Text.BetweenDelimiters(duration, "PT", "M"), | |
| secondsText = Text.BetweenDelimiters(duration, "M", "S"), | |
| minutes = if minutesText <> "" then Number.FromText(minutesText) else 0, | |
| seconds = if secondsText <> "" then Number.FromText(secondsText) else 0, | |
| time = #time(0, minutes, seconds) | |
| in |
This file contains hidden or 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
| import argparse | |
| import os | |
| import pandas as pd | |
| import requests | |
| from requests.adapters import HTTPAdapter, Retry | |
| import concurrent.futures | |
| from pathlib import Path | |
| from tqdm import tqdm | |
| from datetime import datetime |
This file contains hidden or 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
| from http.server import HTTPServer, SimpleHTTPRequestHandler | |
| import ssl | |
| import socketserver | |
| httpd = HTTPServer(('0.0.0.0', 4443), SimpleHTTPRequestHandler) | |
| httpd.socket = ssl.wrap_socket (httpd.socket, | |
| keyfile=r"C:/Users/username/.certs/key.pem", | |
| certfile=r'C:/Users/username/.certs/cert.pem', server_side=True) |
This file contains hidden or 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
| yt-dlp.exe --downloader ffmpeg --downloader-args "ffmpeg:-t 40" |
This file contains hidden or 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
| $files = Get-ChildItem -Recurse "*.*" | |
| foreach ($f in $files) { | |
| If ($f.attributes -eq 4199968) { | |
| $outfile = $f.FullName | |
| $attrs = $f.attributes | |
| Write-Output "file: $outFile`nlen: $((Get-Item $f).length)`nattrs: $attrs" | |
| Remove-Item $f | |
| echo $outfile >> files.txt | |
| } |
NewerOlder