Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directory name with duplicated single/double quotes #335

Open
5 tasks done
bastgau opened this issue Sep 21, 2023 · 4 comments
Open
5 tasks done

Directory name with duplicated single/double quotes #335

bastgau opened this issue Sep 21, 2023 · 4 comments

Comments

@bastgau
Copy link

bastgau commented Sep 21, 2023

Describe the bug

Hello.

Sorry, I found three new bugs related to the episode downloads.

1/ For the following feed : https://feeds.libsyn.com/126127/rss, the directory name containing the episodes contain additional single quote. It seems that the issue is existing for some other podcasts when the episode title containing one or somes space characters.

The name seems to be correct for the podcasts.

Example :

$ ls -la
drwxr-xr-x  2 root root 4096 Sep 21 21:34 "'Gaijinsan - Episode 35'"
drwxr-xr-x  2 root root 4096 Sep 21 21:33 "'Gaijinsan - Episode 36'"
drwxr-xr-x  2 root root 4096 Sep 21 21:33 "'Gaijinsan - Episode 37'"

2/ When an episode is deleted, then download again, the initial directory is not removed and the second directory related to the second download is suffixed with a number.

$ ls -la
drwxr-xr-x  2 root root 4096 Sep 21 21:45 "'Gaijinsan - Episode 28'"
drwxr-xr-x  2 root root 4096 Sep 21 21:45 "'Gaijinsan - Episode 28'-0"
drwxr-xr-x  2 root root 4096 Sep 21 21:41 "'Gaijinsan - Episode 29'"
drwxr-xr-x  2 root root 4096 Sep 21 21:41 "'Gaijinsan - Episode 29'-0"

The file is not listenable because the GUI do a reference on the initial directory.

3/ On the RSS feed, the audio files are referenced with this tag :

<enclosure length="122217012" type="audio/mpeg" url="https://traffic.libsyn.com/secure/gaijinsan/Gaijinsan_-_Episode_44.mp3?dest-id=753038" />

When the file is downloaded, the episode file name is "podcast.mpeg". It should be : podcast.mp3

"audio/mpeg" should be considered as "audio/mp3"

Best.

Reproduction

...

System Info

...

Used Package Manager

n/a

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@SamTV12345
Copy link
Owner

Regarding the first issue:
image
I get this on a Windows machine. It is important to put quotation marks on the file as otherwise things can get messy on the file system. A / can be interpreted as a separator and there were also issues with whitespaces on Windows. So there must be a single quotation mark for that.
Regading the second issue: I can't really reproduce this. This only happens if an episode is present, it is not yet registered in the database and there is another episode that is downloaded. So the use case would be that a podcaster releases two episodes with two identical names. Otherwise they would overwrite each other.

@bastgau
Copy link
Author

bastgau commented Sep 24, 2023

For the point 2/ I only used the GUI to delete and download an episode again on an instance running on Linux with Docker.

@lvfh3078
Copy link

I have also noticed that podcasts are now being downloaded in the .MPEG format.

Is there a way to specify the format for podcast downloads? I would like to download my podcasts in .MP3 only.

Thanks

@bastgau
Copy link
Author

bastgau commented Nov 4, 2023

Sorry but I persist.
There is an issue with the episode names and file names.

bastien@srv:~/podfetch/data/podcasts$ ls -l
total 20
drwxr-xr-x 7 root root 4096 Nov  4 17:14 '20 minutes avant la fin du monde'
drwxr-xr-x 7 root root 4096 Nov  4 14:02 "C'est votre argent"
drwxr-xr-x 7 root root 4096 Nov  4 17:35 'Gaijin San'
drwxr-xr-x 7 root root 4096 Nov  4 14:01 'La Revue de Presse'
drwxr-xr-x 7 root root 4096 Nov  4 14:02 'Un bonbon sur la langue'

Everything is ok with the podcast names.

bastien@srv:~/docker-containers/podfetch/data/podcasts$ cd Gaijin\ San/
bastien@srv:~/docker-containers/podfetch/data/podcasts/Gaijin San$ ls -l
total 940
drwxr-xr-x 2 root root   4096 Nov  4 15:01 "'Gaijinsan - Episode 44'"
drwxr-xr-x 2 root root   4096 Nov  4 15:00 "'Gaijinsan - Episode 45'"
-rw-r--r-- 1 root root 939658 Nov  4 14:02  image.jpeg

For me in this example, at the episode level directory, there is additional single quote.

bastien@srv:~/docker-containers/podfetch/data/podcasts/Gaijin San$ sudo touch "'Gaijinsan - Episode 48_test'"
bastien@srv:~/docker-containers/podfetch/data/podcasts/Gaijin San$ sudo touch "Gaijinsan - Episode 48_test"

I can reproduce the error creating file in the file system.

bastien@srv:~/docker-containers/podfetch/data/podcasts/Gaijin San$ ls -l
total 940
drwxr-xr-x 2 root root   4096 Nov  4 15:01 "'Gaijinsan - Episode 44'"
drwxr-xr-x 2 root root   4096 Nov  4 15:00 "'Gaijinsan - Episode 45'"
-rw-r--r-- 1 root root      0 Nov  4 17:38 "'Gaijinsan - Episode 48_test'"
-rw-r--r-- 1 root root      0 Nov  4 17:38 'Gaijinsan - Episode 48_test'
-rw-r--r-- 1 root root 939658 Nov  4 14:02  image.jpeg

The first command has generated the 3rd file. The second has generated the 4th line with the correct quotes.

It seems that now the episode title is not mentioned anymore in the mp3 file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants