5 Commits

Author SHA1 Message Date
Relationship bc9d5f520b Update README.md 2026-07-18 18:35:56 +01:00
Relationship 8b00f6df15 Update README.md 2026-07-14 18:22:29 +01:00
Relationship 8fe76559a2 Add files via upload 2026-07-12 19:09:55 +01:00
Relationship b804d2ce13 Add files via upload 2026-07-12 18:48:50 +01:00
Relationship b772223dc2 Update README.md 2026-07-12 15:05:05 +01:00
4 changed files with 1510 additions and 49 deletions
+1488 -45
View File
File diff suppressed because it is too large Load Diff
+20 -2
View File
@@ -2345,12 +2345,30 @@ foreach ($file in $files) {
$name = Escape-LuaString($file.BaseName) $name = Escape-LuaString($file.BaseName)
$duration = Get-TrackDurationSeconds -File $file $duration = Get-TrackDurationSeconds -File $file
# Derive the subfolder (path under Media\ minus the file leaf). Empty
# string means the track lives directly under Media\. This is what the
# addon uses to build folder auto-playlists in the header dropdown.
$folderRaw = ''
$lastSlash = $relative.LastIndexOf('\')
if ($lastSlash -ge 0) {
$folderRaw = $relative.Substring(0, $lastSlash)
}
$folder = Escape-LuaString($folderRaw)
# dateAdded: seconds since Unix epoch based on file creation time (UTC).
# Falls back to LastWriteTime if CreationTime is zero for some reason.
$ctime = $file.CreationTimeUtc
if ($ctime.Year -lt 1971) { $ctime = $file.LastWriteTimeUtc }
$epoch = [int][Math]::Floor(($ctime - (New-Object DateTime 1970, 1, 1, 0, 0, 0, ([DateTimeKind]::Utc))).TotalSeconds)
$size = [int64]$file.Length
if ($duration -eq $DEFAULT_DURATION) { if ($duration -eq $DEFAULT_DURATION) {
$defaultCount++ $defaultCount++
} }
$fmtLuaEntry = ' {{ path = "{0}", name = "{1}", duration = {2} }},' $fmtLuaEntry = ' {{ path = "{0}", name = "{1}", duration = {2}, folder = "{3}", dateAdded = {4}, size = {5} }},'
$lines.Add(($fmtLuaEntry -f $luaPath, $name, $duration)) | Out-Null $lines.Add(($fmtLuaEntry -f $luaPath, $name, $duration, $folder, $epoch, $size)) | Out-Null
} }
$lines.Add('}') | Out-Null $lines.Add('}') | Out-Null
+2 -2
View File
@@ -1,6 +1,6 @@
<img src="https://cdn.discordapp.com/attachments/1510333697277300856/1523253951594627112/I.png?ex=6a4b704a&is=6a4a1eca&hm=4b4a2c04ae8702c5ff92cc50296ceb65d4c5c13f1174fc767fd7f3c4351337fc&"/> <img src="https://i.postimg.cc/Wb6XLr2N/llll.png"/>
<img src="https://cdn.discordapp.com/attachments/1510333697277300856/1523253988269756616/ezgif-1f660e370df27e35.gif?ex=6a4b7053&is=6a4a1ed3&hm=0835c0247c885d0fb6d25b86064a792989ab1d6a8f1c91570b30e7936fc7bd16&"/> <img src="https://i.postimg.cc/xTytDH96/I.gif"/>
# Relationships Jukebox # Relationships Jukebox
+1 -1
View File
@@ -2,7 +2,7 @@
## Title: Relationships Jukebox ## Title: Relationships Jukebox
## Notes: Simple in-game MP3/WAV/OGG player with GUI. ## Notes: Simple in-game MP3/WAV/OGG player with GUI.
## Author: Relationship ## Author: Relationship
## Version: 1.4 ## Version: 1.5
## SavedVariables: RelationshipsJukeboxDB ## SavedVariables: RelationshipsJukeboxDB
## X-Website: https://github.com/Relationship-OctoWoW/RelationshipsJukeBox ## X-Website: https://github.com/Relationship-OctoWoW/RelationshipsJukeBox
## X-GitHub: https://github.com/Relationship-OctoWoW/RelationshipsJukeBox ## X-GitHub: https://github.com/Relationship-OctoWoW/RelationshipsJukeBox