doggod wrote: 
> Using ; TrackStat, Custom Browse, Custom Scan. My main concern is 
> Trackstat. Know how to use Trackstat backups for restoring  but
> wondering about how to "transform" the windows URL 's for all the file
> locations to something that Linux understand? Like Linux isn't using
> "drive letter" in filepaths as windows does. Keen user of Notepad ++, is
> there any way I could use it or any other tool to do a "search and
> replace" of a whole backup file? If anyone gone this path I would be
> very grateful if you have any tips you could share of what to do and
> not.
> 
In the TrackStat backup files, you have the file path like this:

Code:
--------------------
    
  
<url>file%3A%2F%2F%2Fdata%2Fmusic%2FBailter%2520Space%2520-%2520Solar.3%2F08%2520-%2520Locher.flac</url>
  
--------------------

It is 'encoded' (https://en.wikipedia.org/wiki/Percent-encoding), there
are online tools like 'this' (https://meyerweb.com/eric/tools/dencoder/)
In this example, one would simply replace every instance of

Code:
--------------------
    
  %2Fdata%2Fmusic%2F
  
--------------------

with e.g.

Code:
--------------------
    
  %2Fnewdata%2Fmusic%2F
  
--------------------


which on Linux you can do with

Code:
--------------------
    
  sed -i -e 's/%2Fdata%2Fmusic%2F/%2Fnewdata%2Fmusic%2F/' 
trackstat_scheduled_backup_20200627.xml
  
--------------------


Notepad++ should work as well.
Also, make sure the file is in UTF-8 encoding, and not some weird
Windows encoding (Notepad++ probably can show / convert file encodings)



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=112495

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to