This is a bit sub-optimal. Slightly better would be `from gpodder.sync import MP3PlayerDevice` and then compare `device.__class__ == MP3PlayerDevice` or to do feature-based detection (e.g. `if hasattr(device, 'get_episode_folder_on_device'):`). With the changes proposed for the other pull request, you could then get the folder name by using os.path.dirname() from the full sync filename.