iSubMusicStreamer icon indicating copy to clipboard operation
iSubMusicStreamer copied to clipboard

Connection resets during streaming ends up polluting cache with bad files

Open eharris opened this issue 5 years ago • 1 comments

When a file is being streamed from a server and the transfer fails from a connection timeout or reset, iSub tries again and starts re-downloading the same file, but appends the new contents to the already transferred data. The result is the song seems to start over again in the middle.

Once a file has this happen, there doesn't seem to be any way to get it to play correctly except flushing the entire cache or letting that song age out on its own.

When a transfer fails, iSub should replace the prior partial copy once the transfer completes successfully rather than appending to it.

eharris avatar Jun 16 '19 06:06 eharris

It may be possible that this bad-file-cached problem could also be triggered when the device switches from wifi to cellular data (or vice versa) in the middle of a song download when there is a different "Maximum audio bitrate" configured in settings. Still related to connection resets.

eharris avatar Jun 16 '19 08:06 eharris