narr icon indicating copy to clipboard operation
narr copied to clipboard

Audio download is broken

Open Flameborn opened this issue 1 year ago • 6 comments

Hello,

In case this software is still being updated, it looks like audio downloads are currently broken.

From what I can see, navigate events do not always fire, and the initial navigation to an episode/movie does not start the download.

The media URL format is still the same.

Tried via MacOS Brave 1.61 and 1.66.

Flameborn avatar Jun 02 '24 22:06 Flameborn

Thanks for reporting. Are you seeing any errors in the CLI output?

IljaN avatar Jun 05 '24 16:06 IljaN

None unfortunately. For the initial URL, not even downloads starting, navigatedTo messages, etc. The last message printed is about the successful connection to the remote debugger.

If I navigate to e.g. the homepage, and if the navigate event is logged, which rarely happens, I get:

ERROR: 2024/06/03 00:39:28 logger.go:39: runtime error: error probing file format: error reading header: EOF

Flameborn avatar Jun 05 '24 22:06 Flameborn

I could reproduce the issue. On Mac Netflix seems to send a different mpeg4 container format than on Linux. (mp42 vs iso6). The probing process ignores the request causing the event to never fire.

ERROR: 2024/06/03 00:39:28 logger.go:39: runtime error: error probing file format: error reading header: EOF

This happens as sometimes netflix sends 403 (Fobidden) instead of the audio file. Maybe because the authentication token expires and needs a refresh.

I am working on a fix.

IljaN avatar Jul 01 '24 11:07 IljaN

That is a very interesting find, perhaps they do this on Linux for compatibility reasons.

AT any rate, thank you so much for the update and for the fix in advance.

On 2024. Jul 1., at 13:43, Ilja Neumann @.***> wrote:

I could reproduce the issue. On Mac Netflix seems to send a different mpeg4 container format than on Linux. (mp42 vs iso6).

ERROR: 2024/06/03 00:39:28 logger.go:39: runtime error: error probing file format: error reading header: EOF

This happens as sometimes netflix sends 403 (Fobidden) instead of the audio file. Maybe because the authentication token expires and needs a refresh.

I am working on a fix.

— Reply to this email directly, view it on GitHub https://github.com/IljaN/narr/issues/4#issuecomment-2199924631, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHLD4C3KEGW4DNIBTWTCWLZKE6GXAVCNFSM6AAAAABIVN5N6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJZHEZDINRTGE. You are receiving this because you authored the thread.

Flameborn avatar Jul 03 '24 09:07 Flameborn

I ran into similar problems today. the error message is : wsarecv: An existing connection was forcibly closed by the remote host.

jiayugz avatar Jul 26 '24 20:07 jiayugz

Hi, I have the same error. Everything worked fine until yesterday. I run Windows Version 10.0.19045 Build 19045 Now I get this: ERROR: 2024/07/31 17:15:47 logger.go:39: runtime error: error probing file format: error reading header: EOF Any ideas? Thanks Edit: I just noticed that some audios get downloaded and others get the error message... For example Monk works but The Big Bang Theory gets an error

Hygros avatar Jul 31 '24 15:07 Hygros

@Flameborn @Hygros Sorry for the delay, please try the latest release. Downloads on macOS should work now. Probing also got more stable, but might require some retry logic in case the token expires.

Please let me know. Thank you very much, and thanks again for your patience.

IljaN avatar Sep 29 '24 01:09 IljaN

@jiayugz Opened a separate issue here #7

IljaN avatar Sep 29 '24 01:09 IljaN

Huge thanks @IljaN, it works beautifully here (Intel MacOS 12.7.6).

I have not experienced the mentioned issues so far.

Flameborn avatar Sep 29 '24 11:09 Flameborn