please add option to Auto cache songs for offline usage and data saving #874

Closed
opened 2022-11-08 14:08:47 +00:00 by komals1 · 11 comments
komals1 commented 2022-11-08 14:08:47 +00:00 (Migrated from github.com)
No description provided.
LetrixZ commented 2022-11-09 03:02:37 +00:00 (Migrated from github.com)

This could probably break YouTube's ToS, altough I'll be trying anyways.

This could probably break YouTube's ToS, altough I'll be trying anyways.
LetrixZ commented 2022-11-12 01:57:51 +00:00 (Migrated from github.com)

Welp, I failed. The app won't work without an internet connection and the streaming part is too tightly coupled for it to be feasible to do, if even possible. Not even the official desktop web app offers that, only YouTube's main site.

Welp, I failed. The app won't work without an internet connection and the streaming part is too tightly coupled for it to be feasible to do, if even possible. Not even the official desktop web app offers that, only YouTube's main site.
komals1 commented 2022-11-12 04:58:57 +00:00 (Migrated from github.com)

there is app on android called ViMusic it does it beautifully ,

there is app on android called ViMusic it does it beautifully ,
LetrixZ commented 2022-11-12 05:13:02 +00:00 (Migrated from github.com)

The difference is that ViMusic is an app build around YouTube, while this is modifying the YouTube Music web app, and that way will let you go so far.
Ideally, a ViMusic like desktop app should be made.

The difference is that ViMusic is an app build around YouTube, while this is modifying the YouTube Music web app, and that way will let you go so far. Ideally, a ViMusic like desktop app should be made.
Rednas83 commented 2023-04-30 16:14:58 +00:00 (Migrated from github.com)

I would love to have this feature too. Perhaps add an option to make music available offline?
Something like:
image

I would love to have this feature too. Perhaps add an option to make music available offline? Something like: ![image](https://user-images.githubusercontent.com/25219229/235363895-43cb7c78-ca50-417c-a519-3c1dd7589dd6.png)
LetrixZ commented 2023-04-30 16:50:33 +00:00 (Migrated from github.com)

I would love to have this feature too. Perhaps add an option to make music available offline? Something like: image

As I explained before, it not possible to do this with this app and how it functions.
This is the YT Music website but with addons.

Another app, that is independent from YT Music but that obtains its music from it should be made for this to work.

> I would love to have this feature too. Perhaps add an option to make music available offline? Something like: ![image](https://user-images.githubusercontent.com/25219229/235363895-43cb7c78-ca50-417c-a519-3c1dd7589dd6.png) As I explained before, it not possible to do this with this app and how it functions. This is the YT Music website but with addons. Another app, that is independent from YT Music but that obtains its music from it should be made for this to work.
Rednas83 commented 2023-05-03 08:46:23 +00:00 (Migrated from github.com)

Are you 100% sure there is no way to trick YT music to play a song offline when the song is downloaded?

This is also possible with YT premium on mobile. You can download and play in Library>Downloads.
https://support.google.com/youtube/answer/6141269?hl=en&co=GENIE.Platform%3DAndroid#:~:text=In%20select%20areas%2C%20you%20can,becoming%20a%20YouTube%20Premium%20member.

Are you 100% sure there is no way to trick YT music to play a song offline when the song is downloaded? This is also possible with YT premium on mobile. You can download and play in Library>Downloads. https://support.google.com/youtube/answer/6141269?hl=en&co=GENIE.Platform%3DAndroid#:~:text=In%20select%20areas%2C%20you%20can,becoming%20a%20YouTube%20Premium%20member.
LetrixZ commented 2023-05-03 15:35:16 +00:00 (Migrated from github.com)

Are you 100% sure there is no way to trick YT music to play a song offline when the song is downloaded?

This is also possible with YT premium on mobile. You can download and play in Library>Downloads. https://support.google.com/youtube/answer/6141269?hl=en&co=GENIE.Platform%3DAndroid#:~:text=In%20select%20areas%2C%20you%20can,becoming%20a%20YouTube%20Premium%20member.

That's because the mobile app was designed for that.

The idea here is to make the web app to work offline which it wont, it just won't load if there is no internet.
You would need to make a fake app that works offline but that's a lot of work and at that point, just make a new app.

It might be possible that, if you have the song downloaded, to play the download instead of streaming it from YT servers, but it's a complex thing to achieve.

> Are you 100% sure there is no way to trick YT music to play a song offline when the song is downloaded? > > This is also possible with YT premium on mobile. You can download and play in Library>Downloads. https://support.google.com/youtube/answer/6141269?hl=en&co=GENIE.Platform%3DAndroid#:~:text=In%20select%20areas%2C%20you%20can,becoming%20a%20YouTube%20Premium%20member. That's because the mobile app was designed for that. The idea here is to make the web app to work offline which it wont, it just won't load if there is no internet. You would need to make a fake app that works offline but that's a lot of work and at that point, just make a new app. It might be possible that, if you have the song downloaded, to play the download instead of streaming it from YT servers, but it's a complex thing to achieve.
Rednas83 commented 2023-05-06 08:58:38 +00:00 (Migrated from github.com)

I agree that it's complex but It would be an awesome feature

  • Play songs without internet/bad connection
  • No need for another app to play songs offline
  • More bandwith for other stuff
  • Less tracking from YT/Google

Probably it will require

  • Databases with all the downloaded songs incl path where it is downloaded
  • Trigger to check if song is available offline
  • Mechanism to play offline
I agree that it's complex but It would be an awesome feature * Play songs without internet/bad connection * No need for another app to play songs offline * More bandwith for other stuff * Less tracking from YT/Google Probably it will require * Databases with all the downloaded songs incl path where it is downloaded * Trigger to check if song is available offline * Mechanism to play offline
LetrixZ commented 2023-05-06 16:48:17 +00:00 (Migrated from github.com)

@Rednas83
One thing, offline access is impossible. You need internet to get the base website and the songs.

Playing downloaded songs instead of fetching them might be possible but I don't know if the main player can be used for that.

This is how that would work, assuming you can use the main player:

  1. You manually download a song/playlist.
  2. Then when you play a song, the app would check on the database if it's downloaded, cut the connection to YT player and play the local file instead.
  3. The song finishes, restores connection to proceed to next song. Start from 1.
@Rednas83 One thing, offline access is impossible. You need internet to get the base website and the songs. Playing downloaded songs instead of fetching them might be possible but I don't know if the main player can be used for that. This is how that would work, assuming you can use the main player: 0. You manually download a song/playlist. 1. Then when you play a song, the app would check on the database if it's downloaded, cut the connection to YT player and play the local file instead. 2. The song finishes, restores connection to proceed to next song. Start from 1.
JellyBrick commented 2023-10-07 08:57:16 +00:00 (Migrated from github.com)

There is no way to cache YTM players.
Even if it were possible, it would be a huge undertaking, equivalent to creating YTM from scratch.

There is no way to cache YTM players. Even if it were possible, it would be a huge undertaking, equivalent to creating YTM from scratch.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#874
No description provided.