Answer the question
In order to leave comments, you need to log in
Sync player with low memory?
Initial data:
Volume of music ~ 20-40 GB
Player with a volume of 3.84 GB
How to make 3.84 GB of random music synchronized to the player,
but at the next synchronization, other songs / albums are already synchronized?
Advise programs or ways of implementation.
Answer the question
In order to leave comments, you need to log in
on any scripting language, you read a directory, create an array of file names, sort as you like, run in a loop and add file names to the resulting array until the total weight exceeds 3.84GB, save the array because will be needed when creating the next list ...
[email protected]:~$ find music/ -type f -print | shuf -n2
music/untested/October Falls - Tuoni (2003)/01 - The Quiet Shores.mp3
music/Folk_real/Låtar på Svenska/Camouflage -
Tornman.mp3
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question