If you ran the script twice on the same playlist then it would screw up the length of the play list in plex (it was reported as double the length of all the tracks).
This fix allows the script to be re-run without any negative side effects. It will also allow you to import a playlist add a couple more songs to the end of the playlist and re-import without having to delete the playlist from Plex first.
However if you want to add tracks into the middle of the playlist you will still need to delete from Plex first as extra tracks will be added at the end.
If you ran the script twice on the same playlist then it would screw up the length of the play list in plex (it was reported as double the length of all the tracks).
This fix allows the script to be re-run without any negative side effects. It will also allow you to import a playlist add a couple more songs to the end of the playlist and re-import without having to delete the playlist from Plex first.
However if you want to add tracks into the middle of the playlist you will still need to delete from Plex first as extra tracks will be added at the end.