Bug 477499 - Some episodes don't download
Summary: Some episodes don't download
Status: RESOLVED WORKSFORME
Alias: None
Product: kasts
Classification: Applications
Component: general (show other bugs)
Version: 23.08.2
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: bart
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-25 13:55 UTC by mail
Modified: 2023-12-26 03:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The relevant RSS feed item (11.09 KB, text/plain)
2023-11-25 13:57 UTC, mail
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mail 2023-11-25 13:55:53 UTC
SUMMARY
***
Kasts does not download some episodes while moste episodes are downloaded successfully.
***


STEPS TO REPRODUCE
1. Subscribe to https://feeds.lagedernation.org/feeds/ldn-mp3.xml
2. Try to download the current episode (as of today, enclosure url: https://dts.podtrac.com/redirect.mp3/files.lagedernation.org/lagedernation/LdN358.mp3?ptm_source=feed&ptm_context=mp3&ptm_file=LdN358.mp3)

OBSERVED RESULT
Episode is not downloaded.

EXPECTED RESULT
Episode is saved locally.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Flatpak on Ubuntu 23.04
KDE Plasma Version: 
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Found the following in my syslog:

```
2023-11-25T14:44:31.525159+01:00 computer org.kde.kasts.desktop[2061113]: TagLib: Could not open file /home/matthias/.var/app/org.kde.kasts/data/KDE/kasts/enclosures/Lage der Nation - der Politik-Podcast aus Berlin/LdN358 Lindner lockert Schuldenbremse Union unter Druck es auch zu tun Israel und das Vlkerrecht (Interview Paulina Starski Juristin) Warum das BSW noch keine Partei ist Linksfraktion lst sich auf Ver.6afa8d.mp3
2023-11-25T14:44:35.399134+01:00 computer org.kde.kasts.desktop[2061113]: QIODevice::write (QFile, "/home/matthias/.var/app/org.kde.kasts/data/KDE/kasts/enclosures/Lage der Nation - der Politik-Podcast aus Berlin/LdN358 Lindner lockert Schuldenbremse Union unter Druck es auch zu tun Israel und das Vlkerrecht (Interview Paulina Starski Juristin) Warum das BSW noch keine Partei ist Linksfraktion lst sich auf Ver.6afa8d.mp3"): device not open
2023-11-25T14:44:52.107890+01:00 computer org.kde.kasts.desktop[2061113]: message repeated 2798 times: [ QIODevice::write (QFile, "/home/matthias/.var/app/org.kde.kasts/data/KDE/kasts/enclosures/Lage der Nation - der Politik-Podcast aus Berlin/LdN358 Lindner lockert Schuldenbremse Union unter Druck es auch zu tun Israel und das Vlkerrecht (Interview Paulina Starski Juristin) Warum das BSW noch keine Partei ist Linksfraktion lst sich auf Ver.6afa8d.mp3"): device not open]
```

So it might be that Kasts tries to rename the filename according the item title(?), and the resulting filename is invalid.
Comment 1 mail 2023-11-25 13:57:59 UTC
Created attachment 163465 [details]
The relevant RSS feed item
Comment 2 bart 2023-11-26 10:05:06 UTC
I've tried it on my side, but it just works properly.  Your hypothesis is probably right, but it's probably tied to very specific things.  It's hard to tell from the output what those are.

I couple of guesses:
- The underlying filesystem doesn't like the length of the filename.
- The underlying filesystem doesn't like the special characters.
- The filesystem does not have permissions to open a file for writing in that location (unlikely?)  Or the file is somehow locked by another process?

Could you please check which filesystem that directory is on?
Could you then try and create a file with that name manually inside that directory?
If it fails, could you try a shorter name?
If that still fails, could you try to remove the special characters (I'm guessing it might be the brackets)?

If we can trace what the problem is, I could change the default naming scheme a bit to accomodate.
Comment 3 Bug Janitor Service 2023-12-11 03:45:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2023-12-26 03:46:14 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!