amugofjava / anytime_podcast_player

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

Transcript support for all SRT mimetypes #102

Closed Marzal closed 10 months ago

Marzal commented 10 months ago

Describe the bug I think that the code doesn't catch al the possible mime-types for SRT transcripts (or at least I can't found it):

https://github.com/amugofjava/anytime_podcast_player/blob/b4a154c529274612cec01b18d59a9cfd88ca6ea3/lib/entities/transcript.dart#L8

https://github.com/amugofjava/anytime_podcast_player/blob/master/lib/ui/podcast/transcript_view.dart

These all the types that I've found podcast using for SRT:

To Reproduce Steps to reproduce the behavior:

  1. Add this feed: Mixxio'
  2. Click on 'Play' on last episode
  3. Scroll down to 'Transcripts'
  4. See error

Expected behavior Subtitles are shown as on KDE Express

Screenshots imagen

Smartphone (please complete the following information):

Additional context Mixxio:

KDE Express:

PD: Thanks for supporting the Podcasting 2.0 community with FLOSS

amugofjava commented 10 months ago

Hi @Marzal,

Thank you for the bug report. Anytime doesn't support the text/srt mime type so I'll look to get that added. Anytime does support application/x-subrip which the Mixxio podcast is using. I've tried listening to the latest episode on a few devices and it's working for me, so I wonder if there is some other issue that's happening here.

Please could you let me know the region and language settings you have on your phone in case it's something to do with that.

Thanks.

Marzal commented 10 months ago

Sorry my bad, I was using a similar feed (premium without ads) and it seems that the public feed has the transcript tags in all the episodes but the premium one only in a few. I would contact the podcaster as is not a problem in Anytime, sorry for the trouble.

amugofjava commented 10 months ago

No problem @Marzal - I can still add support for text/srt. Thanks for trying out Anytime.