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

Cannot download music only #10689

Closed
6 tasks done
Microturbine opened this issue Dec 23, 2023 · 17 comments
Closed
6 tasks done

Cannot download music only #10689

Microturbine opened this issue Dec 23, 2023 · 17 comments
Labels
bug Issue is related to a bug downloader Issue is related to the downloader

Comments

@Microturbine
Copy link

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.26.0

Steps to reproduce the bug

1, Search
2, Select video
3, Press the download button
4, Select download music (any codec, any bitrate)
5, Download failed

Expected behavior

Music can be downloaded in any codec and at any bit rate.

Actual behavior

The notification box will say that the download failed.

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: download post-processing
  • Request: https://www.youtube.com/watch?v=gtYydJJtQdg [ {type=audio format=WebM Opus bitrate=160} ]
  • Content Country: JP
  • Content Language: ja-JP
  • App Language: ja_JP
  • Service: YouTube
  • Version: 0.26.0
  • OS: Linux Android 13 - 33
Crash log

``` java.io.IOException: Operation not permitted at sun.nio.ch.FileDispatcherImpl.truncate0(Native Method) at sun.nio.ch.FileDispatcherImpl.truncate(FileDispatcherImpl.java:101) at sun.nio.ch.FileChannelImpl.truncate(FileChannelImpl.java:406) at us.shandian.giga.io.FileStreamSAF.setLength(FileStreamSAF.java:138) at us.shandian.giga.io.CircularFileWriter.finalizeFile(CircularFileWriter.java:147) at us.shandian.giga.postprocessing.Postprocessing.run(Postprocessing.java:177) at us.shandian.giga.get.DownloadMission.doPostprocessing(DownloadMission.java:700) at us.shandian.giga.get.DownloadMission.$r8$lambda$TfhfQRw7BXa67GG5rH8lpt1NlmQ(DownloadMission.java:0) at us.shandian.giga.get.DownloadMission$$ExternalSyntheticLambda1.run(R8$$SyntheticClass:0) at java.lang.Thread.run(Thread.java:1012) ```


Affected Android/Custom ROM version

MIUI Global 14.0.3

Affected device model

Redmi Note 11 Pro 5G

Additional information

No response

@Microturbine Microturbine added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Dec 23, 2023
@opusforlife2
Copy link
Collaborator

Can you download videos? Subtitles?

@opusforlife2 opusforlife2 added the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Dec 23, 2023
@Microturbine
Copy link
Author

I couldn't download subtitles either.I was able to download the video.

@github-actions github-actions bot removed the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Dec 24, 2023
@opusforlife2
Copy link
Collaborator

Check your download menu settings. Are the folders selected properly? It's not enough that they show correctly in the app. Your document provider also has to give proper access to that particular folder to the app (Storage Access Framework shenanigans).

@opusforlife2 opusforlife2 added the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Dec 24, 2023
@Microturbine
Copy link
Author

I checked under different conditions.
Save to internal storage → video, audio, and subtitles are all possible.
Save to SD card → Only video can be saved, others will have errors.
How do I save audio directly to an SD card?

@github-actions github-actions bot removed the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Dec 24, 2023
@opusforlife2
Copy link
Collaborator

If you try to select a folder inside your SD card as your Audio download folder in the settings, what does it say?

@Microturbine
Copy link
Author

Microturbine commented Dec 24, 2023

These three steps are displayed.
Screenshot_2023-12-25-00-39-53-593_com google android documentsui
Screenshot_2023-12-25-00-38-33-897_org schabi newpipe
Screenshot_2023-12-25-00-39-49-761_com google android documentsui

@opusforlife2
Copy link
Collaborator

Thanks. After you select a folder in the last step, and then try to download an audio, does it work?

@Microturbine
Copy link
Author

Microturbine commented Dec 24, 2023

I still get a notification that the download failed.
However, when I checked the file manager, the audio file was generated.
I tried to play it on YoutubeMusic,

  • In the case of opus, the seek bar cannot be moved, but playback is possible.

  • In the case of m4a, the seek bar can be moved and playback is possible.

Also, I think the volume level is slightly different for the different codecs. (Is it due to the difference in bit rate?)
Screenshot_2023-12-25-01-43-22-686_com mi android globalFileexplorer
Screenshot_2023-12-25-01-42-47-172_app rvx android apps youtube music

@opusforlife2
Copy link
Collaborator

Hmmm. Could you try this on a fresh profile of Newpipe? You don't have to touch your current app. Just download the latest RC from the pinned issue and try downloading audio.

@Microturbine
Copy link
Author

Microturbine commented Dec 24, 2023

I tried NewPipe_v0.26.0_RC3_release.
The situation is exactly the same as before, I get an error notification, but the file was generated.
Screenshot_2023-12-25-01-55-39-140_org schabi newpipe v0_26_0

@opusforlife2
Copy link
Collaborator

Alright, I'm out of ideas. Thanks for testing. Until this gets solved, you could download to internal storage and move audios to the SD card in batches, I suppose.

@opusforlife2 opusforlife2 added downloader Issue is related to the downloader and removed needs triage Issue is not yet ready for PR authors to take up labels Dec 24, 2023
@Microturbine

This comment was marked as resolved.

@opusforlife2

This comment was marked as resolved.

@Microturbine

This comment was marked as resolved.

@ShareASmile
Copy link
Collaborator

@Microturbine Does this issue still occur on the current latest version 0.27.4?

@ShareASmile ShareASmile added the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Dec 30, 2024
@Microturbine
Copy link
Author

Sorry, but I bought a new smartphone in the past few weeks and bought one without an SD card.
So I cannot check.

@github-actions github-actions bot removed the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Jan 5, 2025
@ShareASmile
Copy link
Collaborator

Then Let us close it. A new issue can always be opened if a user experiences it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug downloader Issue is related to the downloader
Projects
None yet
Development

No branches or pull requests

3 participants