Jump to content

Recommended Posts

Posted

Der Yatour spielt Dateien anscheinend nach Erstellungsdatum, nicht nach Dateiname ab. Was auch immer der Hersteller da geraucht hat, hiermit kann man die Dateien auf SD-Karte oder Stick in die richtige Reihenfolge bringen, solange man eine bash in der Nähe hat:

 

#!/bin/bash
STARTDATE='01 Jan 2013'

if [ -z "$1" ];
then
echo "Usage: fix_yatour_files.sh \$PATH"
exit 1
fi

SD_EPOCH=`date --date="$STARTDATE" +%s`
ORIGIFS=$IFS
IFS=$'\n'
FILES=($(find $1 -name "*.mp3" | sort))
IFS=$ORIGIFS
NRFILES=${#FILES[@]}


for (( i=0; i<$NRFILES; i++));
do
 touch -t `date --date="@$SD_EPOCH" +%Y%m%d%H%M` "${FILES[$i]}"
 let "SD_EPOCH =  $SD_EPOCH + 60"
done

echo "$NRFILES files fixed."

Posted

Wenn ich das mal sagen darf: das kriegten bis vor kurzem ganz viele Hersteller nicht auf die Reihe - vermutlich haben die alle dasselbe geraucht...

 

Schönes Wochenende

Timo

Posted
Der Yatour spielt Dateien anscheinend nach Erstellungsdatum, nicht nach Dateiname ab. Was auch immer der Hersteller da geraucht hat, hiermit kann man die Dateien auf SD-Karte oder Stick in die richtige Reihenfolge bringen, solange man eine bash in der Nähe hat:

 

#!/bin/bash
STARTDATE='01 Jan 2013'

if [ -z "$1" ];
then
echo "Usage: fix_yatour_files.sh \$PATH"
exit 1
fi

SD_EPOCH=`date --date="$STARTDATE" +%s`
ORIGIFS=$IFS
IFS=$'\n'
FILES=($(find $1 -name "*.mp3" | sort))
IFS=$ORIGIFS
NRFILES=${#FILES[@]}


for (( i=0; i<$NRFILES; i++));
do
 touch -t `date --date="@$SD_EPOCH" +%Y%m%d%H%M` "${FILES[$i]}"
 let "SD_EPOCH =  $SD_EPOCH + 60"
done

echo "$NRFILES files fixed."

 

Elegant gelöst =) !

Posted (edited)

Weiß ich nicht. Kann mangels Windows den FatSorter nicht ausprobieren. Meine Lösung setzt nur das Erstellungsdatum der Dateien neu. Wenn auch noch die Reihenfolge in der die Dateien geschrieben werde wichtig ist, kann ich das aber die Tage erweitern, sind höchstens ein paar Zeilen.

Edited by herr_tichy
  • 3 months later...
Posted

Ich hab da auch mal eine Frage zum Yatour:

 

Bei mir funktioniert das alles eigentlich super. Aber nur mit meinem USB Stick von Intenso. Mein USB Stick von Kingston funktioniert nicht, dabei sind beide gleich formatiert und auf beiden sind exakt die gleichen Daten. Der Kingston-stick ist halt kleiner und wäre mir eigentlich lieber im Auto, aber es funktioniert nicht.

 

Kennt jemand eine Liste mit Sticks, die für Yatour funktionieren?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Aktivitäten

    1. 40

      Wichtig für Diesel-Fahrer

    2. 40

      Wichtig für Diesel-Fahrer

    3. 40

      Wichtig für Diesel-Fahrer

    4. 40

      Wichtig für Diesel-Fahrer

    5. 40

      Wichtig für Diesel-Fahrer

    6. 40

      Wichtig für Diesel-Fahrer

    7. 40

      Wichtig für Diesel-Fahrer

    8. 23

      [1.4 AUA] 10L Verbrauch in der Stadt. Normal?

    9. 23

      [1.4 AUA] 10L Verbrauch in der Stadt. Normal?

    10. 6

      Türgriff Fahrertüre ist blockiert

×
×
  • Create New...

Important Information

Terms of Service here: Terms of Use, Privacy Policy here Privacy Policy and cookie information here: We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.