upload .flac files and folder/cover image

iOS, iPad, iPhone, tvOS specific usage questions
rudiratlos63
New Cone
New Cone
Posts: 5
Joined: 25 Mar 2018 22:40

upload .flac files and folder/cover image

Postby rudiratlos63 » 25 Mar 2018 23:20

Hi,
I've uploaded some music directories via the vlc webpage on ios. runs perfectly, but for bulk upload, I'm using the following linux script with curl.
My music lies on a debian linux machine and I'm uploading my highres music (.flac) with the following script. maybe it's useful for other people too:
'iosp' is the ip addr of my ios device in my local wifi network
'hres' is my root directoy of my nigh res music (genre pop rock)
you have to modify this info according to your needs.

#!/bin/sh
iosip="10.8.88.123"
hres="/data/Multimedia/Music/HighRes"
flac="*.flac"
#
upl()
{
echo "$1"
find "$1" -name "$2" -o -name "*.jpg" -exec curl -# -F file=@"{}" http://$iosip/upload.json > /dev/null \;
}
#
#
upl "$hres/Pop Rock/Level 42/Level Best" $flac
upl "$hres/Pop Rock/Michael Jackson/The Essential (2005) [24-96 HD FLAC]" $flac
...

rudiratlos63
New Cone
New Cone
Posts: 5
Joined: 25 Mar 2018 22:40

Re: upload .flac files and folder/cover image

Postby rudiratlos63 » 25 Mar 2018 23:43

another request:
using rsync
this whould upload only new/differential files

rudiratlos63
New Cone
New Cone
Posts: 5
Joined: 25 Mar 2018 22:40

Re: upload .flac files and folder/cover image

Postby rudiratlos63 » 25 Mar 2018 23:45

update for script:

find "$1" -type f \( -name "$2" -o -name "cover.jpg" -o -name "folder.jpg" \) -exec curl -# -F file=@"{}" http://$iosip/upload.json > /dev/null \;

rudiratlos63
New Cone
New Cone
Posts: 5
Joined: 25 Mar 2018 22:40

Re: upload .flac files and folder/cover image

Postby rudiratlos63 » 25 Mar 2018 23:59

tried to upload an image of my vlc ios gui, but I can't upload an image in this forum


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 21 guests