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

Share playlist as YouTube temporary playlist #11930

Open
6 tasks done
tfga opened this issue Jan 16, 2025 · 3 comments · May be fixed by #12065
Open
6 tasks done

Share playlist as YouTube temporary playlist #11930

tfga opened this issue Jan 16, 2025 · 3 comments · May be fixed by #12065
Labels
feature request Issue is related to a feature in the app playlist Anything to do with playlists in the app youtube Service, https://www.youtube.com/

Comments

@tfga
Copy link

tfga commented Jan 16, 2025

Checklist

  • 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'm aware that this is a request for NewPipe itself and that requests for adding a new service need to be made at NewPipeExtractor.
  • I have taken the time to fill in all the required details. I understand that the feature request will be dismissed otherwise.
  • This issue contains only one feature request.
  • I have read and understood the contribution guidelines.

Feature description

YouTube has this URL that creates a playlist on the fly:

http://www.youtube.com/watch_videos?video_ids=$videoIDs

where $videoIDs is a comma-separated list of video IDs (vid1,vid2,...,vidN).

For instance, this URL creates a playlist with 3 videos:

http://www.youtube.com/watch_videos?video_ids=16J5TrCIEB4,8BsHd52ric0,nc_H-bD2khc

The newly created playlist:

  • doesn't have a title
  • isn't associated with a YouTube account
    (you don't have to be logged in).
  • is temporary
    (I don't know exactly for how long it lasts, but if you save the URL (not this one, the playlist URL that YT redirects you to upon creation) and try to view it again in a few days -- it's gone.)
  • Has a maximum length of 50 items.

It would be great if NewPipe had an option to share a playlist in this format too.

The "Share Playlist" dialog could have a a 3rd option called, e.g., "Share as YouTube temporary playlist".

Why do you want this feature?

This would be great for:

  • Sharing a playlist from your mobile to the desktop
  • Sharing with other people

Additional information

No response

@tfga tfga added feature request Issue is related to a feature in the app needs triage Issue is not yet ready for PR authors to take up labels Jan 16, 2025
@ShareASmile ShareASmile added youtube Service, https://www.youtube.com/ playlist Anything to do with playlists in the app and removed needs triage Issue is not yet ready for PR authors to take up labels Jan 18, 2025
@Hike4Fun
Copy link

Hike4Fun commented Feb 2, 2025

This could be very useful as a temporary workaround when ever YouTube parsing fails again, which seems to occur more frequently.

I group a fair number of the short news clips into my Current playlist.
When NewPipe has a problem, individually clicking play in browser gets old very fast.

A temporary playlist that I can route to my (default) ad blocking browser would be a great workaround to tide people over while NewPipe creators fixes the problem.

Note: I can export the playlist as URLS (with/out names) but the players still only play the first URL.

@Hike4Fun
Copy link

Hike4Fun commented Feb 2, 2025

FWIW, I kludge up a semi-auto way to do this via Excel.
And it works, a bit kludgy though.

I exported the list from NewPipe to Telegram.
Then I copy & paste that message into excel
That gives me a URL that I then send to Brave or DuckDuckGo browsers to play said list.
Works! It shows untitled list on YouTube.

Now I face a second issue.

Now that I have exported the playlist that is usable by a browser, I have no easy ways to mark them as watched on NewPipe so I can delete them off NewPipe.

Can add a feature to select individual or all videos in a playlist?
if that is too messy, how about a selection to clear a playlist?

tfga added a commit to tfga/NewPipe that referenced this issue Feb 15, 2025
tfga added a commit to tfga/NewPipe that referenced this issue Feb 19, 2025
tfga added a commit to tfga/NewPipe that referenced this issue Feb 19, 2025
@tfga
Copy link
Author

tfga commented Feb 19, 2025

So, I'm working on the implementation and one of the things I came across is i18n.

There's a new button, with a label. So, a new R.string.xyz will have to be created, I guess (currently it's hard-coded).

private void createShareConfirmationDialog() {
    new AlertDialog.Builder(requireContext())
        .setTitle(R.string.share_playlist)
        .setMessage(R.string.share_playlist_with_titles_message)
        .setCancelable(true)
        .setPositiveButton(R.string.share_playlist_with_titles, (dialog, which) ->
            sharePlaylist(WITH_TITLES)
        )
        // TODO           R.string.share_playlist_as_YouTube_temporary_playlist     // <= here
        .setNeutralButton("Share as YouTube temporary playlist", (dialog, which) -> // <= here
            sharePlaylist(YOUTUBE_TEMP_PLAYLIST)
        )
        .setNegativeButton(R.string.share_playlist_with_list, (dialog, which) ->
            sharePlaylist(JUST_URLS)
        )
        .show();
}
  1. I have never done this before; figuring things out as I go. Any orientation/recommendation the developers would like to give me?
  2. What is the process for this? Do all the translators get notified and only after all of them have finished is the PR ready to be merged?

Besides the English version, I can take care of the pt-br translation as well.

tfga added a commit to tfga/NewPipe that referenced this issue Feb 22, 2025
tfga added a commit to tfga/NewPipe that referenced this issue Feb 22, 2025
tfga added a commit to tfga/NewPipe that referenced this issue Feb 25, 2025
tfga added a commit to tfga/NewPipe that referenced this issue Feb 25, 2025
tfga added a commit to tfga/NewPipe that referenced this issue Feb 25, 2025
@tfga tfga linked a pull request Feb 25, 2025 that will close this issue
5 tasks
tfga added a commit to tfga/NewPipe that referenced this issue Feb 25, 2025
tfga added a commit to tfga/NewPipe that referenced this issue Feb 27, 2025
It's no longer needed after the conversion to Kotlin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issue is related to a feature in the app playlist Anything to do with playlists in the app youtube Service, https://www.youtube.com/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants