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

Can't play/download podcasts using http authentication #161

Open
Quentin-ctrL opened this issue Mar 24, 2021 · 5 comments
Open

Can't play/download podcasts using http authentication #161

Quentin-ctrL opened this issue Mar 24, 2021 · 5 comments

Comments

@Quentin-ctrL
Copy link

Hi,

I'm using .htpasswd and .htpasswd for private podcasts and I can't play/download them.
I tried to protect only media files or media and feed but nothing works. I'm not sure I'm doing it the right way.
Using linux version of Gpodder, I can add credential and I can listen my podcasts.
Using android AntennaPod, I can also add credential. Streaming is not possible but download works.

Reading gpodder docs, it seems possible :
https://gpodder.github.io/docs/faq.html

Can you confirm it's not possible ?

@Keeper-of-the-Keys
Copy link
Contributor

Hi @Quentin-ctrL, so far I have never dealt with this usecase so I can't tell you anything for certain.
That being said the Podcasts table in the database has username/password fields and it seems that the core has a function to extract the username/password from different ways a new podcast URL is entered so my guess is the core supports it (to the best of my knowledge @thp built the core to be mostly on par with functions that existed in gPodder3).

Can you try to add the podcast with the username/password embedded in the URL and update here if that worked?

At the moment there is no UI to change the user/pass after the fact but I guess we can add something.

Do note that the gPodder SQLite database stores the password cleartext.

@Quentin-ctrL
Copy link
Author

Hi,

Yes, I tried using http://USERNAME:[email protected]/files/feed.xml but it's not working as expected.
I had to enter the credential in the podcast option for the linux client..
I tried editing SQLite database using same datas as gPodder for linux.
In "PodcastChannel" url is set like "http://USERNAME:[email protected]/files/feed.xml" adding auth_username & auth_username
No stream or download on sailfish side.

Deleting epidodes (files and db) didn't work.

total 1M     
-rw-r--r--    1 nemo     nemo       87.9K Mar 25 11:30 2021-03-25-01_podcast.jpg
-rw-r--r--    1 nemo     nemo           0 Mar 25 11:30 2021-03-25-01_Livre_Premier_01_podcast.mp3.partial
-rw-r--r--    1 nemo     nemo      904.9K Mar 25 11:30 itunes_image.jpg

I can do more test if necessary

@Keeper-of-the-Keys
Copy link
Contributor

Can you see if there is useful log output (you may need to change the log level to debug)?

@elelay is there an example podcast with authentication that can be used for debugging like you had with soundcloud?

@elelay
Copy link
Member

elelay commented Mar 28, 2021

There is https://github.com/gpodder/gpodder/blob/master/tools/test-auth-server.py that you can run on your desktop

@ljo
Copy link

ljo commented Apr 27, 2021

@Quentin-ctrL, @Keeper-of-the-Keys, it worked fine for the feeds I tried by setting the auth_username and auth_password with a sqlite update command. The only caveat was that I updated url field firstly like above where the feed url differed, but had to update link field to get it to work.Cheers

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

4 participants