Code Monkey home page Code Monkey logo

Comments (12)

iamsainikhil avatar iamsainikhil commented on June 9, 2024 2

@sanihaq I have finished implementing this feature. Could you take a look at the demo and let me know your feedback?

PR - #12

Demo - https://vimeo.com/673967473

from trimtube.

sanihaq avatar sanihaq commented on June 9, 2024 1

@iamsainikhil hey, I just want to add playlist created with a playlist link should auto update or at least have a button to update the playlist. anyway, keep up the good work. 👍

from trimtube.

sanihaq avatar sanihaq commented on June 9, 2024 1

@iamsainikhil this is great so far. please add a refresh button so playlist can be updated. I think it'll open up many more opportunities.

from trimtube.

iamsainikhil avatar iamsainikhil commented on June 9, 2024 1

I can use a regex to grab the playlist ID which should solve the above issue. 😄

Regex - https://regex101.com/r/U31ObX/1

from trimtube.

sanihaq avatar sanihaq commented on June 9, 2024 1

@iamsainikhil also, I think sorting playlist video by date (or a full blown sorting feature) would be great along with a update list button. shouldn't have any api overhead local sorting will do. Thanks. Your hard work is very much appreciated.

from trimtube.

iamsainikhil avatar iamsainikhil commented on June 9, 2024 1

@iamsainikhil also, I think sorting playlist video by date (or a full blown sorting feature) would be great along with a update list button. shouldn't have any api overhead local sorting will do. Thanks. Your hard work is very much appreciated.

@sanihaq could you create a issue (feature request) for this so it would be easy to track the progress?

from trimtube.

sanihaq avatar sanihaq commented on June 9, 2024 1

@iamsainikhil Ok. there's no rush, wish I could've helped, unfortunately I don't have much experience with next.js or react for that matter. 😟

from trimtube.

iamsainikhil avatar iamsainikhil commented on June 9, 2024

Thanks @sanihaq! That's a very good feature and I honestly missed it somehow in the app.

I will try to add this feature ASAP.

from trimtube.

iamsainikhil avatar iamsainikhil commented on June 9, 2024

The reason I went with creating the YT playlist in TrimTube with arbitrary name like Untitled or Untitled-copy is because the YouTube API response does not include metadata about the playlist itself, such as the playlist's title and description.

Additional metadata about the videos in the playlist can also be retrieved using the videos.list method which is an another API request.

To reduce API requests, I just went creating a playlist with the above names. However, I have added the functionality to edit a playlist name which should allow user to change the name.

from trimtube.

iamsainikhil avatar iamsainikhil commented on June 9, 2024

Thanks @sanihaq.

App doesn't support the URL format for the playlist search. So, you need to just paste the playlist ID and it should work.

The reason for doing this is because a playlist link could be:

  1. https://www.youtube.com/playlist?list=PLeLvSt3A0Ddk9lGjNqmzT0ctVPA5xfinn
  2. https://www.youtube.com/watch?v=XXYTRE34580eu&list=PLeLvSt3A0Ddk9lGjNqmzT0ctVPA5xfinn

from trimtube.

sanihaq avatar sanihaq commented on June 9, 2024

@iamsainikhil ohh, sorry my bad! got used to pasting video url.

from trimtube.

iamsainikhil avatar iamsainikhil commented on June 9, 2024

@sanihaq I have actually started working on it (sort) feature with ability to drag the videos in the playlists 😉.

However, I am busy working on making the YouTube video iframe autoplay video on mobile devices. This is an important problem to tackle compared to the above features.

Issue : #14

from trimtube.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.