amugofjava / anytime_podcast_player

Simple, easy to use Podcast player app written in Flutter and Dart.
BSD 3-Clause "New" or "Revised" License
377 stars 99 forks source link

Specific episode plays for a second and then stops #56

Closed kingonly closed 2 years ago

kingonly commented 2 years ago

E48 of Podcasting 2.0 plays for a second or two and then stops.

Steps to reproduce the behavior:

  1. Go to the Podcasting 2.0 podcast
  2. Play episode 48
  3. Episode stops after a second or two

    • Device: OnePlus 8t
    • OS: Android 11

Nope episode is played successfully in other apps. Dave Jones confirms.

adamc199 commented 2 years ago

Episode plays without problem in Breez on GrapheneOS

amugofjava commented 2 years ago

Hi @kingonly,

Yes, I noticed this issue this morning when trying to listen to this episode. There is an issue with the chapters file for this episode. Fetching the chapters throws an exception which results in the playback stopping. I have fixed this locally on the feature/ios_filesystem branch and hope to get this complete and merged into master soon. If you wish to fix this sooner on the Breez version the fix is to surround the chapter call in mobile_podcast_service.dart with a try catch block:

  static Future<psearch.Chapters> _loadChaptersByUrlCompute(_FeedComputer c) async {
    psearch.Chapters result;

    try {
      result = await c.api.loadChapters(c.url);
    } catch (e) {
      // Silently ignore the error.
    }

    return result;
  }
kingonly commented 2 years ago

Thanks for the quick response @amugofjava! It's seems the issue with the chapters in this specific episode is resolved. We'll push the fix in our next update, preferably from your master branch.

amugofjava commented 2 years ago

Fixed and merged to master.