Automattic / Automattic/pocket-casts-ios
Duplicate entries in playlist
- Dominant language
- Swift
- Stars
- 1.8k
- Forks
- 197
- Avg merge
- 17h 20m
- Merged PRs (30d)
- 103
Description
Sometimes when I open Pocket Casts, I see duplicate entries for a single episode in the playlist view. This appears to have mostly happened with the episode that I'm currently listening to, but I have seen it happen once or twice with other episodes.
Tapping one of the duplicates opens the description screen for the episode that should actually be displayed in that position.
Some examples:
| | | |
|--------|--------|--------|
|  |  |  |
|  |  |  |
Last time it happened I managed to record a video of the behaviour. Turns out the rows update just by backgrounding the app and then reopening it:
https://user-images.githubusercontent.com/4780/233422574-242c96a4-4bbe-4f69-8534-a47e7ec613bf.mov
In the video above:
* I begin in the app, where everything looks fine. Then I background the app and reopen it.
* There are now two entries for The Corn Ultimatum Part 2. Background and reopen.
* It's now back to normal. Background and reopen a few times and it remains normal, until...
* There's now another duplicate for that episode at the top of the list. Background and reopen again.
* The duplicate is now further down the list.
* After recording the video, the next time I opened the list the duplicate was gone again.
### Steps to reproduce the behavior
Unfortunately I haven't found any particular trigger that causes this to happen. I think I've only ever noticed this in the New Releases filter, but that's where I spend most of my time in the app (as well as Now Playing).
##### Tested on iPhone 14 Pro, iOS 16.4.1 (although this has been going on for a long time), Pocket Casts 7.37
Contributor guide
Research direction
Start in the playlist view, especially the New Releases and Now Playing filters, and reproduce the reported behavior by backgrounding and reopening the iOS app. Compare the list before and after reopening and verify that each episode appears once and that tapping a row opens the episode represented in that position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100