gPodder Bug Tracker – Bug 1788
Tries to create playlist file with invalid characters
Last modified: 2013-03-27 11:07:57 GMT
Created attachment 775 [details]
Getting this trace when syncing:
File "/usr/lib/pymodules/python2.7/gpodder/gtkui/desktop/episodeselector.py", line 415, in on_btnCancel_clicked
File "/usr/lib/pymodules/python2.7/gpodder/gtkui/desktop/sync.py", line 251, in auto_delete_callback
File "/usr/lib/pymodules/python2.7/gpodder/gtkui/desktop/sync.py", line 190, in resume_sync
File "/usr/lib/pymodules/python2.7/gpodder/gtkui/desktop/deviceplaylist.py", line 100, in write_m3u
fp = open(os.path.join(self.playlist_folder, self.playlist_file), 'w')
IOError: [Errno 22] invalid mode ('w') or filename: u"/media/PODCASTS/Playlists/NPR Programs: Wait Wait... Don't Tell Me! Podcast.m3u"
The problem is the : in the filename. Attached is a proposed fix, which sanitizes the filename and also sanitizes the folder name used within the playlist.
Thanks very much for the bug report, and the proposed fix! I submitted a pull request which should address this issue (I basically took your patch and implemented those changes).
Merged pull request from Joseph: http://gpodder.org/commit/614f9b7a
Thanks for reporting the bug and for the proposed fix.