mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-08 00:18:01 +09:00
remove symlink support
This commit is contained in:
parent
dd0ccd935e
commit
78e1f59804
2 changed files with 2 additions and 11 deletions
|
|
@ -96,9 +96,6 @@ The file can be found in the [extras](extras) folder.
|
||||||
#### Podcast support
|
#### 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.
|
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
|
#### 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/)
|
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
|
you can use Rythmbox to sync your personal music library to your IPod
|
||||||
|
|
|
||||||
|
|
@ -537,8 +537,6 @@ class Playlist(Record):
|
||||||
# Only add valid music files to playlist
|
# Only add valid music files to playlist
|
||||||
if os.path.splitext(filename)[1].lower() in (".mp3", ".m4a", ".m4b", ".m4p", ".aa", ".wav"):
|
if os.path.splitext(filename)[1].lower() in (".mp3", ".m4a", ".m4b", ".m4p", ".aa", ".wav"):
|
||||||
fullPath = os.path.abspath(os.path.join(dirpath, filename))
|
fullPath = os.path.abspath(os.path.join(dirpath, filename))
|
||||||
if os.path.islink(fullPath):
|
|
||||||
fullPath = os.path.realpath(fullPath)
|
|
||||||
listtracks.append(fullPath)
|
listtracks.append(fullPath)
|
||||||
if not recursive:
|
if not recursive:
|
||||||
break
|
break
|
||||||
|
|
@ -649,14 +647,10 @@ class Shuffler(object):
|
||||||
# Ignore hidden files
|
# Ignore hidden files
|
||||||
if not filename.startswith("."):
|
if not filename.startswith("."):
|
||||||
fullPath = os.path.abspath(os.path.join(dirpath, filename))
|
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 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 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.
|
# Create automatic playlists in music directory.
|
||||||
# Ignore the (music) root and any hidden directories.
|
# Ignore the (music) root and any hidden directories.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue