When will a GUID change?

You have a question or need an advice about how to do something? Ask it here!
Post Reply
djcohh
Posts: 6
Joined: 18 Dec 2015 14:29
When will a GUID change?

Post by djcohh »

Just out of my curiousity, when will a GUID of a track change?

Is it when computer name or some hardware is changed? or when the computer itself (OS reinstall or move to another machine) is changed?
If that's the case it wouldn't be stable to use with external scheduler, would it?

I'm also curious if I have a database library and I have an entry with a track's path and GUID assigned to a row, would it (the GUID) ever change again?

It would be good to know how GUIDs are calculated (by PF or Windows?) when working with an external scheduler which points to the track with it. ;)
User avatar
radio42
Site Admin
Posts: 8926
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: When will a GUID change?

Post by radio42 »

Once assigned a GUID will stay as is and never change.
The GUID is saved as any other meta data TAGs.
Eg. inside an audio files TAG, in a media library playlist file, a .pfmd file or as you described it in a database media library table.
As said once assigned and present it is never recalculated and stays the same forever.
It is calculated by a related .Net framework method which uses an underlying OS method.
See here for details:
https://msdn.microsoft.com/de-de/librar ... .110).aspx

However when you eg. delete the playlist or the TAG data or the folder based _synced_.pfp then the GUIDs are lost.

Post Reply