wiredcharlie
Member
Even newer version. This one has a new feature that forces a DLNA reindex by simulating keyboard commands over ip. This is the new code:
I am grateful for the info in this thread.
Code:
# IP commands are used to simulate remote. Folder is created. File moved into it and then out again. Folder is deleted.
flag=0
for i in "57" "3d" "56" "56" "56" "56" "56" "3d" "3b" "54" "58" "58" "58" "58" "22" "54" "3b" "54" "54" "54" "58" "58" "55" "20" "55" "58" "55" "3b" "54" "54" "54" "58" "20" "58" "3b" "58" "52" "58" "57"
do
cmd=`echo $i | xxd -p | sed 's/..$//'`
cmd=`echo '686d78726100000072637500000000003030'$cmd'00000000f410783a01000000'`
echo $cmd | xxd -r -p > /dev/udp/$HOST/22558
if [ $i == "3d" ] && [ $flag == 0 ]; then
sleep 10
flag=1
fi
if [ $i == "20" ]; then
sleep 4
fi
sleep 0.2
done
I am grateful for the info in this thread.