Skip to content

Conversation

@geekygecko
Copy link
Member

Description

This change makes some improvements to the support debug attachement.

  • Order the download issues by the attempt time
  • Added how long ago the download issue happened to make it easier to link to a user support request
  • Add the latest 10 playback issues
  • Switched some of the database calls to Coroutines
  • Fixed some of the section heading underlines so they match the title length

Before

Episode Issues
--------------

Title: Trump’s Combative Prime Time Speech, and the Growing Right-to-Die Movement
Id: 126fda8a-91a5-411c-a4d1-4ff7c8c7b1c7
Error: Unable to download podcast episode. Check your internet connection.
Url: https://dts.podtrac.com/redirect.mp3/pdst.fm/e/pfx.vpixl.com/6qj4J/nyt.simplecastaudio.com/6be9f004-3e81-4fb7-9ff7-a70c01563962/episodes/649f88bf-3287-46b4-b3a9-862cbbd3f4f2/audio/128/default.mp3?aid=rss_feed&awCollectionId=6be9f004-3e81-4fb7-9ff7-a70c01563962&awEpisodeId=649f88bf-3287-46b4-b3a9-862cbbd3f4f2&feed=ydACIPHO
Podcast: e70322a0-32fd-013d-1901-0acc26574db2 The Headlines

Title: Is Bondi the start of a new era of terror?
Id: 9c502a8b-f3fd-414d-a92e-da0c5e5eedbd
Error: Unable to download podcast episode. Check your internet connection.
Url: https://mediacore-live-production.akamaized.net/audio/02/g2/Z/kg.mp3
Podcast: 4bb4ddf0-f5b1-0135-c25e-7d73a919276a ABC News Daily

Title: TNB Tech Minute: Trump Media Will Merge With Fusion Energy Firm
Id: d0dad934-94ce-4dd3-9bf2-7f003eb1e93c
Error: Unable to download podcast episode. Check your internet connection.
Url: https://pdst.fm/e/traffic.megaphone.fm/WSJ7152258970.mp3
Podcast: f9133780-0427-012e-f9a0-00163e1b201c WSJ Tech News Briefing

After

Episode Download Issues
-----------------------

Episode: Trump’s Combative Prime Time Speech, and the Growing Right-to-Die Movement, 126fda8a-91a5-411c-a4d1-4ff7c8c7b1c7
Podcast: The Headlines, e70322a0-32fd-013d-1901-0acc26574db2
Error: Unable to download podcast episode. Check your internet connection.
Attempt: 2025-12-19 12:09:33 (33 minutes ago)
Url: https://dts.podtrac.com/redirect.mp3/pdst.fm/e/pfx.vpixl.com/6qj4J/nyt.simplecastaudio.com/6be9f004-3e81-4fb7-9ff7-a70c01563962/episodes/649f88bf-3287-46b4-b3a9-862cbbd3f4f2/audio/128/default.mp3?aid=rss_feed&awCollectionId=6be9f004-3e81-4fb7-9ff7-a70c01563962&awEpisodeId=649f88bf-3287-46b4-b3a9-862cbbd3f4f2&feed=ydACIPHO

Episode: EU leaders try to thrash out a plan on Russia's frozen assets, 819a4fec-2d13-4cb1-b44e-e8b5465ec935
Podcast: The World Tonight, 2c08ecd0-2c07-012e-0965-00163e1b201c
Error: Unable to download podcast episode. Check your internet connection.
Attempt: 2025-12-19 12:09:26 (33 minutes ago)
Url: http://open.live.bbc.co.uk/mediaselector/6/redir/version/2.0/mediaset/audio-nondrm-download-rss/proto/http/vpid/p0mpj47m.mp3

Episode: Is Bondi the start of a new era of terror?, 9c502a8b-f3fd-414d-a92e-da0c5e5eedbd
Podcast: ABC News Daily, 4bb4ddf0-f5b1-0135-c25e-7d73a919276a
Error: Unable to download podcast episode. Check your internet connection.
Attempt: 2025-12-19 12:05:19 (37 minutes ago)
Url: https://mediacore-live-production.akamaized.net/audio/02/g2/Z/kg.mp3

Episode Playback Issues
-----------------------

Episode: Will AI Take Our Jobs? (Ep 2), 68d032e2-01c9-4dc9-b664-1484fc596760
Podcast: The Rest Is Politics,34edb770-79ec-013a-d7bd-0acc26574db2
Error: File cannot be played. Try converting to another format.
Attempt: 2025-12-19 12:02:58 (39 minutes ago)
Url: https://pdst.fm/e/traffic.megaphone.fm/GLT5334437497.mp3?updated=1766080218

Testing Instructions

  1. Cause a playback or download issue
  2. Go to the Profile tab -> Help & feedback -> Logs
  3. Tap the share icon in the toolbar
  4. ✅ Verify the contents of the file

Checklist

  • If this is a user-facing change, I have added an entry in CHANGELOG.md
  • Ensure the linter passes (./gradlew spotlessApply to automatically apply formatting/linting)
  • I have considered whether it makes sense to add tests for my changes
  • All strings that need to be localized are in modules/services/localization/src/main/res/values/strings.xml
  • Any jetpack compose components I added or changed are covered by compose previews
  • I have updated (or requested that someone edit) the spreadsheet to reflect any new or changed analytics.

I have tested any UI changes...

  • with different themes
  • with a landscape orientation
  • with the device set to have a large display and font size
  • for accessibility with TalkBack

@geekygecko geekygecko added this to the 8.3 milestone Dec 19, 2025
Copilot AI review requested due to automatic review settings December 19, 2025 02:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the debug attachment generated for support by improving the formatting and content of episode issue reporting. The changes make it easier to correlate user support requests with specific issues by adding timestamps and organizing information more clearly.

Key changes:

  • Added playback issues section alongside existing download issues
  • Ordered both issue types by attempt time (most recent first) with human-readable timestamps
  • Converted some blocking database calls to proper coroutine/suspend functions
  • Improved section header formatting to be dynamically sized

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
Support.kt Main changes: refactored debug output to include playback issues, added timestamp formatting, improved section headers, and removed runBlocking calls
PodcastManager.kt Added suspend function interface for countPodcasts()
PodcastManagerImpl.kt Implemented the new suspend countPodcasts() function
PodcastDao.kt Added suspend database query function count()

@geekygecko geekygecko marked this pull request as ready for review December 19, 2025 02:59
@geekygecko geekygecko requested a review from a team as a code owner December 19, 2025 02:59
@geekygecko geekygecko requested review from Copilot and sztomek and removed request for a team December 19, 2025 02:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Copy link
Contributor

@sztomek sztomek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, worked fine

…/pocketcasts/repositories/support/Support.kt


Fix unit pluralisation

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 19, 2025 21:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants