diff --git a/README.md b/README.md index 8603645..33bfd49 100644 --- a/README.md +++ b/README.md @@ -96,9 +96,6 @@ The file can be found in the [extras](extras) folder. #### Podcast support Place podcast tracks in `iPod_Control/Podcasts` to generate playlists. These tracks will be skipped when shuffling, will be marked to remember their last playback position, and won't be included in the "All Songs" playlist. -#### Use symlinks to create playlists -Symlinks will be followed to their original location on the iPod Shuffle. This allows creating additional playlists without duplicating physical files or duplicate entries in the iTunesSD database. - #### Use Rhythmbox to manage your music and playlists As described [in the blog post](https://nims11.wordpress.com/2013/10/12/ipod-shuffle-4g-under-linux/) you can use Rythmbox to sync your personal music library to your IPod diff --git a/ipod-shuffle-4g.py b/ipod-shuffle-4g.py index 0862271..a4f676f 100755 --- a/ipod-shuffle-4g.py +++ b/ipod-shuffle-4g.py @@ -537,8 +537,6 @@ class Playlist(Record): # Only add valid music files to playlist if os.path.splitext(filename)[1].lower() in (".mp3", ".m4a", ".m4b", ".m4p", ".aa", ".wav"): fullPath = os.path.abspath(os.path.join(dirpath, filename)) - if os.path.islink(fullPath): - fullPath = os.path.realpath(fullPath) listtracks.append(fullPath) if not recursive: break @@ -649,14 +647,10 @@ class Shuffler(object): # Ignore hidden files if not filename.startswith("."): fullPath = os.path.abspath(os.path.join(dirpath, filename)) - if os.path.islink(fullPath): - fullPath = os.path.realpath(fullPath) if os.path.splitext(filename)[1].lower() in (".mp3", ".m4a", ".m4b", ".m4p", ".aa", ".wav"): - if fullPath not in self.tracks: - self.tracks.append(fullPath) + self.tracks.append(fullPath) if os.path.splitext(filename)[1].lower() in (".pls", ".m3u"): - if fullPath not in self.lists: - self.lists.append(fullPath) + self.lists.append(fullPath) # Create automatic playlists in music directory. # Ignore the (music) root and any hidden directories.