Automattic / Automattic/pocket-casts-ios

Duplicate entries in playlist

Open
#830 2 comments 3 reactions 0 assignees View on GitHub
[Type] Bug UI Related
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:

| | | |
|--------|--------|--------|
| ![IMG_0745](https://user-images.githubusercontent.com/4780/233420483-24f1c05c-2a0e-4861-b517-b33a96548a24.PNG) | ![IMG_0407](https://user-images.githubusercontent.com/4780/233420554-6cdf7d1a-ed16-456b-9ddf-157607bb66c5.PNG) | ![IMG_0374 2](https://user-images.githubusercontent.com/4780/233420615-7431f8e8-27e9-4644-a1c9-533d0c36d4ec.PNG) |
| ![IMG_3314](https://user-images.githubusercontent.com/4780/233421734-aaf5b45f-89b2-4ebd-b129-0e2ab712fbe0.PNG) | ![IMG_1332](https://user-images.githubusercontent.com/4780/233421947-9da1ee62-4115-4a74-9517-d58554b4ba1c.PNG) | ![IMG_0982](https://user-images.githubusercontent.com/4780/233421985-e9633066-5659-4b99-9353-9c2d85021e01.PNG) |

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.