Image information is currently parsed when downloading an episode, and should be displayed in the Now Playing view when playing the episode if available.
Need to determine how to best store the file. Possible solutions:
Simply store a true/false on the DownloadedFile object to indicate if an image was found, then re-read the file when played to pull out the image instead of using the podcast image.
Extract the image and save it to a new file next to the downloaded episode. Then save a file URL to the image on the DownloadedFile object. When the file object is deleted, or the episode on disk is deleted, also remove the image. Update the UI to load the extracted image when needed. Downside: we are using extra disk space since its already technically part of the downloaded episode, but on the up-side we don't need to try to parse the whole audio file when we need it.
Image information is currently parsed when downloading an episode, and should be displayed in the Now Playing view when playing the episode if available.
Need to determine how to best store the file. Possible solutions:
DownloadedFile
object to indicate if an image was found, then re-read the file when played to pull out the image instead of using the podcast image.DownloadedFile
object. When the file object is deleted, or the episode on disk is deleted, also remove the image. Update the UI to load the extracted image when needed. Downside: we are using extra disk space since its already technically part of the downloaded episode, but on the up-side we don't need to try to parse the whole audio file when we need it.